You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2014/09/19 19:15:36 UTC

[jira] [Commented] (SPARK-3598) cast to timestamp should be the same as hive

    [ https://issues.apache.org/jira/browse/SPARK-3598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14140900#comment-14140900 ] 

Apache Spark commented on SPARK-3598:
-------------------------------------

User 'adrian-wang' has created a pull request for this issue:
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
>
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org