mumiao
c409b80ee1
feat(flink): support insert multipe tables statement for FlinkSQL 1.15( #104 )
...
* feat(flink): support insert multipe tables statement for FlinkSQL 1.15
* test: recover jest.config info
* fix(flink): correct typo
* fix(flinksql): resolve conflicts
2023-05-23 14:40:52 +08:00
野迂迂
4b824fb500
feat(flink): support NOT NULL syntax ( #103 )
...
* feat(flink): support NOT NULL syntax
* feat(flinksql): support NULL
2023-05-23 10:12:05 +08:00
Hayden
40c911597b
refactor: improve keywords definations ( #100 )
...
* feat: improve keywords definations and add prefix named KW_
* test: capitalize keywords in alter sql test cases
* test: capitalize keywords in create sql test cases
* feat: merge interval rule and timeIntervalExpression rule in flinksql grammar
* test: put keywords in quotation marks around insert sql test cases
* test: put keywords in quotation marks around select sql test cases
* feat: improve uid rule
* test: rename sum to _sum because it is a reserved keyword
* docs: improve comments in flinkSqlLexer
2023-05-19 14:28:25 +08:00
Hayden
a026ae0592
feat: complete Query statements of FlinkSQL ( #93 )
...
* feat: add inlineDataValueClasue rule
* test: update tests of select statements
* feat: support flinksql window TVF grammar
* test: flink sql windown TVF statement test
* feat: support grouping sets grammar
* test: window TVF Aggregation and Group Window Aggregation tests
* test: supplemental selectAggregation with test cases
* test: add Having statement test case
* feat: support flinkSql over aggregation grammar
* test: add over aggregation grammar test cases
* test: flink sql join statement test cases
* test: flink sql set Operations grammar test cases
* test: flink sql limit clause test case
* feat: remove allPlusUid and replace with uid
* feat: support flink sql pattern recognition grammar
* test: flink sql pattern recognition tests
* feat: add flink sql with clause rule
* test: flink sql with clasue select tests
* feat: rebuild flink sql parser
2023-05-17 10:30:25 +08:00
Ziv
fbee70cde5
feat: update alter and drop statements ( #94 )
...
* feat: add UNIQUE keyword
* feat: support ifExist, addConstraint, dropConstraint and addUnique of alter table statement
* feat: support ifExist, addConstraint, dropConstraint and addUnique of alter table statement
* tests: add tests of alter statements
* docs: add comments for sql syntax
* build: optimize promote of build/antlr4
* ci: add max_old_space_size
* ci: add max_old_space_size
* ci: update tests script
2023-05-17 10:00:35 +08:00
wewoor
526a58ad2e
Merge branch 'master' of github.com:DTStack/dt-sql-parser
2023-05-12 10:47:46 +08:00
mumiao
dc417e1381
feat: improve flinksql insertStatement
...
* feat: feat: improve flinksql insertStatement
* feat: complete insertFromSelectQueries syntax unit tests
* feat: complete insertValuesIntoTable syntax unit tests
* feat: improve insertValuesIntoTable sql case data
* feat: complete insertMultipeTables unit cases
* feat: depracate insertMulStatement grammar for 1.1.4
* fix: depracate unless files
* test: recover jest.config info
* feat: improve insertMultipleTable.sql test case
* feat: build new flinksql parser and lexer
* feat: generator new flink parser and lexer file
* test: improve readSQL logic
* test: fix insertMultipleTable sql error
* test: recover jest.config.js info
2023-05-12 09:31:54 +08:00
野迂迂
c41beeaa5a
refactor: readSQL support multiple tables ( #95 )
2023-05-11 19:31:03 +08:00
wewoor
7b7c2ab8d8
test: drop statment tests
2023-05-11 19:06:19 +08:00
wewoor
65a754e533
test: update tests of alter statemnts
2023-05-11 18:54:56 +08:00
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