You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Alexander Pivovarov (JIRA)" <ji...@apache.org> on 2015/04/09 06:31:12 UTC
[jira] [Created] (HIVE-10275) GenericUDF getTimestampValue should
return Timestamp instead of Date
Alexander Pivovarov created HIVE-10275:
------------------------------------------
Summary: GenericUDF getTimestampValue should return Timestamp instead of Date
Key: HIVE-10275
URL: https://issues.apache.org/jira/browse/HIVE-10275
Project: Hive
Issue Type: Bug
Reporter: Alexander Pivovarov
Assignee: Alexander Pivovarov
Currently getTimestampValue casts Timestamp to Date and returns Date.
Hive Timestamp types stores time with nanosecond precision.
Timestamp class has getNanos method to extract nanoseconds.
Date class has getTime method which retuns unix time in milliseconds.
So, it order to be able to get nanoseconds from Timestamp fields GenericUDF getTimestampValue should return Timestamp instead of Date.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)