warriersruthi opened a new pull request #2550:
URL: https://github.com/apache/hive/pull/2550
The query
SELECT from_unixtime(unix_timestamp(cast('1400-01-01' as date)));
was giving wrong results, because the from_unixtime() function was not
considering leap seconds while representing Timestamp (it was using
java.utils.Date).
The Unix_timestamp() already considered this, so in order to get the correct
results for the above query, it was required to change the epoch time in the
from_unixtime() to ZonedDateTime. The required conversion was done with the
help of the Instant class, which represents a moment given the epoch time.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]