[ 
https://issues.apache.org/jira/browse/HIVE-15338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15728381#comment-15728381
 ] 

Matt McCline commented on HIVE-15338:
-------------------------------------

Ok, patch now uses java.sql.Date in GenericUDFDateDiff class.

But what about all the other usages of  java.util.Date?

> Wrong result from non-vectorized DATEDIFF with scalar parameter of type 
> DATE/TIMESTAMP
> --------------------------------------------------------------------------------------
>
>                 Key: HIVE-15338
>                 URL: https://issues.apache.org/jira/browse/HIVE-15338
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>            Reporter: Matt McCline
>            Assignee: Matt McCline
>            Priority: Critical
>         Attachments: HIVE-15338.01.patch, HIVE-15338.02.patch
>
>
> Vectorization in vectorized DATEDIFF accidentally treated the scalar 
> parameter is type DATE (e.g. CURRENT_DATE) as 0.
> Current Q file test vectorized_date_funcs.q DOES NOT test the DATE/TIMESTAMP 
> scalar type case.
> And, non-vectorized cases of DATEDIFF are using UTF and returning the wrong 
> results.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to