This is an automated email from the ASF dual-hosted git repository.
kirs pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 9b6bee56b26 [fix](persist) Fix the generated dropping tmp partition
sql (#43079)
9b6bee56b26 is described below
commit 9b6bee56b26ea41c3eb4167a3ab2a666230fbc14
Author: walter <[email protected]>
AuthorDate: Sat Nov 2 08:41:10 2024 +0800
[fix](persist) Fix the generated dropping tmp partition sql (#43079)
The syntax is:
```
KW_DROP opt_tmp:isTempPartition KW_PARTITION ...
```
---
.../src/main/java/org/apache/doris/persist/DropPartitionInfo.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/persist/DropPartitionInfo.java
b/fe/fe-core/src/main/java/org/apache/doris/persist/DropPartitionInfo.java
index 0138549405e..de2bd7295c9 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/persist/DropPartitionInfo.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/persist/DropPartitionInfo.java
@@ -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");
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]