nk1506 commented on code in PR #8918:
URL: https://github.com/apache/iceberg/pull/8918#discussion_r1395572709


##########
hive-metastore/src/main/java/org/apache/iceberg/hive/HiveCatalog.java:
##########
@@ -261,6 +261,12 @@ public void renameTable(TableIdentifier from, 
TableIdentifier originalTo) {
     } catch (InterruptedException e) {
       Thread.currentThread().interrupt();
       throw new RuntimeException("Interrupted in call to rename", e);
+    } catch (RuntimeException e) {

Review Comment:
   Yes, It seems `AlterTable` is wrapping exception into `RuntimeException` 
[here](https://github.com/apache/iceberg/blob/bfe1d03c75b4a8bd2c15c925f39cdec28c312489/common/src/main/java/org/apache/iceberg/common/DynMethods.java#L70)
 . 
   We do have tests for other exceptions except `AlreadyExistsException`. Also 
I am not sure `AlreadyExistsException` exception is being thrown for 
`renameTable`.  Although `NoSuchObjectException` and `TException` is being 
thrown for retrieving the table data. 



-- 
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: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to