Commit a997211
feat: collect entity (#265)
* feat: add text and word utils
* feat: add entity collector class
* refactor: rename SyntaxContextType to EntityContextType
* refactor: improve EntityCollector
* feat: improve mysql parser grammar
* feat: add mysql entity collector
* test: mysql entity collector tests
* feat: remove useless method
* feat: improve spark grammar file
* feat: add spark entity collector
* test: spark entity collector unit tests
* feat: remove useless code
* feat: add queryStatement label
* feat: add crateDatabaseStmt
* feat: add trino entity collector
* feat: rename trinosql to trino
* test: trino collect entity unit tests
* test: fix spark test
* feat(impala): support impale entity collector (#256)
* Feat/collect entity hive (#263)
* feat(hive): support hive collect entity
* feat(hive): update tableAllColumns
* feat: replace antlr4ts with antlr4ng
* feat(pgsql): pgsql collect entity (#268)
* feat(pgsql): pgsql collect entity
* feat(pgsql): optimize some name
---------
Co-authored-by: zhaoge <>
* feat: get word text by token.text
* feat: supprt collect db/function and add splitListener (#270)
* feat: supprt collect db/function and add splitListner
* feat: remove SplitListener interface in baseParser to use SplitListener in root
* fix(mysql): fix show create xxx not celloct as createXXXEntity type
* test: fix pgsql unit tests
* Feat/error recover predicate (#274)
* feat: optimize pgsql grammar
* feat: add sql parser base
* feat: apply SQLParserBase
* feat: add geAllEntities method
* test: test collect table when missing column
* feat: compose collect and suggestion (#276)
* feat: mark stmt which contain caret
* test: correct name of getAllEntities
* test: remove misscolumn unit tests
* test: add suggestionWithEntity tests
* feat: flink collect entity (#277)
* feat: improve flink sql parser
* feat: support flink entity collector
* test: flink entity collect unit test
* feat: move combine entities to parent class
---------
Co-authored-by: 霜序 <976060700@qq.com>
Co-authored-by: XCynthia <942884029@qq.com>1 parent 3f62ad0 commit a997211
230 files changed
Lines changed: 60670 additions & 50434 deletions
File tree
- src
- grammar
- flinksql
- hive
- impala
- mysql
- pgsql
- spark
- trinosql
- lib
- flinksql
- hive
- impala
- mysql
- pgsql
- plsql
- spark
- trinosql
- parser
- common
- flinksql
- hive
- impala
- mysql
- pgsql
- spark
- trino
- test/parser
- flinksql
- contextCollect
- fixtures
- suggestion
- fixtures
- hive
- contextCollect
- fixtures
- suggestion
- fixtures
- syntax/fixtures
- impala
- contextCollect
- fixtures
- suggestion
- fixtures
- syntax/fixtures
- mysql
- contextCollect
- fixtures
- suggestion
- fixtures
- pgsql
- contextCollect
- fixtures
- suggestion
- fixtures
- spark
- contextCollect
- fixtures
- suggestion
- fixtures
- trino
- contextCollect
- fixtures
- suggestion
- fixtures
- syntax
- fixtures
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 | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| |||
180 | 185 | | |
181 | 186 | | |
182 | 187 | | |
183 | | - | |
| 188 | + | |
184 | 189 | | |
185 | 190 | | |
186 | 191 | | |
| |||
289 | 294 | | |
290 | 295 | | |
291 | 296 | | |
292 | | - | |
293 | 297 | | |
294 | 298 | | |
295 | 299 | | |
| |||
484 | 488 | | |
485 | 489 | | |
486 | 490 | | |
| 491 | + | |
487 | 492 | | |
488 | 493 | | |
489 | 494 | | |
| |||
583 | 588 | | |
584 | 589 | | |
585 | 590 | | |
| 591 | + | |
586 | 592 | | |
587 | 593 | | |
588 | 594 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
17 | 15 | | |
18 | 16 | | |
19 | | - | |
20 | | - | |
| 17 | + | |
| 18 | + | |
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
| |||
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
804 | 807 | | |
805 | 808 | | |
806 | 809 | | |
| 810 | + | |
807 | 811 | | |
808 | 812 | | |
809 | 813 | | |
| |||
1096 | 1100 | | |
1097 | 1101 | | |
1098 | 1102 | | |
1099 | | - | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
1100 | 1107 | | |
1101 | 1108 | | |
1102 | 1109 | | |
| |||
1106 | 1113 | | |
1107 | 1114 | | |
1108 | 1115 | | |
1109 | | - | |
1110 | | - | |
| 1116 | + | |
| 1117 | + | |
1111 | 1118 | | |
1112 | 1119 | | |
1113 | 1120 | | |
| |||
1128 | 1135 | | |
1129 | 1136 | | |
1130 | 1137 | | |
1131 | | - | |
1132 | | - | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
1136 | | - | |
1137 | | - | |
1138 | 1138 | | |
1139 | 1139 | | |
1140 | 1140 | | |
| |||
1667 | 1667 | | |
1668 | 1668 | | |
1669 | 1669 | | |
1670 | | - | |
1671 | | - | |
| 1670 | + | |
1672 | 1671 | | |
1673 | 1672 | | |
1674 | 1673 | | |
| |||
1866 | 1865 | | |
1867 | 1866 | | |
1868 | 1867 | | |
| 1868 | + | |
1869 | 1869 | | |
1870 | 1870 | | |
1871 | 1871 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
| |||
75 | 80 | | |
76 | 81 | | |
77 | 82 | | |
78 | | - | |
| 83 | + | |
79 | 84 | | |
80 | 85 | | |
81 | 86 | | |
| |||
555 | 560 | | |
556 | 561 | | |
557 | 562 | | |
| 563 | + | |
558 | 564 | | |
559 | 565 | | |
560 | 566 | | |
| |||
582 | 588 | | |
583 | 589 | | |
584 | 590 | | |
585 | | - | |
586 | | - | |
| 591 | + | |
| 592 | + | |
587 | 593 | | |
588 | 594 | | |
589 | 595 | | |
| |||
610 | 616 | | |
611 | 617 | | |
612 | 618 | | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
613 | 623 | | |
614 | 624 | | |
615 | 625 | | |
| |||
625 | 635 | | |
626 | 636 | | |
627 | 637 | | |
628 | | - | |
| 638 | + | |
629 | 639 | | |
630 | 640 | | |
631 | 641 | | |
| |||
712 | 722 | | |
713 | 723 | | |
714 | 724 | | |
715 | | - | |
| 725 | + | |
716 | 726 | | |
717 | 727 | | |
718 | 728 | | |
| |||
835 | 845 | | |
836 | 846 | | |
837 | 847 | | |
838 | | - | |
839 | | - | |
840 | | - | |
841 | | - | |
842 | 848 | | |
843 | 849 | | |
844 | 850 | | |
| |||
0 commit comments