Commit 1ec22b0
Support BigQuery array subscript OFFSET(n)
BigQuery addresses array elements positionally with OFFSET(n),
ORDINAL(n), SAFE_OFFSET(n) and SAFE_ORDINAL(n). The latter three already
parsed as functions; OFFSET is a reserved keyword and needed an explicit
array-index rule. The accessor is kept in the AST as a Function so it
deparses unchanged.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EqinwHBKuAtPEmtXr3b5P21 parent 6312f9e commit 1ec22b0
2 files changed
Lines changed: 48 additions & 2 deletions
File tree
- src
- main/jjtree/net/sf/jsqlparser/parser
- test/java/net/sf/jsqlparser/statement/select
Lines changed: 25 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9459 | 9459 | | |
9460 | 9460 | | |
9461 | 9461 | | |
9462 | | - | |
| 9462 | + | |
9463 | 9463 | | |
9464 | 9464 | | |
9465 | 9465 | | |
| |||
9468 | 9468 | | |
9469 | 9469 | | |
9470 | 9470 | | |
9471 | | - | |
| 9471 | + | |
9472 | 9472 | | |
9473 | 9473 | | |
9474 | 9474 | | |
| |||
9479 | 9479 | | |
9480 | 9480 | | |
9481 | 9481 | | |
| 9482 | + | |
| 9483 | + | |
| 9484 | + | |
| 9485 | + | |
| 9486 | + | |
| 9487 | + | |
| 9488 | + | |
| 9489 | + | |
| 9490 | + | |
| 9491 | + | |
| 9492 | + | |
| 9493 | + | |
| 9494 | + | |
| 9495 | + | |
| 9496 | + | |
| 9497 | + | |
| 9498 | + | |
| 9499 | + | |
| 9500 | + | |
| 9501 | + | |
| 9502 | + | |
| 9503 | + | |
| 9504 | + | |
9482 | 9505 | | |
9483 | 9506 | | |
9484 | 9507 | | |
| |||
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
113 | 136 | | |
0 commit comments