cloud-fan commented on code in PR #43449:
URL: https://github.com/apache/spark/pull/43449#discussion_r1366453566


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/InjectRuntimeFilter.scala:
##########
@@ -305,7 +305,8 @@ object InjectRuntimeFilter extends Rule[LogicalPlan] with 
PredicateHelper with J
   }
 
   private def findBloomFilterWithKey(plan: LogicalPlan, key: Expression): 
Boolean = {
-    plan.exists {
+    // Ensure that sibling nodes under the same Join do not have runtime filter
+    !plan.exists(_.isInstanceOf[Join]) && plan.exists {

Review Comment:
   it looks also wrong to skip the check completely if the plan contains Join.



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