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


##########
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:
   `java.lang.AssertionError: 
   Expecting actual throwable to be an instance of:
     org.apache.iceberg.exceptions.AlreadyExistsException
   but was:
     java.lang.RuntimeException: InvalidOperationException(message:new table 
newdb.table_renamed already exists)
        at 
org.apache.iceberg.relocated.com.google.common.base.Throwables.propagate(Throwables.java:231)
        at 
org.apache.iceberg.common.DynMethods$UnboundMethod.invoke(DynMethods.java:75)
        at 
org.apache.iceberg.hive.MetastoreUtil.alterTable(MetastoreUtil.java:75)`



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