Commit ea15fe3
committed
Add frame parsing to WINDOW clause definitions
The WINDOW clause parser (parseWindowDefinitions) was missing
support for frame specifications (ROWS/RANGE/GROUPS). This meant
named window definitions like:
WINDOW w1 AS (ROWS UNBOUNDED PRECEDING)
would fail to parse correctly.
Added frame parsing after ORDER BY in parseWindowDefinitions,
matching the logic in parseWindowSpec().1 parent 9785146 commit ea15fe3
4 files changed
Lines changed: 10 additions & 29 deletions
File tree
- parser
- testdata
- 01591_window_functions
- 02020_exponential_smoothing
- 03210_lag_lead_inframe_types
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4551 | 4551 | | |
4552 | 4552 | | |
4553 | 4553 | | |
| 4554 | + | |
| 4555 | + | |
| 4556 | + | |
| 4557 | + | |
| 4558 | + | |
| 4559 | + | |
| 4560 | + | |
| 4561 | + | |
4554 | 4562 | | |
4555 | 4563 | | |
4556 | 4564 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 14 | | |
32 | 15 | | |
33 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
0 commit comments