danielcweeks commented on code in PR #18203:
URL: https://github.com/apache/iceberg/pull/18203#discussion_r4095591587


##########
core/src/main/java/org/apache/iceberg/rest/CatalogHandlers.java:
##########
@@ -488,6 +491,24 @@ public static void dropTable(Catalog catalog, 
TableIdentifier ident) {
     }
   }
 
+  public static UnregisterTableResponse unregisterTable(Catalog catalog, 
TableIdentifier ident) {
+    if (MetadataTableType.from(ident.name()) != null) {
+      throw new NoSuchTableException("Table does not exist: %s", ident);
+    }

Review Comment:
   I'm not sure this is necessary.  It looks like we're trying to protect 
against dropping a metadata table (which is virtual), but that isn't necessary. 
 Also the message is not accurate (though we should probably just remove this).



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to