Repository navigation
Commit cd8889c
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 4f1f00f commit cd8889c
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 | |
|---|---|---|---|
| |||
8203 | 8203 | | |
8204 | 8204 | | |
8205 | 8205 | | |
| 8206 | + | |
| 8207 | + | |
| 8208 | + | |
8206 | 8209 | | |
8207 | | - | |
8208 | | - | |
8209 | | - | |
8210 | 8210 | | |
8211 | 8211 | | |
8212 | 8212 | | |
| |||
13212 | 13212 | | |
13213 | 13213 | | |
13214 | 13214 | | |
13215 | | - | |
| 13215 | + | |
| 13216 | + | |
| 13217 | + | |
| 13218 | + | |
| 13219 | + | |
| 13220 | + | |
| 13221 | + | |
13216 | 13222 | | |
13217 | 13223 | | |
13218 | 13224 | | |
| |||
13234 | 13240 | | |
13235 | 13241 | | |
13236 | 13242 | | |
13237 | | - | |
13238 | | - | |
13239 | | - | |
| 13243 | + | |
| 13244 | + | |
| 13245 | + | |
| 13246 | + | |
| 13247 | + | |
| 13248 | + | |
| 13249 | + | |
| 13250 | + | |
13240 | 13251 | | |
13241 | 13252 | | |
13242 | 13253 | | |
| |||
| 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