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: [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