[fix](persist) Fix the generated dropping tmp partition sql #43079 (#43170)

cherry pick from #43079
This commit is contained in:
walter
2024-11-05 17:44:31 +08:00
committed by GitHub
parent 4031808f00
commit 2e00fa475b

View File

@ -60,11 +60,11 @@ public class DropPartitionInfo implements Writable {
this.recycleTime = recycleTime;
StringBuilder sb = new StringBuilder();
sb.append("DROP PARTITION ");
sb.append("DROP ");
if (isTempPartition) {
sb.append("TEMPORARY ");
}
sb.append("`").append(partitionName).append("`");
sb.append("PARTITION `").append(partitionName).append("`");
if (forceDrop) {
sb.append(" FORCE");
}