Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.11.3
Description
Flink Table Parser is error:
Synopsis:
SQL:
alter table tbl drop partition (p1='a',p2=1), partition(p1='b',p2=2);
hive muit partition unparse toSqlString is :
ALTER TABLE `TBL`\n" + "DROP\n" + "PARTITION (`P1` = 'a', `P2` = 1)\n" + "PARTITION (`P1` = 'b', `P2` = 2)
Missing comma in Partition SqlNodeList
Hive syntax:
ALTER TABLE table_name DROP [IF EXISTS] PARTITION (partition_spec) [, PARTITION (partition_spec)];