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

    https://github.com/apache/spark/pull/19494#discussion_r144689325
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/columnar/InMemoryTableScanExec.scala
 ---
    @@ -104,7 +104,8 @@ case class InMemoryTableScanExec(
     
         case In(a: AttributeReference, list: Seq[Expression]) if 
list.forall(_.isInstanceOf[Literal]) =>
           list.map(l => statsFor(a).lowerBound <= l.asInstanceOf[Literal] &&
    -        l.asInstanceOf[Literal] <= statsFor(a).upperBound).reduce(_ || _)
    +        l.asInstanceOf[Literal] <= statsFor(a).upperBound)
    --- End diff --
    
    I see. How does `.contains(true)` work then? or did that not work?
    I suppose all I mean is that we should write something that works on an 
empty list (returns false?) and also short-circuits (stops when anything is 
true). Is that possible?


---

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

Reply via email to