englefly commented on code in PR #11209:
URL: https://github.com/apache/doris/pull/11209#discussion_r937322930


##########
fe/fe-core/src/main/java/org/apache/doris/statistics/StatsDeriveResult.java:
##########
@@ -112,10 +112,22 @@ public void setSlotToColumnStats(Map<Slot, ColumnStats> 
slotToColumnStats) {
         this.slotToColumnStats = slotToColumnStats;
     }
 
-    public StatsDeriveResult multiplyDouble(double selectivity) {
+    public StatsDeriveResult updateRowCountBySelectivity(double selectivity) {
         rowCount *= selectivity;
         for (Entry<Slot, ColumnStats> entry : slotToColumnStats.entrySet()) {
-            entry.getValue().multiplyDouble(selectivity);
+            entry.getValue().updateBySelectivity(selectivity);

Review Comment:
    if rowCount is 0, ndv and numNulls are also 0. I will update code to avoid 
divided-by-0 problem



-- 
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

Reply via email to