Commit c33c52c
authored
fix list_tables, include version suffix in Table.name (#2994)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> Keep `Table.name` with version suffix from ClickHouse, expose version
parsing, update TS/Py generators to emit base table name when suffix
matches, and pin backward-compat test to CLI 0.6.201.
>
> - **ClickHouse/Infrastructure**:
> - **`list_tables`**: Preserve version suffix in `Table.name` (use
original `table_name`), set `database`, and maintain
`version`/`order_by`/settings extraction.
> - **API**: Make `extract_version_from_table_name` public.
> - **Codegen**:
> - **Python/TypeScript**: Use `extract_version_from_table_name` to
determine emitted table id; pass base table name to `OlapTable` when
parsed `version` equals `table.version` (otherwise use full
`table.name`).
> - **Tests (E2E)**:
> - Pin backward-compat test to `@514labs/moose-cli@0.6.201` and update
log message.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
be600d1. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 7307766 commit c33c52c
File tree
5 files changed
+24
-6
lines changed- apps
- framework-cli-e2e/test
- framework-cli/src
- framework
- core/infrastructure
- python
- typescript
- infrastructure/olap/clickhouse
5 files changed
+24
-6
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
| 308 | + | |
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
| 320 | + | |
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| 269 | + | |
269 | 270 | | |
270 | 271 | | |
271 | 272 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
708 | 709 | | |
709 | 710 | | |
710 | 711 | | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
711 | 719 | | |
712 | 720 | | |
713 | 721 | | |
714 | 722 | | |
715 | | - | |
| 723 | + | |
716 | 724 | | |
717 | 725 | | |
718 | 726 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
629 | 630 | | |
630 | 631 | | |
631 | 632 | | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
632 | 640 | | |
633 | 641 | | |
634 | 642 | | |
635 | | - | |
| 643 | + | |
636 | 644 | | |
637 | 645 | | |
638 | 646 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1095 | 1095 | | |
1096 | 1096 | | |
1097 | 1097 | | |
1098 | | - | |
| 1098 | + | |
1099 | 1099 | | |
1100 | 1100 | | |
1101 | 1101 | | |
| |||
1745 | 1745 | | |
1746 | 1746 | | |
1747 | 1747 | | |
1748 | | - | |
| 1748 | + | |
| 1749 | + | |
1749 | 1750 | | |
1750 | 1751 | | |
1751 | 1752 | | |
| |||
0 commit comments