Commit daa8118
Support DuckDB 2.0 APPROX NEAREST similarity joins
Adds JOIN t APPROX NEAREST n BY SIMILARITY expression, the vector
similarity join of DuckDB 2.0. APPROX no longer binds as a table alias
in that position. Also adds the lookahead the UNPIVOT statement's INTO
clause needed to keep the grammar free of choice conflicts.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EqinwHBKuAtPEmtXr3b5P21 parent 315fc79 commit daa8118
4 files changed
Lines changed: 88 additions & 1 deletion
File tree
- src
- main
- java/net/sf/jsqlparser
- statement/select
- util/deparser
- jjtree/net/sf/jsqlparser/parser
- test/java/net/sf/jsqlparser/statement/select
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
195 | 197 | | |
196 | 198 | | |
197 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
198 | 230 | | |
199 | 231 | | |
200 | 232 | | |
| |||
577 | 609 | | |
578 | 610 | | |
579 | 611 | | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
580 | 617 | | |
581 | 618 | | |
582 | 619 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
776 | 782 | | |
777 | 783 | | |
778 | 784 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1273 | 1273 | | |
1274 | 1274 | | |
1275 | 1275 | | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
1276 | 1281 | | |
1277 | 1282 | | |
1278 | 1283 | | |
| |||
1311 | 1316 | | |
1312 | 1317 | | |
1313 | 1318 | | |
1314 | | - | |
| 1319 | + | |
1315 | 1320 | | |
1316 | 1321 | | |
1317 | 1322 | | |
| |||
2008 | 2013 | | |
2009 | 2014 | | |
2010 | 2015 | | |
| 2016 | + | |
2011 | 2017 | | |
2012 | 2018 | | |
2013 | 2019 | | |
| |||
2216 | 2222 | | |
2217 | 2223 | | |
2218 | 2224 | | |
| 2225 | + | |
2219 | 2226 | | |
2220 | 2227 | | |
2221 | 2228 | | |
| |||
2321 | 2328 | | |
2322 | 2329 | | |
2323 | 2330 | | |
| 2331 | + | |
2324 | 2332 | | |
2325 | 2333 | | |
2326 | 2334 | | |
| |||
7745 | 7753 | | |
7746 | 7754 | | |
7747 | 7755 | | |
| 7756 | + | |
7748 | 7757 | | |
| 7758 | + | |
7749 | 7759 | | |
7750 | 7760 | | |
7751 | 7761 | | |
| |||
8234 | 8244 | | |
8235 | 8245 | | |
8236 | 8246 | | |
| 8247 | + | |
8237 | 8248 | | |
8238 | 8249 | | |
8239 | 8250 | | |
| |||
8289 | 8300 | | |
8290 | 8301 | | |
8291 | 8302 | | |
| 8303 | + | |
| 8304 | + | |
| 8305 | + | |
| 8306 | + | |
| 8307 | + | |
| 8308 | + | |
8292 | 8309 | | |
8293 | 8310 | | |
8294 | 8311 | | |
| |||
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
641 | 668 | | |
0 commit comments