Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13887#discussion_r68380891
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/columnar/InMemoryTableScanExec.scala
 ---
    @@ -79,6 +79,11 @@ private[sql] case class InMemoryTableScanExec(
     
         case IsNull(a: Attribute) => statsFor(a).nullCount > 0
         case IsNotNull(a: Attribute) => statsFor(a).count - 
statsFor(a).nullCount > 0
    +
    +    case In(a: AttributeReference, list: Seq[Expression])
    +      if list.length <= inMemoryPartitionPruningMaxInSize =>
    +      list.map(l => statsFor(a).lowerBound <= l.asInstanceOf[Literal] &&
    --- End diff --
    
    how about we do this optimization for `InSet`? It guarantees the list are 
all literals and the max length by default is 10. Then we can save the new 
config.


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