jerry-024 commented on code in PR #4786:
URL: https://github.com/apache/paimon/pull/4786#discussion_r1899291471


##########
paimon-core/src/main/java/org/apache/paimon/rest/RESTCatalog.java:
##########
@@ -434,6 +528,23 @@ protected GetTableResponse getTableResponse(Identifier 
identifier)
         }
     }
 
+    protected SuccessResponse dropPartitionMetadata(
+            Identifier identifier, Map<String, String> partitions)
+            throws TableNoPermissionException {
+        try {
+            DropPartitionRequest request = new 
DropPartitionRequest(partitions);
+            return client.delete(
+                    resourcePaths.partitions(
+                            identifier.getDatabaseName(), 
identifier.getTableName()),
+                    request,
+                    headers());
+        } catch (NoSuchResourceException ignore) {
+            return new SuccessResponse();

Review Comment:
   when the partition's metadata doesn't exist in metadata, there may still be 
data in the filesystem. So we ignore this exception when dropping the partition.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to