Skip to content

Commit e60bee4

Browse files
author
zhaoge
committed
Merge branch 'main' into next
2 parents 764deb8 + d6e1df2 commit e60bee4

16 files changed

Lines changed: 7994 additions & 7869 deletions

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@ All notable changes to this project will be documented in this file. See [standa
66
### [4.4.2](https://github.com/DTStack/dt-sql-parser/compare/v4.4.1...v4.4.2) (2026-03-06)
77

88

9+
### Bug Fixes
10+
11+
* **flink:** [#455](https://github.com/DTStack/dt-sql-parser/issues/455) fix json functions' params problem in flink ([12ef949](https://github.com/DTStack/dt-sql-parser/commit/12ef949339ffb0889e428c97c54149cd567b6ae8))
12+
* **flink:** some grammar rules ([#465](https://github.com/DTStack/dt-sql-parser/issues/465)) ([20e352c](https://github.com/DTStack/dt-sql-parser/commit/20e352cb32142c825ee086e36051ff9797798e09)), closes [#464](https://github.com/DTStack/dt-sql-parser/issues/464) [#464](https://github.com/DTStack/dt-sql-parser/issues/464) [#464](https://github.com/DTStack/dt-sql-parser/issues/464)
13+
14+
### [4.4.1](https://github.com/DTStack/dt-sql-parser/compare/v4.3.1...v4.4.1) (2025-12-22)
15+
16+
17+
### Features
18+
19+
* mark as entityCollecting in getAllEntities context to allow empty column ([ba6fbbb](https://github.com/DTStack/dt-sql-parser/commit/ba6fbbbe90bee79a7bba22350c3d50d6c9205b0d))
20+
* remove noReserved keywords in completions ([cf1957e](https://github.com/DTStack/dt-sql-parser/commit/cf1957e66896fbcb587f6038242e8f174b7045ff))
21+
22+
923
### Bug Fixes
1024

1125
* **flink:** [#455](https://github.com/DTStack/dt-sql-parser/issues/455) fix json functions' params problem in flink ([12ef949](https://github.com/DTStack/dt-sql-parser/commit/12ef949339ffb0889e428c97c54149cd567b6ae8))

src/grammar/spark/SparkSqlParser.g4

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,6 @@ clusterOrDistributeBy
466466

467467
queryTerm
468468
: queryPrimary
469-
| left=queryTerm operator=(KW_INTERSECT | KW_UNION | KW_EXCEPT | KW_MINUS) setQuantifier? right=queryTerm
470469
| left=queryTerm operator=KW_INTERSECT setQuantifier? right=queryTerm
471470
| left=queryTerm operator=(KW_UNION | KW_EXCEPT | KW_MINUS) setQuantifier? right=queryTerm
472471
;

src/grammar/trino/TrinoSql.g4

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,7 @@ primaryExpression
638638
| KW_SUBSTRING '(' valueExpression KW_FROM valueExpression (KW_FOR valueExpression)? ')' # substring
639639
| KW_NORMALIZE '(' valueExpression (',' normalForm)? ')' # normalize
640640
| KW_EXTRACT '(' identifier KW_FROM valueExpression ')' # extract
641+
| KW_COALESCE '(' expression (',' expression)* ')' # coalesce
641642
| '(' expression ')' # parenthesizedExpression
642643
| KW_GROUPING '(' (qualifiedName (',' qualifiedName)*)? ')' # groupingOperation
643644
| KW_JSON_EXISTS '(' jsonPathInvocation (jsonExistsErrorBehavior KW_ON KW_ERROR)? ')' # jsonExists
@@ -1125,6 +1126,7 @@ nonReserved
11251126
| KW_CASCADE
11261127
| KW_CATALOG
11271128
| KW_CATALOGS
1129+
| KW_COALESCE
11281130
| KW_COLUMN
11291131
| KW_COLUMNS
11301132
| KW_COMMENT
@@ -1358,6 +1360,7 @@ KW_CASE : 'CASE';
13581360
KW_CAST : 'CAST';
13591361
KW_CATALOG : 'CATALOG';
13601362
KW_CATALOGS : 'CATALOGS';
1363+
KW_COALESCE : 'COALESCE';
13611364
KW_COLUMN : 'COLUMN';
13621365
KW_COLUMNS : 'COLUMNS';
13631366
KW_COMMENT : 'COMMENT';

src/lib/spark/SparkSqlParser.interp

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)