This is an automated email from the ASF dual-hosted git repository.
lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git
The following commit(s) were added to refs/heads/master by this push:
new e04bb00d5 [core] PartitionExpire drop partitions consisitent with hms
drop (#3594)
e04bb00d5 is described below
commit e04bb00d5f9c0a95084535a63f591abf96cbd65a
Author: xuzifu666 <[email protected]>
AuthorDate: Tue Jun 25 15:04:18 2024 +0800
[core] PartitionExpire drop partitions consisitent with hms drop (#3594)
---
.../src/main/java/org/apache/paimon/operation/PartitionExpire.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/paimon-core/src/main/java/org/apache/paimon/operation/PartitionExpire.java
b/paimon-core/src/main/java/org/apache/paimon/operation/PartitionExpire.java
index 4eb352bce..223ac4d05 100644
--- a/paimon-core/src/main/java/org/apache/paimon/operation/PartitionExpire.java
+++ b/paimon-core/src/main/java/org/apache/paimon/operation/PartitionExpire.java
@@ -108,10 +108,10 @@ public class PartitionExpire {
LOG.info("Expire Partition: " + partition);
}
if (expired.size() > 0) {
- commit.dropPartitions(expired, commitIdentifier);
if (metastoreClient != null) {
deleteMetastorePartitions(expired);
}
+ commit.dropPartitions(expired, commitIdentifier);
}
}