deniskuzZ commented on code in PR #5173: URL: https://github.com/apache/hive/pull/5173#discussion_r1546519096
########## iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergStorageHandler.java: ########## @@ -1817,6 +1821,8 @@ public boolean canUseTruncate(org.apache.hadoop.hive.ql.metadata.Table hmsTable, Table table = IcebergTableUtil.getTable(conf, hmsTable.getTTable()); if (MapUtils.isEmpty(partitionSpec) || !hasUndergonePartitionEvolution(table)) { return true; + } else if (hmsTable.getSnapshotRef() != null) { Review Comment: oh, but why do we need to check the branch name if table has undergone partition evolution, shouldn't we fallback right away? -- 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: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org