hantiantian created SPARK-22157:
-----------------------------------

             Summary: 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.2.0, 2.1.0, 2.0.2
            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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to