Repository navigation
Commit 91825c0
committed
Keep window specifications parseable inside lookahead
- The base window name is a choice rather than an optional, so that
lookahead scans through a window specification keep its check:
`JSON_VALUE(... DEFAULT sum(a) OVER (PARTITION BY b) ON EMPTY)` parses
again.
- Only an OVER window may extend a named window, not WITHIN GROUP.
- QUALIFY after WINDOW requires a WINDOW clause.1 parent 67f8955 commit 91825c0
2 files changed
Lines changed: 26 additions & 8 deletions
File tree
- src
- main/jjtree/net/sf/jsqlparser/parser
- test/java/net/sf/jsqlparser/statement/select
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8167 | 8167 | | |
8168 | 8168 | | |
8169 | 8169 | | |
| 8170 | + | |
| 8171 | + | |
| 8172 | + | |
8170 | 8173 | | |
8171 | | - | |
8172 | | - | |
8173 | | - | |
8174 | 8174 | | |
8175 | 8175 | | |
8176 | 8176 | | |
| |||
13120 | 13120 | | |
13121 | 13121 | | |
13122 | 13122 | | |
13123 | | - | |
| 13123 | + | |
| 13124 | + | |
| 13125 | + | |
| 13126 | + | |
| 13127 | + | |
| 13128 | + | |
| 13129 | + | |
13124 | 13130 | | |
13125 | 13131 | | |
13126 | 13132 | | |
| |||
13142 | 13148 | | |
13143 | 13149 | | |
13144 | 13150 | | |
13145 | | - | |
13146 | | - | |
13147 | | - | |
| 13151 | + | |
| 13152 | + | |
| 13153 | + | |
| 13154 | + | |
| 13155 | + | |
| 13156 | + | |
| 13157 | + | |
| 13158 | + | |
13148 | 13159 | | |
13149 | 13160 | | |
13150 | 13161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
997 | 997 | | |
998 | 998 | | |
999 | 999 | | |
1000 | | - | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
1001 | 1004 | | |
1002 | 1005 | | |
1003 | 1006 | | |
| |||
1006 | 1009 | | |
1007 | 1010 | | |
1008 | 1011 | | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
1009 | 1016 | | |
1010 | 1017 | | |
1011 | 1018 | | |
| |||
0 commit comments