[
https://issues.apache.org/jira/browse/HIVE-27185?focusedWorklogId=854797&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-854797
]
ASF GitHub Bot logged work on HIVE-27185:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 04/Apr/23 13:46
Start Date: 04/Apr/23 13:46
Worklog Time Spent: 10m
Work Description: deniskuzZ commented on code in PR #4165:
URL: https://github.com/apache/hive/pull/4165#discussion_r1157282843
##########
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergStorageHandler.java:
##########
@@ -349,6 +351,17 @@ public Map<String, String> getBasicStatistics(Partish
partish) {
return stats;
}
+ private Table getTable(org.apache.hadoop.hive.ql.metadata.Table hmsTable) {
+ Table table;
+ final Optional<QueryState> queryState =
SessionStateUtil.getQueryState(conf);
+ if (!queryState.isPresent() || queryState.get().getNumModifiedRows() != 0)
{
Review Comment:
`queryState.get().getNumModifiedRows() > 0`
Issue Time Tracking
-------------------
Worklog Id: (was: 854797)
Time Spent: 2h 10m (was: 2h)
> Iceberg: Cache iceberg table while loading for stats
> ----------------------------------------------------
>
> Key: HIVE-27185
> URL: https://issues.apache.org/jira/browse/HIVE-27185
> Project: Hive
> Issue Type: Improvement
> Reporter: Ayush Saxena
> Assignee: Ayush Saxena
> Priority: Major
> Labels: pull-request-available
> Time Spent: 2h 10m
> Remaining Estimate: 0h
>
> Presently iceberg for stats loads the iceberg table multiple times for stats
> via different routes.
> Cache it to avoid reading/loading the iceberg table multiple times.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)