Zhenhua Wang created SPARK-20318:
------------------------------------

             Summary: Use Catalyst type for min/max in ColumnStat for ease of 
estimation
                 Key: SPARK-20318
                 URL: https://issues.apache.org/jira/browse/SPARK-20318
             Project: Spark
          Issue Type: Sub-task
          Components: SQL
    Affects Versions: 2.2.0
            Reporter: Zhenhua Wang


Currently when estimating predicates like col > literal or col = literal, we 
will update min or max in column stats based on literal value. However, literal 
value is of Catalyst type (internal type), while min/max is of external type. 
This causes unnecessary conversion when comparing them and updating column 
stats.

To solve this, we can use Catalyst type for min/max in ColumnStat for ease of 
estimation. Note that the persistent form in metastore is still of external 
type, so there's no inconsistency for statistics in metastore.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to