Merge branch 'dev' of ssh://gitlab.prod.dtstack.cn:10022/dt-insight-front/infrastructure/dt-sql-parser into dev

This commit is contained in:
Erindcl 2021-01-05 11:49:53 +08:00
commit 205c8b218d
3 changed files with 49 additions and 2 deletions

43
CHANGELOG.md Normal file
View File

@ -0,0 +1,43 @@
# Changelog
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
## [4.0.0-beta](https://github.com/DTStack/dt-sql-parser/compare/v3.0.5...v4.0.0-beta) (2020-12-30)
### Features
* **fink:** refactoring selectStatement ([dae7980](https://github.com/DTStack/dt-sql-parser/commit/dae7980f75232a69b9cac89e816fcc1e18b41e30))
* **flin:** add split sql test ([1a7573c](https://github.com/DTStack/dt-sql-parser/commit/1a7573c6901674b0fd135478ec66efefbab00561))
* **flink:** add createTable grammar ([6fd90ce](https://github.com/DTStack/dt-sql-parser/commit/6fd90ced5cc191bea18de79d7f0e4a3a080a9330))
* **flink:** add describe/explain/use/show statement and some test ([3e4318d](https://github.com/DTStack/dt-sql-parser/commit/3e4318db6182f7a1850de25396320688039f050a))
* **flink:** add drop/alter test add add part of queryStatement ([5be0acb](https://github.com/DTStack/dt-sql-parser/commit/5be0acb6922e7673114c0e20c167acf16c41f356))
* **flink:** add grammar rules that pass the test ([0b599c9](https://github.com/DTStack/dt-sql-parser/commit/0b599c99db8f486a8783d3de8b86a9ffbe8a215f))
* **flink:** add inset\drop\alter grammar ([6c60c4b](https://github.com/DTStack/dt-sql-parser/commit/6c60c4be582fc75af98bbeacc3d40f36226bab08))
* **flink:** add performance test ([c8a4aee](https://github.com/DTStack/dt-sql-parser/commit/c8a4aee373395aa865f7c3d04bb5edd0495ed672))
* **flink:** add queryStatement ([22c824b](https://github.com/DTStack/dt-sql-parser/commit/22c824bad6eb009f24ad5a8f8deebefdff6c3671))
* **flink:** adjust lexer position to fix test error ([970e1c0](https://github.com/DTStack/dt-sql-parser/commit/970e1c08352d5f863a662ef42bf3b9d0c9325d0d))
* **flink:** merge parser and lexer in order to java test ([a5dda8e](https://github.com/DTStack/dt-sql-parser/commit/a5dda8e67f92a4555f4a279d20594ecef6195123))
* **flink:** modify grammar to match keywords ([c1b6b56](https://github.com/DTStack/dt-sql-parser/commit/c1b6b56fce21910684604936317ecb28a19e506d))
* **flink:** perfect query statement ([a74eb1b](https://github.com/DTStack/dt-sql-parser/commit/a74eb1be1155c3ee4fa6d67058f1c8c47adb1f7b))
* **flink:** update createTable grammar ([5cf9312](https://github.com/DTStack/dt-sql-parser/commit/5cf9312d6411969683acbf75aa4431bb314f14ea))
* **flink:** update flink SQL grammar ([34fbc37](https://github.com/DTStack/dt-sql-parser/commit/34fbc377e4dea32b9e1f86e276812324e11a097c))
* **flink:** update flinkSql grammar and add some test ([cd344a9](https://github.com/DTStack/dt-sql-parser/commit/cd344a986c043f3da67d4b8aa69cac74e377962f))
* **flink:** update grammar to match special columnName ([25fbdf0](https://github.com/DTStack/dt-sql-parser/commit/25fbdf0df9dbc3690ddc9532bd60a2e47f628264))
* **utils:** add cleanSql、splitSql、lexer func and test ([2400a1c](https://github.com/DTStack/dt-sql-parser/commit/2400a1ce3b54e1336f0940b59846392b36d57eaa))
* add generic and plsql basic parser file ([7ec0001](https://github.com/DTStack/dt-sql-parser/commit/7ec000157c9355cb01b9be80367554c151f1e8e6))
* add some query grammar ([bc06afa](https://github.com/DTStack/dt-sql-parser/commit/bc06afa0c096118be7c8a8f21469d7bc976dac96))
* create hive lexer and hive parser ([81fb236](https://github.com/DTStack/dt-sql-parser/commit/81fb23648e0f3d080331f16f387a857d26f12d60))
* refactoring hive SQL lexer ([c3af5fc](https://github.com/DTStack/dt-sql-parser/commit/c3af5fccc10619f9ea4cb7680e58864bfbbae2c0))
* **flinksql:** add some lexer ([e8822d5](https://github.com/DTStack/dt-sql-parser/commit/e8822d530f79bd873dc259ba6182789397fb68f2))
### Bug Fixes
* jest command ([8a2bc42](https://github.com/DTStack/dt-sql-parser/commit/8a2bc4277fc0b78323437b27e3d7be2450eb6eb4))
* ts problem ([8bc0ce9](https://github.com/DTStack/dt-sql-parser/commit/8bc0ce9fb023a742705f1e6aab69153e89e10ec5))
* **flink:** clear useless comments ([d3008ad](https://github.com/DTStack/dt-sql-parser/commit/d3008add05c45a748acda539fbb4cbc12603d482))
* adjust import path ([cff6192](https://github.com/DTStack/dt-sql-parser/commit/cff6192d0f87c12cdd88159b9d2fa3e68b836ecb))
* restore antlr4 config ([3137fac](https://github.com/DTStack/dt-sql-parser/commit/3137fac4e15444e6fc9845e0d25ba2b0d9c091d6))
# Changelog
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

View File

@ -226,7 +226,7 @@ Parse the input and convert the AST to a `List-like` tree string.
## Roadmap ## Roadmap
- Auto-complete - Auto-complete
- Format code - Code formatting
## License ## License

View File

@ -1,7 +1,7 @@
{ {
"name": "dt-sql-parser", "name": "dt-sql-parser",
"version": "4.0.0-beta", "version": "4.0.0-beta",
"description": "There are some sql parsers in javascript and generated by antlr4", "description": "There are some sql parsers built with antlr4, and it's mainly for the **BigData** domain.",
"keywords": [ "keywords": [
"sql", "sql",
"parser", "parser",
@ -33,6 +33,10 @@
"typescript": "^3.6.3" "typescript": "^3.6.3"
}, },
"git repository": "https://github.com/DTStack/dt-sql-parser", "git repository": "https://github.com/DTStack/dt-sql-parser",
"repository": "https://github.com/DTStack/dt-sql-parser",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"dependencies": { "dependencies": {
"@types/antlr4": "4.7.0", "@types/antlr4": "4.7.0",
"antlr4": "4.7.2" "antlr4": "4.7.2"