You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2017/09/29 07:09:09 UTC

[jira] [Resolved] (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:all-tabpanel ]

Sean Owen resolved SPARK-22157.
-------------------------------
    Resolution: Not A Problem

> 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