DanielZhu58 commented on code in PR #5950:
URL: https://github.com/apache/hive/pull/5950#discussion_r2381299103


##########
ql/src/java/org/apache/hadoop/hive/ql/stats/BasicStatsNoJobTask.java:
##########
@@ -293,6 +325,28 @@ public void run() {
         parameters.put(StatsSetupConst.NUM_FILES, String.valueOf(numFiles));
         parameters.put(StatsSetupConst.NUM_ERASURE_CODED_FILES, 
String.valueOf(numErasureCodedFiles));
 
+        try {
+          if (numFiles > 1 && fileSize > 0) {

Review Comment:
   Because ANALYZE NOSCAN has two different code paths:
   Storage-handler path (HiveStorageHandlerStatCollector): stats come from the 
storage handler.
   Footer path (FooterStatCollector): stats are computed from ORC/Parquet 
footers.



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