Repository navigation
Commit 6a340be
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 46d6143 commit 6a340be
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 | |
|---|---|---|---|
| |||
8299 | 8299 | | |
8300 | 8300 | | |
8301 | 8301 | | |
| 8302 | + | |
| 8303 | + | |
| 8304 | + | |
8302 | 8305 | | |
8303 | | - | |
8304 | | - | |
8305 | | - | |
8306 | 8306 | | |
8307 | 8307 | | |
8308 | 8308 | | |
| |||
13328 | 13328 | | |
13329 | 13329 | | |
13330 | 13330 | | |
13331 | | - | |
| 13331 | + | |
| 13332 | + | |
| 13333 | + | |
| 13334 | + | |
| 13335 | + | |
| 13336 | + | |
| 13337 | + | |
13332 | 13338 | | |
13333 | 13339 | | |
13334 | 13340 | | |
| |||
13350 | 13356 | | |
13351 | 13357 | | |
13352 | 13358 | | |
13353 | | - | |
13354 | | - | |
13355 | | - | |
| 13359 | + | |
| 13360 | + | |
| 13361 | + | |
| 13362 | + | |
| 13363 | + | |
| 13364 | + | |
| 13365 | + | |
| 13366 | + | |
13356 | 13367 | | |
13357 | 13368 | | |
13358 | 13369 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1032 | 1032 | | |
1033 | 1033 | | |
1034 | 1034 | | |
1035 | | - | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
1036 | 1039 | | |
1037 | 1040 | | |
1038 | 1041 | | |
| |||
1041 | 1044 | | |
1042 | 1045 | | |
1043 | 1046 | | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
1044 | 1051 | | |
1045 | 1052 | | |
1046 | 1053 | | |
| |||
0 commit comments