Commit 764deb8
* chore(release): 4.3.0
* fix(common): #424 allTokens slice when caretTokenIndex use tokenIndexOffset (#426)
* test: #424 syntax after comments
* fix(common): #424 allTokens slice when caretTokenIndex use tokenIndexOffset
* chore(release): 4.3.1
* fix(postgresql): #432 remove error rule
* test: #432 validate unComplete sql
* fix: #432 remove error rule
* feat: mark as entityCollecting in getAllEntities context to allow empty column
* chore: update jest.config.js to hide console.log
* fix(flink): #442 fix flink's insert values() can't support function problem
* feat: remove noReserved keywords in completions
* test: add filter keywords test case
* test: #438 sync suggestion no duplicate syntaxContextType
* fix: #438 syntaxContextType not duplicate
* chore(release): 4.4.0-beta.0
* chore(release): 4.4.0
* feat: support query result and derived table entity collecting (#434)
* feat: support queryResult and derived table entities collecting
* feat: support query result and derived table entity collecting
* test: enhance hive and spark entity collect test case
* fix: remove _ctx and add tokenIndex into position
* fix: rename declareType COMMON to LITERAL
* fix: optimize entity collector and update grammar
* test: add derived table and query result entities test case
* fix: remove isCaretInDerivedTableStmt and set default isAccessible to null
* fix: update _caretStmt docs
* test: add isAccessible test case
* fix: skip _caretStmt ts check
* docs: update README to include additional entity information
* test: fix create view test case
* fix: import from error sql module
* test: update entity collection tests
* fix: remove unused type
* feat: match empty column when in entityCollecting context
* feat: optimize collecting entity when match empty column in entityCollecting context (#467)
Co-authored-by: Cythia828 <942884029@qq.com>
---------
Co-authored-by: Cythia828 <942884029@qq.com>
Co-authored-by: JackWang032 <64318393+JackWang032@users.noreply.github.com>
Co-authored-by: mumiao <1270865802zl@gmail.com>
Co-authored-by: 琉易 <liuxy0551@qq.com>
Co-authored-by: zhaoge <942884029@qq.com>
1 parent 107ba2d commit 764deb8
47 files changed
Lines changed: 45642 additions & 40063 deletions
File tree
- src
- grammar
- flink
- hive
- impala
- mysql
- postgresql
- spark
- lib
- flink
- hive
- impala
- mysql
- postgresql
- spark
- parser
- common
- flink
- mysql
- postgresql
- spark
- test/parser
- hive/suggestion
- mysql/suggestion
- fixtures
- postgresql/suggestion
- fixtures
- trino/suggestion
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
187 | 191 | | |
188 | | - | |
189 | | - | |
| 192 | + | |
| 193 | + | |
190 | 194 | | |
191 | 195 | | |
192 | 196 | | |
193 | 197 | | |
194 | 198 | | |
195 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
196 | 205 | | |
197 | 206 | | |
198 | 207 | | |
| |||
500 | 509 | | |
501 | 510 | | |
502 | 511 | | |
| 512 | + | |
503 | 513 | | |
504 | 514 | | |
505 | 515 | | |
| |||
614 | 624 | | |
615 | 625 | | |
616 | 626 | | |
617 | | - | |
| 627 | + | |
618 | 628 | | |
619 | 629 | | |
620 | 630 | | |
621 | 631 | | |
622 | | - | |
| 632 | + | |
623 | 633 | | |
624 | 634 | | |
625 | 635 | | |
| |||
1037 | 1047 | | |
1038 | 1048 | | |
1039 | 1049 | | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
1040 | 1055 | | |
1041 | 1056 | | |
1042 | 1057 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
754 | 754 | | |
755 | 755 | | |
756 | 756 | | |
757 | | - | |
758 | | - | |
| 757 | + | |
| 758 | + | |
759 | 759 | | |
760 | 760 | | |
761 | 761 | | |
762 | 762 | | |
763 | 763 | | |
764 | 764 | | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
765 | 770 | | |
766 | 771 | | |
767 | 772 | | |
| |||
1346 | 1351 | | |
1347 | 1352 | | |
1348 | 1353 | | |
1349 | | - | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
1350 | 1358 | | |
1351 | 1359 | | |
1352 | 1360 | | |
| |||
1469 | 1477 | | |
1470 | 1478 | | |
1471 | 1479 | | |
1472 | | - | |
| 1480 | + | |
1473 | 1481 | | |
1474 | 1482 | | |
1475 | 1483 | | |
| |||
1528 | 1536 | | |
1529 | 1537 | | |
1530 | 1538 | | |
| 1539 | + | |
1531 | 1540 | | |
1532 | 1541 | | |
1533 | 1542 | | |
| |||
1600 | 1609 | | |
1601 | 1610 | | |
1602 | 1611 | | |
1603 | | - | |
| 1612 | + | |
1604 | 1613 | | |
1605 | 1614 | | |
1606 | 1615 | | |
| |||
2425 | 2434 | | |
2426 | 2435 | | |
2427 | 2436 | | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
2428 | 2441 | | |
2429 | 2442 | | |
2430 | 2443 | | |
2431 | 2444 | | |
| 2445 | + | |
| 2446 | + | |
| 2447 | + | |
| 2448 | + | |
| 2449 | + | |
2432 | 2450 | | |
2433 | 2451 | | |
2434 | 2452 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
561 | 565 | | |
562 | | - | |
563 | | - | |
| 566 | + | |
| 567 | + | |
564 | 568 | | |
565 | 569 | | |
566 | 570 | | |
567 | 571 | | |
568 | 572 | | |
569 | 573 | | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
570 | 579 | | |
571 | 580 | | |
572 | 581 | | |
| |||
781 | 790 | | |
782 | 791 | | |
783 | 792 | | |
784 | | - | |
| 793 | + | |
785 | 794 | | |
786 | 795 | | |
787 | 796 | | |
788 | | - | |
| 797 | + | |
789 | 798 | | |
790 | 799 | | |
791 | 800 | | |
| |||
814 | 823 | | |
815 | 824 | | |
816 | 825 | | |
| 826 | + | |
817 | 827 | | |
818 | 828 | | |
819 | 829 | | |
| |||
854 | 864 | | |
855 | 865 | | |
856 | 866 | | |
857 | | - | |
| 867 | + | |
858 | 868 | | |
859 | 869 | | |
860 | 870 | | |
| |||
1149 | 1159 | | |
1150 | 1160 | | |
1151 | 1161 | | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
1152 | 1167 | | |
1153 | 1168 | | |
1154 | 1169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1122 | 1122 | | |
1123 | 1123 | | |
1124 | 1124 | | |
1125 | | - | |
| 1125 | + | |
1126 | 1126 | | |
1127 | 1127 | | |
1128 | 1128 | | |
| |||
1205 | 1205 | | |
1206 | 1206 | | |
1207 | 1207 | | |
1208 | | - | |
1209 | | - | |
1210 | | - | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
1211 | 1212 | | |
1212 | 1213 | | |
1213 | 1214 | | |
| |||
1249 | 1250 | | |
1250 | 1251 | | |
1251 | 1252 | | |
1252 | | - | |
| 1253 | + | |
1253 | 1254 | | |
1254 | 1255 | | |
1255 | 1256 | | |
| |||
2419 | 2420 | | |
2420 | 2421 | | |
2421 | 2422 | | |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
| 2426 | + | |
2422 | 2427 | | |
2423 | 2428 | | |
2424 | 2429 | | |
2425 | | - | |
| 2430 | + | |
| 2431 | + | |
| 2432 | + | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
2426 | 2441 | | |
2427 | 2442 | | |
2428 | 2443 | | |
| |||
2998 | 3013 | | |
2999 | 3014 | | |
3000 | 3015 | | |
3001 | | - | |
| 3016 | + | |
3002 | 3017 | | |
3003 | 3018 | | |
3004 | 3019 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2615 | 2615 | | |
2616 | 2616 | | |
2617 | 2617 | | |
2618 | | - | |
| 2618 | + | |
| 2619 | + | |
2619 | 2620 | | |
2620 | 2621 | | |
2621 | 2622 | | |
| |||
2634 | 2635 | | |
2635 | 2636 | | |
2636 | 2637 | | |
| 2638 | + | |
| 2639 | + | |
2637 | 2640 | | |
2638 | 2641 | | |
2639 | 2642 | | |
| |||
2722 | 2725 | | |
2723 | 2726 | | |
2724 | 2727 | | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
2725 | 2733 | | |
2726 | 2734 | | |
2727 | | - | |
2728 | 2735 | | |
2729 | 2736 | | |
2730 | 2737 | | |
| |||
2795 | 2802 | | |
2796 | 2803 | | |
2797 | 2804 | | |
| 2805 | + | |
| 2806 | + | |
| 2807 | + | |
| 2808 | + | |
| 2809 | + | |
| 2810 | + | |
2798 | 2811 | | |
2799 | 2812 | | |
2800 | 2813 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
416 | 420 | | |
417 | | - | |
418 | | - | |
| 421 | + | |
| 422 | + | |
419 | 423 | | |
420 | 424 | | |
421 | 425 | | |
422 | 426 | | |
423 | 427 | | |
424 | 428 | | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
425 | 434 | | |
426 | 435 | | |
427 | 436 | | |
| |||
680 | 689 | | |
681 | 690 | | |
682 | 691 | | |
683 | | - | |
| 692 | + | |
684 | 693 | | |
685 | 694 | | |
686 | 695 | | |
| |||
804 | 813 | | |
805 | 814 | | |
806 | 815 | | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
807 | 821 | | |
808 | 822 | | |
809 | 823 | | |
| |||
836 | 850 | | |
837 | 851 | | |
838 | 852 | | |
| 853 | + | |
839 | 854 | | |
840 | 855 | | |
841 | 856 | | |
| |||
0 commit comments