Commit Graph

14 Commits

Author SHA1 Message Date
Hayden
1b02ff5d75
feat: FlinkSQL supports auto complete (#115)
* feat: add antlr4-c3 dependencies

* feat: distinguish table, catalog and database from uid

* feat: move semicolon from sqlStatements to sqlStatement

* chore: move antlr4ts-cli to devDependencies

* feat: improve basic parser and support suggestions of token and syntax

* feat: implement suggest method in sql parsers

* test: flink sql suggestion test cases

* feat: optimize ts defination of suggestion

* feat: add split listener and optimize performance of auto-completion

* test: supplementary flink suggestion unit tests
2023-06-09 11:22:53 +08:00
nankanull
e446fc0435 fix: fix bracket match 2022-12-25 13:30:43 +08:00
xiaowei
bb6e8ac025 feat: tokenizer for the function arugments 2021-09-10 17:50:58 +08:00
xiaowei
b1ae454ae4 feat: add Bracket, Comma, and FunctionArguments tokens 2021-09-10 17:50:58 +08:00
xiaowei
5f5af0a4ab fix: lexer for comment 2021-05-11 13:40:52 +08:00
Ziv
dc49697302
fix: clean sql white spaces #21 2021-05-11 13:39:42 +08:00
Ziv
bff1618742
Revert "fix: clea sql white spaces \n fix #21 (#26)" (#28)
This reverts commit b632f62678.
2021-05-11 13:37:34 +08:00
Ziv
b632f62678
fix: clea sql white spaces \n fix #21 (#26) 2021-05-11 13:35:45 +08:00
Erindcl
771b562c78 fix(flink): clear useless comments 2020-12-14 11:48:08 +08:00
Erindcl
7d6c753d82 feat(utils): add cleanSql、splitSql、lexer func and test 2020-12-09 17:59:24 +08:00
xiaowei
c069f9f714 refactor: unify the parser generator to antlr4 2020-08-28 13:29:11 +08:00
HSunboy
3b6c224e0e fix split bug 2019-09-29 17:38:52 +08:00
HSunboy
8d7040d04b add flinksql 2019-09-25 15:43:36 +08:00
HSunboy
a15ab96a66 change to ts 2019-01-28 20:25:26 +08:00