Skip to content

Commit

Permalink
[fix](keyword) add BELONG as reserve keyword (#31230)
Browse files Browse the repository at this point in the history
This #27994 introduce a new keyword BELONG, need to add it as reserve keyword
  • Loading branch information
morningman authored and Doris-Extras committed Feb 22, 2024
1 parent 241a2fc commit a5ee1b3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ BACKEND: 'BACKEND';
BACKENDS: 'BACKENDS';
BACKUP: 'BACKUP';
BEGIN: 'BEGIN';
BELONG: 'BELONG';
BETWEEN: 'BETWEEN';
BIGINT: 'BIGINT';
BIN: 'BIN';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,7 @@ nonReserved
| BACKENDS
| BACKUP
| BEGIN
| BELONG
| BIN
| BITAND
| BITMAP
Expand Down
4 changes: 3 additions & 1 deletion fe/fe-core/src/main/cup/sql_parser.cup
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ terminal String
KW_BINLOG,
KW_BITMAP,
KW_BITMAP_UNION,
KW_NGRAM_BF,
KW_BLOB,
KW_BOOLEAN,
KW_BRIEF,
Expand Down Expand Up @@ -495,6 +494,7 @@ terminal String
KW_NEGATIVE,
KW_NEVER,
KW_NEXT,
KW_NGRAM_BF,
KW_NO,
KW_NOT,
KW_NULL,
Expand Down Expand Up @@ -8086,6 +8086,8 @@ keyword ::=
{: RESULT = id; :}
| KW_UNSET:id
{: RESULT = id; :}
| KW_BELONG:id
{: RESULT = id; :}
;

// Identifier that contain keyword
Expand Down

0 comments on commit a5ee1b3

Please sign in to comment.