[
https://issues.apache.org/jira/browse/SPARK-3598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Armbrust resolved SPARK-3598.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.2.0
Issue resolved by pull request 2458
[https://github.com/apache/spark/pull/2458]
> cast to timestamp should be the same as hive
> --------------------------------------------
>
> Key: SPARK-3598
> URL: https://issues.apache.org/jira/browse/SPARK-3598
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Reporter: Adrian Wang
> Fix For: 1.2.0
>
>
> select cast(1000 as timestamp) from src limit 1;
> should return 1970-01-01 00:00:01
> also, current implementation has bug when the time is before 1970-01-01
> 00:00:00
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]