ayushtkn commented on code in PR #5173:
URL: https://github.com/apache/hive/pull/5173#discussion_r1546436963


##########
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergStorageHandler.java:
##########
@@ -1772,6 +1772,10 @@ private List<String> getPartitions(DDLOperationContext 
context, Configuration jo
   public void validatePartSpec(org.apache.hadoop.hive.ql.metadata.Table 
hmsTable, Map<String, String> partitionSpec)
       throws SemanticException {
     Table table = IcebergTableUtil.getTable(conf, hmsTable.getTTable());
+    if (hmsTable.getSnapshotRef() != null && 
hasUndergonePartitionEvolution(table)) {

Review Comment:
   it will be called before can use truncate, it is called as part of 
``addTruncateTableOutputs``



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to