You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "N Campbell (JIRA)" <ji...@apache.org> on 2012/06/25 14:36:42 UTC

[jira] [Created] (HIVE-3196) date_add of a timestamp returning a string representation of the date portion

N Campbell created HIVE-3196:
--------------------------------

             Summary: date_add of a timestamp returning a string representation of the date portion
                 Key: HIVE-3196
                 URL: https://issues.apache.org/jira/browse/HIVE-3196
             Project: Hive
          Issue Type: Bug
          Components: SQL
    Affects Versions: 0.8.0
            Reporter: N Campbell


the following expressions are expected to derive a new timestamp where the input has been incremented by n days. The resulting value is a string representation of the date portion (time component truncated)

select date_add(cast(from_unixtime(unix_timestamp()) as timestamp), 5) from cert.tversion

select date_add(from_unixtime(unix_timestamp()), 5) from cert.tversion

the apache docs do not clarify if the is an implicit type conversion to date or the docs need updating to day they will support a timestamp type as an input (which I would expect given the claim to offer timestamp types).

https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira