Doublequotes in partition names are not handled.
cravani opened this issue · comments
While dropping partitions which has doublequotes example, partition name is -> type="2021-12-02"
while dropping SQL contracted is below
ALTER TABLE comtrack.communication_logs_oleg1 DROP IF EXISTS PARTITION (type=""2021-12-02"",year="4/15");
So having two doublequotes is a problem, instead the value can be enclosed in single quote like below.
ALTER TABLE comtrack.communication_logs_oleg1 DROP IF EXISTS PARTITION (type="2021-12-02",year="4/15");
Partition in Hive is -> %222021-12-02%22
Maybe it's a bug here?
https://github.com/cloudera-labs/hive-sre/blob/2.5.1.4/src/main/java/com/cloudera/utils/hive/sre/Utils.java#L38
I will create a PR after testing quickly.
Opened PR: #38