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

    https://github.com/apache/spark/pull/16578#discussion_r139312657
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/QueryPlanConstraints.scala
 ---
    @@ -77,20 +77,21 @@ trait QueryPlanConstraints { self: LogicalPlan =>
         constraint match {
           // When the root is IsNotNull, we can push IsNotNull through the 
child null intolerant
           // expressions
    -      case IsNotNull(expr) => 
scanNullIntolerantAttribute(expr).map(IsNotNull(_))
    +      case IsNotNull(expr) => 
scanNullIntolerantField(expr).map(IsNotNull(_))
           // Constraints always return true for all the inputs. That means, 
null will never be returned.
           // Thus, we can infer `IsNotNull(constraint)`, and also push 
IsNotNull through the child
           // null intolerant expressions.
    -      case _ => scanNullIntolerantAttribute(constraint).map(IsNotNull(_))
    +      case _ => scanNullIntolerantField(constraint).map(IsNotNull(_))
    --- End diff --
    
    Previously IsNotNull constraints are Attribute-specific, why do we need to 
expand it to `ExtractValue`?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to