Skip to content

Commit

Permalink
[fix](persist) Fix the generated dropping tmp partition sql (#43079)
Browse files Browse the repository at this point in the history
The syntax is:

```
KW_DROP opt_tmp:isTempPartition KW_PARTITION ...
```
  • Loading branch information
w41ter committed Nov 4, 2024
1 parent d78dbf3 commit 5c22317
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ public DropPartitionInfo(Long dbId, Long tableId, Long partitionId, String parti
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");
}
Expand Down

0 comments on commit 5c22317

Please sign in to comment.