Skip to content

Commit ed45ab2

Browse files
committed
fix: #367 flink support array[index].key
1 parent 2358d95 commit ed45ab2

File tree

5 files changed

+1110
-1030
lines changed

5 files changed

+1110
-1030
lines changed

src/grammar/flink/FlinkSqlParser.g4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,7 @@ primaryExpression
763763
// | identifier '->' expression #lambda
764764
// | '(' identifier (',' identifier)+ ')' '->' expression #lambda
765765
| value=primaryExpression LS_BRACKET index=valueExpression RS_BRACKET # subscript
766+
| value=primaryExpression DOT index=valueExpression # subscriptWithKey
766767
| identifier # columnReference
767768
| dereferenceDefinition # dereference
768769
| LR_BRACKET expression RR_BRACKET # parenthesizedExpression
@@ -1216,4 +1217,4 @@ nonReservedKeywords
12161217
| KW_WEEK
12171218
| KW_YEARS
12181219
| KW_ZONE
1219-
;
1220+
;

src/lib/flink/FlinkSqlParser.interp

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

0 commit comments

Comments
 (0)