deniskuzZ commented on code in PR #6259:
URL: https://github.com/apache/hive/pull/6259#discussion_r2715902434
##########
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/IcebergTableUtil.java:
##########
@@ -527,36 +488,59 @@ public static List<PartitionField>
getPartitionFields(Table table, boolean lates
.collect(Collectors.toList());
}
+ public static Partition getPartition(Configuration conf,
+ org.apache.hadoop.hive.ql.metadata.Table table, Map<String, String>
partitionSpec)
+ throws SemanticException {
+ List<String> partitionNames =
+ getPartitionNames(conf, table, partitionSpec, false);
+
+ if (partitionNames.isEmpty()) {
+ return null;
+ }
+
+ try {
+ String partitionName = partitionNames.getFirst();
+ if (partitionSpec.size() !=
Warehouse.makeSpecFromName(partitionName).size()) {
+ return null;
+ }
+ return new DummyPartition(table, partitionName, partitionSpec);
Review Comment:
for get we should keep the physical partition name as right now
--
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]