Skip to content

Commit c0056f9

Browse files
committed
[rest] Drop partition using filesystem in RESTCatalog
1 parent 6a28e6e commit c0056f9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

paimon-core/src/main/java/org/apache/paimon/rest/RESTCatalog.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -573,12 +573,12 @@ public void dropPartitions(Identifier identifier, List<Map<String, String>> part
573573
throw new TableNotExistException(identifier);
574574
} catch (NotImplementedException ignored) {
575575
// not a metastore partitioned table
576-
try (BatchTableCommit commit =
577-
getTable(identifier).newBatchWriteBuilder().newCommit()) {
578-
commit.truncatePartitions(partitions);
579-
} catch (Exception e) {
580-
throw new RuntimeException(e);
581-
}
576+
}
577+
578+
try (BatchTableCommit commit = getTable(identifier).newBatchWriteBuilder().newCommit()) {
579+
commit.truncatePartitions(partitions);
580+
} catch (Exception e) {
581+
throw new RuntimeException(e);
582582
}
583583
}
584584

0 commit comments

Comments
 (0)