deniskuzZ commented on code in PR #6603:
URL: https://github.com/apache/hive/pull/6603#discussion_r3586715145
##########
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergStorageHandler.java:
##########
@@ -580,11 +580,9 @@ private static Map<String, String>
getPartishSummary(Partish partish, Table tabl
PartitionStatisticsFile statsFile =
IcebergTableUtil.getPartitionStatsFile(table, snapshot.snapshotId());
if (statsFile != null) {
Types.StructType partitionType = Partitioning.partitionType(table);
- Schema recordSchema = PartitionStatsHandler.schema(partitionType,
TableUtil.formatVersion(table));
-
- try (CloseableIterable<PartitionStats> recordIterator =
PartitionStatsHandler.readPartitionStatsFile(
- recordSchema, table.io().newInputFile(statsFile.path()))) {
- PartitionStats partitionStats = Iterables.tryFind(recordIterator,
stats -> {
+ try (CloseableIterable<PartitionStatistics> recordIterator =
Review Comment:
so no need to fetch the statsFile ?
--
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]