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 c5da167 commit ffd5aef
Show file tree
Hide file tree
Showing 6 changed files with 1,384 additions and 1,240 deletions.
9 changes: 6 additions & 3 deletions src/grammar/flink/FlinkSqlParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,10 @@ mapTypeDimension
;

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

columnConstraint
Expand Down Expand Up @@ -647,7 +650,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 +1219,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 ffd5aef

Please sign in to comment.