hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arun A K (JIRA)" <>
Subject [jira] [Commented] (HIVE-3850) hour() function returns 12 hour clock value when using timestamp datatype
Date Tue, 19 Feb 2013 03:25:14 GMT


Arun A K commented on HIVE-3850:

Hello [],

But my query was that how different is the new patch? Is that it carries the test cases? I
have seen that you have added the testcase carriying the typecasted time in the query that
was missing in the initial q file that [~710154] had added. I guess you have misunderstood
my initial question. And even now the review has not yet come up. Do you think a review request
need to be raised across the new patch? 
> hour() function returns 12 hour clock value when using timestamp datatype
> -------------------------------------------------------------------------
>                 Key: HIVE-3850
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: UDF
>    Affects Versions: 0.9.0, 0.10.0
>            Reporter: Pieterjan Vriends
>             Fix For: 0.11.0
>         Attachments: hive-3850.patch, HIVE-3850.patch.txt
> Apparently 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.
> Shouldn't both functions return the same?

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:

View raw message