deniskuzZ commented on code in PR #4131:
URL: https://github.com/apache/hive/pull/4131#discussion_r1149111504


##########
ql/src/java/org/apache/hadoop/hive/ql/stats/ColStatsProcessor.java:
##########
@@ -218,6 +218,9 @@ public int persistColumnStats(Hive db, Table tbl) throws 
HiveException, MetaExce
       }
 
       start = System. currentTimeMillis();
+      if(tbl != null && tbl.isNonNative() && 
tbl.getStorageHandler().canSetColStatistics()){
+       tbl.getStorageHandler().setColStatistics(tbl, colStats);

Review Comment:
   when this code is getting invoked, is it by auto-gather thread? if yes, what 
if there was several snapshots generated between the runs? 



##########
ql/src/java/org/apache/hadoop/hive/ql/stats/ColStatsProcessor.java:
##########
@@ -218,6 +218,9 @@ public int persistColumnStats(Hive db, Table tbl) throws 
HiveException, MetaExce
       }
 
       start = System. currentTimeMillis();
+      if(tbl != null && tbl.isNonNative() && 
tbl.getStorageHandler().canSetColStatistics()){
+       tbl.getStorageHandler().setColStatistics(tbl, colStats);

Review Comment:
   when this code is getting invoked, is it by auto-gather thread? if yes, what 
if there were several snapshots generated between the runs? 



-- 
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]

Reply via email to