ajantha-bhat commented on code in PR #9432: URL: https://github.com/apache/iceberg/pull/9432#discussion_r1448763957
########## hive-metastore/src/main/java/org/apache/iceberg/hive/HiveCatalog.java: ########## @@ -251,9 +251,15 @@ public void renameTable(TableIdentifier from, TableIdentifier originalTo) { } catch (NoSuchObjectException e) { throw new NoSuchTableException("Table does not exist: %s", from); - } catch (AlreadyExistsException e) { - throw new org.apache.iceberg.exceptions.AlreadyExistsException( - "Table already exists: %s", to); + } catch (RuntimeException e) { Review Comment: Originally we were unwrapping to `MetaException` but here were still catching `RuntimeException`. Hence I gave that comment. Now we are unwrapping to `TException` and catching the `TException`. So, now LGTM. -- 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