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 2017/09/28 12:34:00 UTC

[jira] [Commented] (SPARK-22157) The uniux_timestamp method handles the time field that is lost in mill

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

Apache Spark commented on SPARK-22157:
--------------------------------------

User 'httfighter' has created a pull request for this issue:
https://github.com/apache/spark/pull/19380

> The uniux_timestamp method handles the time field that is lost in mill
> ----------------------------------------------------------------------
>
>                 Key: SPARK-22157
>                 URL: https://issues.apache.org/jira/browse/SPARK-22157
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.0.2, 2.1.0, 2.2.0
>            Reporter: hantiantian
>
> 1、create table test,and execute the flowing command
> select s1 from test;
> result:  2014-10-10 19:30:10.222
> 2、when use the native unix_timestamp method, and execute the flowing command
> select unix_timestamp(s1,"yyyy-MM-dd HH:mm:ss.SSS") from test;
> result:  1412940610
> Obviously,the mill part of the time field has been lost.
> 3、After repair,execute the command again
> select unix_timestamp(s1,"yyyy-MM-dd HH:mm:ss.SSS") from test;
> result:  1412940610.222
> Conclusion:After repair, we can keep the the mill part of the time field.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org