You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "philipse (Jira)" <ji...@apache.org> on 2020/05/22 03:01:00 UTC

[jira] [Created] (SPARK-31790) cast scenarios may generate different results between Hive and Spark

philipse created SPARK-31790:
--------------------------------

             Summary: cast scenarios may generate different results between  Hive and Spark
                 Key: SPARK-31790
                 URL: https://issues.apache.org/jira/browse/SPARK-31790
             Project: Spark
          Issue Type: Documentation
          Components: Documentation
    Affects Versions: 2.4.5
            Reporter: philipse


`CAST(n,TIMESTAMPTYPE)` If n is Byte/Short/Int/Long data type, Hive treat n as milliseconds unit , while Spark SQL as seconds unit. so the cast result is different,please be care when you use it



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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