Jibing-Li commented on code in PR #32185: URL: https://github.com/apache/doris/pull/32185#discussion_r1528366184
########## fe/fe-core/src/main/java/org/apache/doris/statistics/OlapAnalysisTask.java: ########## @@ -255,7 +256,9 @@ protected Pair<List<Long>, Long> calcActualSampleTablets(boolean forPartitionCol List<Long> sampleTabletIds = new ArrayList<>(); long actualSampledRowCount = 0; boolean enough = false; - for (Partition p : olapTable.getPartitions()) { + List<Partition> sortedPartitions = olapTable.getPartitions().stream().sorted( + Comparator.comparing(Partition::getName)).collect(Collectors.toList()); + for (Partition p : sortedPartitions) { Review Comment: Yes, we need to regenerate tpcds 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: 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