weizhengte commented on code in PR #13303: URL: https://github.com/apache/doris/pull/13303#discussion_r994625349
########## fe/fe-core/src/main/java/org/apache/doris/statistics/TableStats.java: ########## @@ -78,7 +78,7 @@ public TableStats(double rowCount, long dataSize) { } public double getRowCount() { - if (rowCount == -1) { + if (rowCount == -1 && !nameToPartitionStats.isEmpty()) { Review Comment: Sure -- 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