Skip to content

Commit

Permalink
fix(flink): fix flinksql syntax error about ROW and function using
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoge committed Jan 2, 2025
1 parent 64ed7e4 commit 6c92b52
Show file tree
Hide file tree
Showing 6 changed files with 2,296 additions and 2,122 deletions.
5 changes: 3 additions & 2 deletions src/grammar/flink/FlinkSqlParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ mapTypeDimension

rowTypeDimension
: LESS_SYMBOL columnName columnType (COMMA columnName columnType)* GREATER_SYMBOL
| LR_BRACKET columnName columnType (COMMA columnName columnType)* RR_BRACKET
;

columnConstraint
Expand Down Expand Up @@ -647,7 +648,7 @@ limitClause
;

partitionByClause
: KW_PARTITION KW_BY columnName (COMMA columnName)*
: KW_PARTITION KW_BY (columnName | primaryExpression) (COMMA (columnName | primaryExpression))*
;

quantifiers
Expand Down Expand Up @@ -1216,4 +1217,4 @@ nonReservedKeywords
| KW_WEEK
| KW_YEARS
| KW_ZONE
;
;
2 changes: 1 addition & 1 deletion src/lib/flink/FlinkSqlParser.interp

Large diffs are not rendered by default.

Loading

0 comments on commit 6c92b52

Please sign in to comment.