Github user davies commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12720#discussion_r61653915
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala
 ---
    @@ -644,9 +643,10 @@ object InferFiltersFromConstraints extends 
Rule[LogicalPlan] with PredicateHelpe
     
         case join @ Join(left, right, joinType, conditionOpt) =>
           // Only consider constraints that can be pushed down completely to 
either the left or the
    -      // right child
    -      val constraints = join.constraints.filter { c =>
    -        c.references.subsetOf(left.outputSet) || 
c.references.subsetOf(right.outputSet)}
    +      // right child and that are not a subquery.
    --- End diff --
    
    minor: rollback this change?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to