foxtail463 commented on code in PR #64032:
URL: https://github.com/apache/doris/pull/64032#discussion_r3433747685


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/stats/StatsCalculator.java:
##########
@@ -1208,7 +1193,9 @@ public Statistics 
computeAssertNumRows(AssertNumRowsElement assertNumRowsElement
      * computeFilter
      */
     public Statistics computeFilter(Filter filter, Statistics inputStats) {
-        return new FilterEstimation().estimate(filter.getPredicate(), 
inputStats);
+        Set<Expression> conjuncts = new LinkedHashSet<>(filter.getConjuncts());

Review Comment:
   Should keep it here.
   
    If we clear the marker here, a parent Filter containing the same partition 
conjunct could estimate it again and double-count the selectivity.
   
   So the marker should remain while the row count is derived from that 
selected-partition scan. The physical predicate removal is handled separately 
by `PrunePartitionPredicate`.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to