Repository navigation
Commit 70e67f4
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 ed3fb3a commit 70e67f4
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 | |
|---|---|---|---|
| |||
8419 | 8419 | | |
8420 | 8420 | | |
8421 | 8421 | | |
| 8422 | + | |
| 8423 | + | |
| 8424 | + | |
8422 | 8425 | | |
8423 | | - | |
8424 | | - | |
8425 | | - | |
8426 | 8426 | | |
8427 | 8427 | | |
8428 | 8428 | | |
| |||
13493 | 13493 | | |
13494 | 13494 | | |
13495 | 13495 | | |
13496 | | - | |
| 13496 | + | |
| 13497 | + | |
| 13498 | + | |
| 13499 | + | |
| 13500 | + | |
| 13501 | + | |
| 13502 | + | |
13497 | 13503 | | |
13498 | 13504 | | |
13499 | 13505 | | |
| |||
13515 | 13521 | | |
13516 | 13522 | | |
13517 | 13523 | | |
13518 | | - | |
13519 | | - | |
13520 | | - | |
| 13524 | + | |
| 13525 | + | |
| 13526 | + | |
| 13527 | + | |
| 13528 | + | |
| 13529 | + | |
| 13530 | + | |
| 13531 | + | |
13521 | 13532 | | |
13522 | 13533 | | |
13523 | 13534 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1083 | 1083 | | |
1084 | 1084 | | |
1085 | 1085 | | |
1086 | | - | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
1087 | 1090 | | |
1088 | 1091 | | |
1089 | 1092 | | |
| |||
1092 | 1095 | | |
1093 | 1096 | | |
1094 | 1097 | | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
1095 | 1102 | | |
1096 | 1103 | | |
1097 | 1104 | | |
| |||
0 commit comments