From bcc4ef123192bbb1cdc8936d00cb8562ff7bfddb Mon Sep 17 00:00:00 2001 From: yantian Date: Mon, 30 Dec 2024 10:18:23 +0800 Subject: [PATCH] dropPartition throw exception when table is nul --- .../src/main/java/org/apache/paimon/rest/RESTCatalog.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/paimon-core/src/main/java/org/apache/paimon/rest/RESTCatalog.java b/paimon-core/src/main/java/org/apache/paimon/rest/RESTCatalog.java index 8cfe6fe9ecfca..4190f29168a03 100644 --- a/paimon-core/src/main/java/org/apache/paimon/rest/RESTCatalog.java +++ b/paimon-core/src/main/java/org/apache/paimon/rest/RESTCatalog.java @@ -398,6 +398,8 @@ public void dropPartition(Identifier identifier, Map partitions) Table table = getTable(identifier); if (table != null) { cleanPartitionsInFileSystem(table, partitions); + } else { + throw new TableNotExistException(identifier); } }