Jibing-Li commented on code in PR #26435: URL: https://github.com/apache/doris/pull/26435#discussion_r1390554306
########## fe/fe-core/src/main/java/org/apache/doris/statistics/OlapAnalysisTask.java: ########## @@ -85,46 +75,95 @@ public void doExecute() throws Exception { * 3. insert col stats and partition stats */ protected void doSample() throws Exception { - Pair<List<Long>, Long> pair = calcActualSampleTablets(); + LOG.info(String.format("Will do sample collection for column %s", col.getName())); + Pair<List<Long>, Long> pair = calcActualSampleTablets(isPartitionColumn()); + LOG.info(String.format("Number of tablets selected %d, rows in tablets %d", pair.first.size(), pair.second)); List<Long> tabletIds = pair.first; double scaleFactor = (double) tbl.getRowCount() / (double) pair.second; // might happen if row count in fe metadata hasn't been updated yet if (Double.isInfinite(scaleFactor) || Double.isNaN(scaleFactor)) { + LOG.warn("Scale factor is infinite or Nan, will set scale factor to 1."); Review Comment: It might happen if row count in fe metadata hasn't been updated yet -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org