Commit Graph

122 Commits

Author SHA1 Message Date
wewoor
04a56ba618 refactor: import readSQL function 2023-05-11 18:12:50 +08:00
wewoor
4af913cf30 feat: extracting the common readSQL function 2023-05-11 18:11:12 +08:00
野迂迂
370cccf8d9
feat: improve flinksql createStatement (#91)
* feat: improve flinksql createStatement

* feat: complete CREATE syntax unit tests

* feat: complete CREATA TABLE syntax tests

* feat: develop flinkSQL grammar

* feat: improve tableConstraint

* fix: convert TIMESTAMP_LTZ

* test: improve tests

* feat: build new flinksql parser and lexer

* test: add CREATE TEMPLATE TABLE test
2023-05-11 17:41:34 +08:00
Ziv
c1c72def30
feat: upgrade antlr4 to 4.12.0 (#88) 2023-05-04 10:13:05 +08:00
nankaNULL
c0842b3e07
Feat/flink dt sql (#75)
* feat: dt self develop grammar

* feat: dt self develop grammar
2023-03-21 09:53:25 +08:00
nankaNULL
4f02f9aca0
Feat/flink grammar (#73)
* feat: complete flink sql insert statement

* feat: complete flink sql drop statement

* feat: complete flink sql alert statement

* feat: complete flink sql create statement, remove console log

* feat: complete flink sql describe, show, explain, use statement

* feat(flinksql): add statement, such as set, load

* fix(flinksql): fix insert, add temporary table
2023-02-27 19:03:32 +08:00
Ziv
14c2534de7
fix: remove space character in line comment rule (#69)
* fix: remove space character in line comment rule

* build: recompile grammars

* test: add cases for line comment
2023-01-09 11:01:10 +08:00
nankaNULL
0c9a831585
fix: fix flinksql create table grammar, add test (#65)
* fix: fix flinksql create table grammar, add test

* feat: add cross join, left outer join and time temporal join

* test: supplement flinksql join test

* fix: fix catalog table grammar, add test

* fix: fix flinksql data type, add test

* fix: delete console

* feat: add query with clause, add test
2022-12-28 14:20:33 +08:00
nankanull
d4ac1ae940 test: add nested bracket test 2022-12-25 13:30:43 +08:00
Salvatore Ravidà
ea0f061ff9 Added tests - restore target es6 - transpile base into es5 2022-12-16 15:13:56 +08:00
xiaowei
850b6087fd test: split special sqls 2021-09-10 17:50:58 +08:00
xiaowei
5404cdd4d0 test: unit test for the custom variables 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
xiaowei
788374c1ec refactor(utils): import methods from src index 2021-01-05 18:02:01 +08:00
xiaowei
dc9974bbff refactor(spark): extract spark export into src index 2021-01-05 17:57:33 +08:00
xiaowei
221482cc7c refactor(plsql): extract plsql export into src index 2021-01-05 17:49:34 +08:00
xiaowei
57aba357ab refactor(hive): extract hive export into src index 2021-01-05 17:45:54 +08:00
xiaowei
0f6c7849f2 refactor(test): import from src index file 2021-01-05 17:41:21 +08:00
Erindcl
da2581533f fix: delete mock data 2021-01-05 11:49:40 +08:00
zhifei
a059f79585 Merge branch 'build' into 'dev'
ci: integrate with gitlab-ci

See merge request dt-insight-front/infrastructure/dt-sql-parser!7
2020-12-30 10:01:55 +08:00
Erindcl
6b16f752e4 fix: ts problem 2020-12-28 19:07:13 +08:00
xigua
084efe1aab modify sparkSql grammar 2020-12-17 16:35:49 +08:00
xigua
8418c42c26 Merge branch 'dev' into feat_sparkSql 2020-12-17 14:59:52 +08:00
xigua
edbc87e8f1 update sql parser name 2020-12-17 11:44:45 +08:00
Erindcl
e6ee2ff411 Merge branch 'dev' into feat_flinkSql 2020-12-14 14:03:28 +08:00
Erindcl
771b562c78 fix(flink): clear useless comments 2020-12-14 11:48:08 +08:00
Erindcl
3054e90917 feat(flin): add split sql test 2020-12-14 11:23:40 +08:00
Erindcl
7d6c753d82 feat(utils): add cleanSql、splitSql、lexer func and test 2020-12-09 17:59:24 +08:00
Erindcl
a9b1e90d73 feat(flink): update grammar to match special columnName 2020-12-09 11:08:56 +08:00
Erindcl
e67f991ede feat(flink): modify grammar to match keywords 2020-12-08 16:04:56 +08:00
Erindcl
cc1d5abcdd feat(flink): add performance test 2020-12-04 11:14:20 +08:00
Erindcl
c9d88d00a6 feat(flink): update flinkSql grammar and add some test 2020-12-03 20:03:25 +08:00
Erindcl
8cfdd0e856 test(flink): add flink visitor and listener test 2020-12-02 10:35:37 +08:00
Erindcl
0ef80696f4 feat(flink): add describe/explain/use/show statement and some test 2020-11-26 11:20:57 +08:00
chenfeng
cb1fcb7ed6 test: add hivesql unit test 2020-11-25 17:04:55 +08:00
chenfeng
110c4f1fa5 test: add hive validate unit test 2020-11-25 15:04:22 +08:00
Erindcl
0735269f4e feat(flink): merge parser and lexer in order to java test 2020-11-18 20:05:49 +08:00
Erindcl
a5ea7be606 feat: add some query grammar 2020-11-11 19:58:14 +08:00
xigua
0d47b7debc modify grammar, add syntax test 2020-11-05 20:37:07 +08:00
Erindcl
9fc91a572a feat(flink): add drop/alter test add add part of queryStatement 2020-11-04 18:03:41 +08:00
xigua
bfe055be71 add sparkSql base grammar 2020-10-28 21:34:13 +08:00
Erindcl
6082c2b151 feat(flinksql): add some lexer 2020-10-23 17:52:43 +08:00
Erindcl
b7df08f012 feat(flink): add createTable grammar 2020-10-22 19:57:13 +08:00
xiaowei
f85163892a feat: add generic and plsql basic parser file 2020-09-11 17:39:10 +08:00
xiaowei
d86a6e7638 build: optimize cli and add eslint 2020-08-28 13:29:47 +08:00
HSunboy
3bf241408c fix insert rowValuesList syntax 2020-03-26 13:06:16 +08:00
HSunboy
0c5f6164f4 fix hive insert syntax 2020-03-26 11:47:47 +08:00
HSunboy
364dc5fcae fix impala create table as select column bug 2020-01-10 17:00:09 +08:00
HSunboy
93125a715a update new parser 2019-12-31 18:34:31 +08:00
HSunboy
6eda025e39 add left function 2019-12-27 19:30:37 +08:00
HSunboy
a486270ab1 add impala lifecycle 2019-12-25 10:58:12 +08:00
HSunboy
67b3f68113 fix impala 2019-12-23 17:57:22 +08:00
HSunboy
02b00e17e0 add primary key support 2019-11-15 11:01:55 +08:00
HSunboy
2962271262 support MATCH_RECOGNIZE 2019-10-21 16:52:16 +08:00
HSunboy
eb0d32751b add lateral table support 2019-10-08 17:22:35 +08:00
HSunboy
3b6c224e0e fix split bug 2019-09-29 17:38:52 +08:00
HSunboy
966a8d31f4 fix error position 2019-09-25 17:04:43 +08:00
HSunboy
325a2db4cf add empty sql support 2019-09-25 16:48:19 +08:00
HSunboy
8d7040d04b add flinksql 2019-09-25 15:43:36 +08:00
HSunboy
e79a5a3d07 fix bugs 2019-06-04 17:54:27 +08:00
HSunboy
711721ec0e add test folder 2019-05-31 15:58:34 +08:00
HSunboy
7096f4be00 .gitignore is working, fixed untracked files 2018-12-13 14:23:40 +08:00
HSunboy
77bbf57d28 fix escape bug 2018-11-30 13:40:48 +08:00
HSunboy
e4ee8218e4 update readme 2018-08-16 19:30:22 +08:00
HSunboy
11ea28e790 ignore 2018-07-06 16:28:54 +08:00
HSunboy
152f186a2e 用pegjs重写过滤逻辑 2018-07-05 11:16:30 +08:00
HSunboy
6eb8a18c48 add peg source file 2018-07-03 11:33:53 +08:00
HSunboy
b2c7777fb6 add new comment 2018-07-02 19:36:09 +08:00
HSunboy
a729770b76 init 2018-07-02 18:01:01 +08:00