From ea45f4107ec955cc3774eb14e7ab062792adbc83 Mon Sep 17 00:00:00 2001 From: caiconghui <55968745+caiconghui@users.noreply.github.com> Date: Sun, 20 Sep 2020 20:55:43 +0800 Subject: [PATCH] [Syntax]Change force order in Drop db, Drop table, Drop partition stmt (#4615) --- fe/fe-core/src/main/cup/sql_parser.cup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); :}