Commit 9a0b0ad
committed
Fix window frame keywords being parsed as implicit aliases
The PARTITION BY clause in window functions was incorrectly consuming
window frame keywords like ROWS, RANGE, GROUPS as implicit aliases.
This broke window function parsing for queries like:
SELECT abs(number) over (partition by x rows unbounded preceding)
Added window frame keywords to the exclusion list in parseImplicitAlias:
- ROWS, RANGE, GROUPS (frame type)
- UNBOUNDED, PRECEDING, FOLLOWING, CURRENT (frame bounds)1 parent 443aba5 commit 9a0b0ad
File tree
3 files changed
+5
-3
lines changed- parser
- testdata
- 01571_window_functions
- 01591_window_functions
3 files changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
183 | 188 | | |
184 | 189 | | |
185 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
42 | | - | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
| |||
0 commit comments