Commit 12cba60
committed
Support
According to the query syntax at
https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#select_list
you can combine `[ { ALL | DISTINCT } ]` with `[ AS { STRUCT | VALUE } ]`:
```sh
SELECT
[ WITH differential_privacy_clause ]
[ { ALL | DISTINCT } ]
[ AS { STRUCT | VALUE } ]
select_list
```
This adds support to parse `DISTINCT` or `ALL` as the first keyword
after `SELECT` and adds two new variants to the `ValueTableMode` if
defined.DISTINCT AS { STRUCT | VALUE } for BigQuery1 parent 9fc9009 commit 12cba60
3 files changed
+43
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3340 | 3340 | | |
3341 | 3341 | | |
3342 | 3342 | | |
| 3343 | + | |
| 3344 | + | |
| 3345 | + | |
| 3346 | + | |
3343 | 3347 | | |
| 3348 | + | |
3344 | 3349 | | |
3345 | 3350 | | |
3346 | 3351 | | |
3347 | 3352 | | |
3348 | 3353 | | |
3349 | 3354 | | |
| 3355 | + | |
| 3356 | + | |
3350 | 3357 | | |
3351 | 3358 | | |
3352 | 3359 | | |
3353 | 3360 | | |
3354 | 3361 | | |
3355 | 3362 | | |
3356 | 3363 | | |
| 3364 | + | |
| 3365 | + | |
3357 | 3366 | | |
3358 | 3367 | | |
3359 | 3368 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11505 | 11505 | | |
11506 | 11506 | | |
11507 | 11507 | | |
| 11508 | + | |
| 11509 | + | |
11508 | 11510 | | |
11509 | 11511 | | |
11510 | 11512 | | |
11511 | | - | |
| 11513 | + | |
| 11514 | + | |
| 11515 | + | |
| 11516 | + | |
| 11517 | + | |
11512 | 11518 | | |
11513 | | - | |
| 11519 | + | |
| 11520 | + | |
| 11521 | + | |
| 11522 | + | |
| 11523 | + | |
11514 | 11524 | | |
11515 | 11525 | | |
11516 | 11526 | | |
| |||
11524 | 11534 | | |
11525 | 11535 | | |
11526 | 11536 | | |
11527 | | - | |
| 11537 | + | |
| 11538 | + | |
| 11539 | + | |
| 11540 | + | |
| 11541 | + | |
| 11542 | + | |
| 11543 | + | |
| 11544 | + | |
| 11545 | + | |
| 11546 | + | |
| 11547 | + | |
11528 | 11548 | | |
11529 | 11549 | | |
11530 | 11550 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2377 | 2377 | | |
2378 | 2378 | | |
2379 | 2379 | | |
| 2380 | + | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
| 2387 | + | |
| 2388 | + | |
| 2389 | + | |
| 2390 | + | |
0 commit comments