difin commented on code in PR #5248:
URL: https://github.com/apache/hive/pull/5248#discussion_r1622939986
##########
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergStorageHandler.java:
##########
@@ -1868,7 +1872,8 @@ public void
validatePartSpec(org.apache.hadoop.hive.ql.metadata.Table hmsTable,
}
Map<String, Types.NestedField> mapOfPartColNamesWithTypes =
Maps.newHashMap();
- for (PartitionField partField : table.spec().fields()) {
+ List<PartitionField> allPartFields =
IcebergTableUtil.getAllPartitionFields(table);
Review Comment:
Done. Added 2 new methods 'validatePartAnySpec' and 'getPartitionAnySpec'
which is needed for Iceberg compaction partition level which operates on all
specs of a table, not only on the latest one.
--
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]