HyukjinKwon commented on a change in pull request #28605:
URL: https://github.com/apache/spark/pull/28605#discussion_r429186020



##########
File path: docs/sql-migration-guide.md
##########
@@ -961,3 +961,4 @@ Below are the scenarios in which Hive and Spark generate 
different results:
 * `SQRT(n)` If n < 0, Hive returns null, Spark SQL returns NaN.
 * `ACOS(n)` If n < -1 or n > 1, Hive returns null, Spark SQL returns NaN.
 * `ASIN(n)` If n < -1 or n > 1, Hive returns null, Spark SQL returns NaN.
+* `CAST(n as timestamp)` If n is Byte/Short/Int/Long data type, Hive treat n 
as milliseconds unit , while Spark SQL as seconds unit.

Review comment:
       Let's rephrase a bit more:
   
   `CAST(n AS TIMESTAMP)` If n is integral numbers, Hive treats n as 
milliseconds, Spark SQL treats n as seconds .




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to