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

    https://github.com/apache/spark/pull/15319#discussion_r82503891
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/QueryPlan.scala 
---
    @@ -74,14 +74,26 @@ abstract class QueryPlan[PlanType <: 
QueryPlan[PlanType]] extends TreeNode[PlanT
        * additional constraint of the form `b = 5`
        */
       private def inferAdditionalConstraints(constraints: Set[Expression]): 
Set[Expression] = {
    +    // Collect alias from expressions to avoid producing non-converging 
set of constraints
    +    // for recursive functions.
    +    //
    +    // Don't apply transform on constraints if the attribute used to 
replace is an alias,
    +    // because then both `QueryPlan.inferAdditionalConstraints` and
    +    // `UnaryNode.getAliasedConstraints` applies and may produce a 
non-converging set of
    +    // constraints.
    +    // For more details, infer 
https://issues.apache.org/jira/browse/SPARK-17733
    --- End diff --
    
    typo "infer" -> "refer" (to)?


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