Commit d0e66d1
Add CTAS (CREATE TABLE AS SELECT) statement parsing support
- Add SelectStatement and CtasColumns fields to CreateTableStatement
- Add TableDistributionPolicy interface with HASH, ROUND_ROBIN, REPLICATE policies
- Add CLUSTERED COLUMNSTORE INDEX ORDER() parsing for ordered CCI
- Add DISTRIBUTION, CLUSTERED INDEX, HEAP options to parseCreateTableOptions
- Fix CTAS column list detection to use peekTok directly (avoids lexer state issues)
- Enable Baselines130_CtasStatementTests and CtasStatementTests
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 873a35a commit d0e66d1
6 files changed
Lines changed: 351 additions & 82 deletions
File tree
- ast
- parser
- testdata
- Baselines130_CtasStatementTests
- CtasStatementTests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
3 | 8 | | |
4 | 9 | | |
5 | | - | |
| 10 | + | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
| |||
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
18 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments