From dad8e95900b11d99d336b05bba574ebbb9cb3030 Mon Sep 17 00:00:00 2001 From: Yongqiang YANG Date: Wed, 18 Sep 2024 13:50:36 +0800 Subject: [PATCH] fix --- .../src/main/antlr4/org/apache/doris/nereids/DorisParser.g4 | 4 +++- fe/fe-core/src/main/cup/sql_parser.cup | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4 b/fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4 index 9e8c32494ae66c..13636e0426a9e5 100644 --- a/fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4 +++ b/fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4 @@ -184,7 +184,8 @@ unsupportedOtherStatement | LOCK TABLES (lockTable (COMMA lockTable)*)? #lockTables | UNLOCK TABLES #unlockTables | WARM UP (CLUSTER | COMPUTE GROUP) destination=identifier WITH - ((CLUSTER | COMPUTE GROUP) source=identifier | (warmUpItem (COMMA warmUpItem)*)) FORCE? #warmUpCluster + ((CLUSTER | COMPUTE GROUP) source=identifier | + (warmUpItem (COMMA warmUpItem)*)) FORCE? #warmUpCluster | BACKUP SNAPSHOT label=multipartIdentifier TO repo=identifier ((ON | EXCLUDE) LEFT_PAREN baseTableRef (COMMA baseTableRef)* RIGHT_PAREN)? properties=propertyClause? #backup @@ -2084,6 +2085,7 @@ nonReserved | VARIABLES | VARIANT | VAULT + | VAULTS | VERBOSE | VERSION | VIEW diff --git a/fe/fe-core/src/main/cup/sql_parser.cup b/fe/fe-core/src/main/cup/sql_parser.cup index 9422f480bbb6d9..965a6a9a33c251 100644 --- a/fe/fe-core/src/main/cup/sql_parser.cup +++ b/fe/fe-core/src/main/cup/sql_parser.cup @@ -8497,6 +8497,8 @@ keyword ::= {: RESULT = id; :} | KW_STOP:id {: RESULT = id; :} + | KW_GROUP:id + {: RESULT = id; :} | KW_GROUPING:id {: RESULT = id; :} | KW_GROUPS:id