diff --git a/fe/fe-core/src/main/cup/sql_parser.cup b/fe/fe-core/src/main/cup/sql_parser.cup index 29d75bfbcd..73b0b47d5b 100644 --- a/fe/fe-core/src/main/cup/sql_parser.cup +++ b/fe/fe-core/src/main/cup/sql_parser.cup @@ -931,7 +931,7 @@ alter_table_clause ::= {: RESULT = new AddPartitionClause(desc, distribution, properties, isTempPartition); :} - | KW_DROP opt_tmp:isTempPartition KW_PARTITION opt_force:force opt_if_exists:ifExists ident:partitionName + | KW_DROP opt_tmp:isTempPartition KW_PARTITION opt_if_exists:ifExists ident:partitionName opt_force:force {: RESULT = new DropPartitionClause(ifExists, partitionName, isTempPartition, force ? force : isTempPartition); :} @@ -1701,7 +1701,7 @@ revoke_stmt ::= // Drop statement drop_stmt ::= /* Database */ - KW_DROP KW_DATABASE opt_force:force opt_if_exists:ifExists ident:db + KW_DROP KW_DATABASE opt_if_exists:ifExists ident:db opt_force:force {: RESULT = new DropDbStmt(ifExists, db, force); :} @@ -1720,7 +1720,7 @@ drop_stmt ::= RESULT = new DropFunctionStmt(functionName, args); :} /* Table */ - | KW_DROP KW_TABLE opt_force:force opt_if_exists:ifExists table_name:name + | KW_DROP KW_TABLE opt_if_exists:ifExists table_name:name opt_force:force {: RESULT = new DropTableStmt(ifExists, name, force); :}