weizhengte commented on code in PR #13303: URL: https://github.com/apache/doris/pull/13303#discussion_r993136661
########## 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: This condition is added mainly because the result returns `0` instead of the expected `-1` when `nameToPartitionStats` is empty. -- 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