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


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/RuntimeFilter.java:
##########
@@ -218,6 +218,11 @@ public boolean canPrunePartitions() {
         return !partitionMonotonicity.isEmpty();
     }
 
+    /** Whether this filter can eliminate complete scan ranges independently 
of row-level selectivity. */
+    public boolean canPruneScanRanges() {
+        return canPruneBuckets() || canPrunePartitions();

Review Comment:
   我觉得有问题的是
   <img width="852" height="86" alt="image" 
src="https://github.com/user-attachments/assets/3842bddd-438a-4421-b3f1-70fecc16cb3d";
 />
   这里,不一定非要selectedPartitionIds.size() < 2,只有 1 个分区也是可以用 rf 裁剪的



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