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/08/04 02:21:48 UTC

[GitHub] [doris] englefly commented on a diff in pull request #11209: [feature] (Nereids) support limit clause

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


##########
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:
   @morrySnow @924060929 请看看这里用selectivity是否更合理



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