zhengshiJ commented on code in PR #11209: URL: https://github.com/apache/doris/pull/11209#discussion_r937300275
########## 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: The logic is correct, but is there a problem if rowCount is 0 -- 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