jerryshao commented on a change in pull request #841: Upgrade Hive to 2.3.6 for Iceberg URL: https://github.com/apache/incubator-iceberg/pull/841#discussion_r392763469
########## File path: hive/src/main/java/org/apache/iceberg/hive/HiveTableOperations.java ########## @@ -175,7 +190,12 @@ protected void doCommit(TableMetadata base, TableMetadata metadata) { EnvironmentContext envContext = new EnvironmentContext( ImmutableMap.of(StatsSetupConst.DO_NOT_UPDATE_STATS, StatsSetupConst.TRUE) ); - client.alter_table(database, tableName, tbl, envContext); + + try { + alterTableMethod.invoke(client, database, tableName, tbl, envContext); + } catch (Exception e) { + throw new RuntimeMetaException(e, "Failed to alter table for %s.%s", database, tableName); + } Review comment: With this Iceberg will complain about "CyclomaticComplexity" issue, I think it is probably fine to let the existing exceptional handler to handle the exceptions. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org