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


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RuntimeFilterPruner.java:
##########
@@ -110,10 +125,12 @@ 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();
+        if (rfContext.isEffectiveSrcNode(join.left())) {
+            rfContext.addEffectiveSrcNode(join, 
rfContext.getEffectiveSrcType(join.left()));
+        }
+        if (join.getJoinType().isRemainRightJoin()) {
+            propagateChangelog(join, join.right(), rfContext);

Review Comment:
   Fixed in `8be3adf9094`. The pruner now tracks changelog-dependent output 
slots and checks each parent runtime filter's build expression. The FE cases 
cover preserved and changelog-side keys through hash and nested-loop left outer 
joins, including an APPEND_ONLY changelog source.



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