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

    https://github.com/apache/spark/pull/21882#discussion_r205734835
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/columnar/InMemoryTableScanExec.scala
 ---
    @@ -183,6 +183,18 @@ case class InMemoryTableScanExec(
       private val stats = relation.partitionStatistics
       private def statsFor(a: Attribute) = stats.forAttribute(a)
     
    +  // Currently, only use statistics from atomic types except binary type 
only.
    +  private object ExtractableLiteral {
    +    def unapply(expr: Expression): Option[Literal] = expr match {
    +      case lit: Literal => lit.dataType match {
    +        case BinaryType => None
    --- End diff --
    
    can we also add test for binary type?


---

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

Reply via email to