deniskuzZ commented on code in PR #5648:
URL: https://github.com/apache/hive/pull/5648#discussion_r1993594658
##########
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergStorageHandler.java:
##########
@@ -612,40 +615,43 @@ private Table
getTable(org.apache.hadoop.hive.ql.metadata.Table hmsTable) {
@Override
public boolean canSetColStatistics(org.apache.hadoop.hive.ql.metadata.Table
hmsTable) {
- Table table = IcebergTableUtil.getTable(conf, hmsTable.getTTable());
- return table.currentSnapshot() != null &&
getStatsSource().equals(HiveMetaHook.ICEBERG);
+ return getStatsSource().equals(HiveMetaHook.ICEBERG);
}
@Override
public boolean setColStatistics(org.apache.hadoop.hive.ql.metadata.Table
hmsTable, List<ColumnStatistics> colStats) {
Table tbl = IcebergTableUtil.getTable(conf, hmsTable.getTTable());
- return writeColStats(colStats.get(0), tbl);
+ return writeColStats(colStats, tbl);
}
- private boolean writeColStats(ColumnStatistics tableColStats, Table tbl) {
+ private boolean writeColStats(List<ColumnStatistics> colStats, Table tbl) {
try {
if (!shouldRewriteColStats(tbl)) {
- checkAndMergeColStats(tableColStats, tbl);
+ checkAndMergeColStats(colStats, tbl);
}
// Currently, we are only serializing table level stats.
Review Comment:
removed
--
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]