You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2022/12/13 08:47:14 UTC
[GitHub] [hive] deniskuzZ commented on a diff in pull request #3812: HIVE-26788: Update stats of table/partition using noscan operation when stats autogather is enabled
deniskuzZ commented on code in PR #3812:
URL: https://github.com/apache/hive/pull/3812#discussion_r1046814384
##########
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/StatsUpdater.java:
##########
@@ -73,6 +71,19 @@ public void gatherStats(CompactionInfo ci, HiveConf conf, String userName, Strin
sb.append(")");
}
sb.append(" compute statistics");
+ if (!conf.getBoolVar(HiveConf.ConfVars.HIVESTATSAUTOGATHER) && ci.isMajorCompaction()) {
+ if (columnList == null || columnList.isEmpty()) {
+ LOG.debug("{} : No existing stats found. Will not run analyze.", ci);
+ return;
Review Comment:
if column stats is not there, we should still run base stats.
--
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: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org