You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/10/12 08:15:05 UTC

[GitHub] [doris] weizhengte commented on a diff in pull request #13303: [enhancement](statistics) Support to drop table or partition statistics

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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org