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

Thejas M Nair commented on HIVE-4055:
-------------------------------------

[~sunrui] I think we should consider using JodaTime instead of java.sql.Date.
While working on datetime implementation in Apache Pig (PIG-1314), we found 
that JodaTime is significantly faster than java built in date type. See numbers 
here - 
https://issues.apache.org/jira/secure/EditComment!default.jspa?id=12459893&commentId=13284047
 . The test code is attached in the jira. Note that the comparison is after 
adding optimization to avoid conversion Calendar objects from java.util.date. 
java.sql.Date is a thin wrapper around java.util.Date , so it is likely to have 
the same performance characteristics.



                
> add Date data type
> ------------------
>
>                 Key: HIVE-4055
>                 URL: https://issues.apache.org/jira/browse/HIVE-4055
>             Project: Hive
>          Issue Type: Sub-task
>          Components: JDBC, Query Processor, Serializers/Deserializers, UDF
>            Reporter: Sun Rui
>         Attachments: HIVE-4055.1.patch.txt
>
>
> Add Date data type, a new primitive data type which supports the standard SQL 
> date type.
> Basically, the implementation can take HIVE-2272 and HIVE-2957 as references.

--
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

Reply via email to