[ https://issues.apache.org/jira/browse/HIVE-3454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14107602#comment-14107602 ]
David P Moore commented on HIVE-3454: ------------------------------------- I see that this is still an issue. I found this today when trying to convert from integer to timestamp. In order to get this to work I had to add milliseconds (3 digits after the unix epoch) and also use a bigint intstead of int. I am using version 0.12. Any idea when this will be put in the main trunk? > Problem with CAST(BIGINT as TIMESTAMP) > -------------------------------------- > > Key: HIVE-3454 > URL: https://issues.apache.org/jira/browse/HIVE-3454 > Project: Hive > Issue Type: Bug > Components: Types, UDF > Affects Versions: 0.8.0, 0.8.1, 0.9.0 > Reporter: Ryan Harris > Labels: newbie, newdev, patch > Attachments: HIVE-3454.1.patch.txt, HIVE-3454.patch > > > Ran into an issue while working with timestamp conversion. > CAST(unix_timestamp() as TIMESTAMP) should create a timestamp for the current > time from the BIGINT returned by unix_timestamp() > Instead, however, a 1970-01-16 timestamp is returned. -- This message was sent by Atlassian JIRA (v6.2#6252)