[Syntax]Change force order in Drop db, Drop table, Drop partition stmt (#4615)
This commit is contained in:
@ -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);
|
||||
:}
|
||||
|
||||
Reference in New Issue
Block a user