Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 03A001002C for ; Wed, 5 Jun 2013 02:05:21 +0000 (UTC) Received: (qmail 33853 invoked by uid 500); 5 Jun 2013 02:05:20 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 33784 invoked by uid 500); 5 Jun 2013 02:05:20 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 33773 invoked by uid 500); 5 Jun 2013 02:05:20 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 33769 invoked by uid 99); 5 Jun 2013 02:05:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jun 2013 02:05:20 +0000 Date: Wed, 5 Jun 2013 02:05:20 +0000 (UTC) From: "Thejas M Nair (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-4055) add Date data type MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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