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


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RuntimeFilterPruner.java:
##########
@@ -110,34 +203,85 @@ public PhysicalIntersect 
visitPhysicalIntersect(PhysicalIntersect intersect, Cas
             CascadesContext context) {
         join.right().accept(this, context);
         join.left().accept(this, context);
-        if 
(context.getRuntimeFilterContext().isEffectiveSrcNode(join.child(0))) {
-            RuntimeFilterContext.EffectiveSrcType childType = 
context.getRuntimeFilterContext()
-                    .getEffectiveSrcType(join.child(0));
-            context.getRuntimeFilterContext().addEffectiveSrcNode(join, 
childType);
-        }
+        RuntimeFilterContext rfContext = context.getRuntimeFilterContext();
+        propagateOrdinaryJoinSource(join, join.left(), 
join.getJoinType().isLeftSideNullable(), rfContext);
+        propagateJoinChangelog(join, join.getJoinType().isRemainRightJoin(), 
rfContext);

Review Comment:
   Fixed in `224af456f12`. `PhysicalNestedLoopJoin` now propagates the right 
child's `CHANGELOG` marker even when the join emits only left-side slots. In a 
left semi join, the right-side stream determines which left rows survive.
   
   The updated FE test uses a nested-loop left semi join with a `MIN_DELTA` 
stream on the right and verifies that the parent hash join retains its runtime 
filter with both unknown and non-selective statistics.



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