[ https://issues.apache.org/jira/browse/SPARK-20318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15967210#comment-15967210 ]
Apache Spark commented on SPARK-20318: -------------------------------------- User 'wzhfy' has created a pull request for this issue: https://github.com/apache/spark/pull/17630 > 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: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org