You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Pieterjan Vriends (JIRA)" <ji...@apache.org> on 2013/01/02 15:18:13 UTC

[jira] [Updated] (HIVE-3850) hour() function returns 12 hour clock value when using timestamp

     [ https://issues.apache.org/jira/browse/HIVE-3850?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pieterjan Vriends updated HIVE-3850:
------------------------------------

    Summary: hour() function returns 12 hour clock value when using timestamp  (was: hour() function returns 12 hour clock value when using timestamp datatype.)
    
> hour() function returns 12 hour clock value when using timestamp
> ----------------------------------------------------------------
>
>                 Key: HIVE-3850
>                 URL: https://issues.apache.org/jira/browse/HIVE-3850
>             Project: Hive
>          Issue Type: Improvement
>          Components: UDF
>            Reporter: Pieterjan Vriends
>            Priority: Minor
>
> Apparently UDFHour.java does have two evaluate() functions. One that does accept a Text object as parameter and one that does use a TimeStampWritable object as parameter. The first function does return the value of Calendar.HOUR_OF_DAY and the second one of Calendar.HOUR. In the documentation I couldn't find any information on the overload of the evaluation function. I did spent quite some time finding out why my statement didn't return a 24 hour clock value.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira