Repository navigation
Commit c62e4ee
committed
DuckDB: accept FROM-first queries and TABLE t as subqueries and set operands
- `(FROM t ...)` is a sub-select wherever `(SELECT ...)` is, and a
parenthesized `FROM t` without pipe operators is a FROM-first select.
- FROM-first queries and `TABLE t` are set operation operands, e.g.
`FROM a UNION ALL FROM b` or `TABLE a EXCEPT TABLE b`, with a trailing
ORDER BY/LIMIT applying to the whole operation.
- `WITH ... TABLE t` keeps and prints its WITH clause.
- The FROM-first scan follows the token chain and stops at the end of
the enclosing parentheses.1 parent 19f12ea commit c62e4ee
4 files changed
Lines changed: 86 additions & 14 deletions
File tree
- src
- main
- java/net/sf/jsqlparser
- statement/select
- util/deparser
- jjtree/net/sf/jsqlparser/parser
- test/java/net/sf/jsqlparser/statement/select
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
87 | 101 | | |
88 | 102 | | |
89 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
748 | | - | |
| 748 | + | |
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
| |||
781 | 781 | | |
782 | 782 | | |
783 | 783 | | |
784 | | - | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
785 | 787 | | |
786 | 788 | | |
787 | 789 | | |
| |||
1393 | 1395 | | |
1394 | 1396 | | |
1395 | 1397 | | |
1396 | | - | |
| 1398 | + | |
| 1399 | + | |
1397 | 1400 | | |
1398 | 1401 | | |
1399 | 1402 | | |
1400 | | - | |
1401 | | - | |
1402 | | - | |
1403 | | - | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
1404 | 1406 | | |
1405 | 1407 | | |
1406 | 1408 | | |
1407 | 1409 | | |
1408 | 1410 | | |
1409 | | - | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
1410 | 1415 | | |
1411 | 1416 | | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
1412 | 1421 | | |
1413 | 1422 | | |
1414 | 1423 | | |
| |||
3475 | 3484 | | |
3476 | 3485 | | |
3477 | 3486 | | |
3478 | | - | |
3479 | | - | |
3480 | 3487 | | |
3481 | 3488 | | |
3482 | 3489 | | |
| |||
7170 | 7177 | | |
7171 | 7178 | | |
7172 | 7179 | | |
7173 | | - | |
7174 | | - | |
7175 | | - | |
| 7180 | + | |
7176 | 7181 | | |
7177 | 7182 | | |
7178 | 7183 | | |
| 7184 | + | |
| 7185 | + | |
| 7186 | + | |
| 7187 | + | |
| 7188 | + | |
7179 | 7189 | | |
7180 | 7190 | | |
7181 | 7191 | | |
| |||
8141 | 8151 | | |
8142 | 8152 | | |
8143 | 8153 | | |
| 8154 | + | |
| 8155 | + | |
| 8156 | + | |
| 8157 | + | |
8144 | 8158 | | |
8145 | 8159 | | |
8146 | 8160 | | |
| |||
8191 | 8205 | | |
8192 | 8206 | | |
8193 | 8207 | | |
| 8208 | + | |
| 8209 | + | |
| 8210 | + | |
| 8211 | + | |
| 8212 | + | |
| 8213 | + | |
| 8214 | + | |
| 8215 | + | |
| 8216 | + | |
| 8217 | + | |
| 8218 | + | |
| 8219 | + | |
| 8220 | + | |
| 8221 | + | |
8194 | 8222 | | |
8195 | 8223 | | |
8196 | 8224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
825 | 825 | | |
826 | 826 | | |
827 | 827 | | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
828 | 852 | | |
0 commit comments