Commit d289db3
feat(starrocks)!: stop eliminating semi/anti joins, QUALIFY, and FULL OUTER JOIN [CLAUDE] (#7524)
* feat(starrocks): support semi/anti joins, eliminate DISTINCT ON & GENERATE_DATE_ARRAY [CLAUDE]
StarRocks supports LEFT SEMI JOIN and LEFT ANTI JOIN natively, so
remove ANTI and SEMI from TABLE_ALIAS_TOKENS (MySQL added them back
since it lacks semi/anti join syntax).
Add Select preprocessors to eliminate DISTINCT ON (not supported) and
rewrite UNNEST(GENERATE_DATE_ARRAY(...)) to recursive CTEs (StarRocks
only supports numeric inputs for array_generate/generate_series).
Made-with: Cursor
* Update tests/dialects/test_starrocks.py
* Update tests/dialects/test_starrocks.py
---------
Co-authored-by: Jo <46752250+georgesittas@users.noreply.github.com>1 parent f8af9d6 commit d289db3
5 files changed
Lines changed: 30 additions & 1 deletion
File tree
- sqlglot
- generators
- parsers
- tests/dialects
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
103 | 111 | | |
104 | 112 | | |
105 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3641 | 3641 | | |
3642 | 3642 | | |
3643 | 3643 | | |
| 3644 | + | |
3644 | 3645 | | |
3645 | 3646 | | |
3646 | 3647 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
30 | 45 | | |
31 | 46 | | |
32 | 47 | | |
| |||
0 commit comments