travis-bowen commented on code in PR #3693:
URL: https://github.com/apache/polaris/pull/3693#discussion_r2784198373
##########
runtime/service/src/main/java/org/apache/polaris/service/catalog/iceberg/IcebergCatalog.java:
##########
@@ -423,7 +423,22 @@ public boolean dropTable(TableIdentifier tableIdentifier,
boolean purge) {
dropTableLike(
PolarisEntitySubType.ICEBERG_TABLE, tableIdentifier,
storageProperties, purge);
if (!dropEntityResult.isSuccess()) {
- return false;
+ switch (dropEntityResult.getReturnStatus()) {
+ case BaseResult.ReturnStatus.ENTITY_NOT_FOUND:
+ return false;
+
+ case BaseResult.ReturnStatus.ENTITY_UNDROPPABLE:
+ throw new ForbiddenException(
Review Comment:
You're right - we don't need it. I lean towards keeping it since we can't be
certain of any custom implementations but I'm not tied to keeping it if you
feel strongly.
--
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]