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

    https://github.com/apache/spark/pull/20670#discussion_r171102033
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/QueryPlanConstraints.scala
 ---
    @@ -23,20 +23,23 @@ import org.apache.spark.sql.catalyst.expressions._
     trait QueryPlanConstraints { self: LogicalPlan =>
     
       /**
    -   * An [[ExpressionSet]] that contains invariants about the rows output 
by this operator. For
    -   * example, if this set contains the expression `a = 2` then that 
expression is guaranteed to
    -   * evaluate to `true` for all rows produced.
    -   */
    +    * An [[ExpressionSet]] that contains an additional set of constraints 
about equality
    +    * constraints and `isNotNull` constraints.
    +    */
    +  lazy val allConstraints: ExpressionSet = ExpressionSet(validConstraints
    --- End diff --
    
    This should also be guarded by `constraintPropagationEnabled`


---

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

Reply via email to