[
https://issues.apache.org/jira/browse/SPARK-33584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yuming Wang updated SPARK-33584:
--------------------------------
Comment: was deleted
(was: This change should after SPARK-33581, I have prepared the pr:
https://github.com/wangyum/spark/tree/SPARK-33584)
> Partition predicate pushdown into Hive metastore support cast string type to
> date type
> --------------------------------------------------------------------------------------
>
> Key: SPARK-33584
> URL: https://issues.apache.org/jira/browse/SPARK-33584
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 3.1.0
> Reporter: Yuming Wang
> Assignee: Yuming Wang
> Priority: Major
>
> {code:scala}
> spark.sql("create table t1(id string) partitioned by (part string) stored as
> parquet")
> spark.sql("insert into t1 values('1', '2019-01-01')")
> spark.sql("insert into t1 values('2', '2019-01-02')")
> spark.sql("select * from t1 where part = date '2019-01-01' ").show
> {code}
> We can pushdown {{cast(part as date) = date '2019-01-01' }} to Hive metastore.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]