difin commented on code in PR #5123: URL: https://github.com/apache/hive/pull/5123#discussion_r1532854461
########## iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergMetaHook.java: ########## @@ -640,7 +640,13 @@ public void preTruncateTable(org.apache.hadoop.hive.metastore.api.Table table, E throws MetaException { this.catalogProperties = getCatalogProperties(table); this.icebergTable = Catalogs.loadTable(conf, catalogProperties); - Map<String, PartitionField> partitionFieldMap = icebergTable.spec().fields().stream() + truncatePartitionBySpec(icebergTable, partNames, icebergTable.newDelete()); + context.putToProperties("truncateSkipDataDeletion", "true"); Review Comment: Changed to the constant. I will check if that is used in case of Iceberg. -- 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