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 8695B11029 for ; Tue, 16 Sep 2014 20:41:36 +0000 (UTC) Received: (qmail 65133 invoked by uid 500); 16 Sep 2014 20:41:36 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 65066 invoked by uid 500); 16 Sep 2014 20:41:36 -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 65044 invoked by uid 500); 16 Sep 2014 20:41:35 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 65041 invoked by uid 99); 16 Sep 2014 20:41:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Sep 2014 20:41:35 +0000 Date: Tue, 16 Sep 2014 20:41:35 +0000 (UTC) From: "Jason Dere (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-8102) Partitions of type 'date' behave incorrectly with daylight saving time. 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-8102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jason Dere updated HIVE-8102: ----------------------------- Status: Patch Available (was: Open) > Partitions of type 'date' behave incorrectly with daylight saving time. > ----------------------------------------------------------------------- > > Key: HIVE-8102 > URL: https://issues.apache.org/jira/browse/HIVE-8102 > Project: Hive > Issue Type: Bug > Components: Database/Schema, Serializers/Deserializers > Affects Versions: 0.13.0 > Reporter: Eli Acherkan > Attachments: HIVE-8102.1.patch, HIVE-8102.2.patch > > > On 2AM on March 28th 2014, Israel went from standard time (GMT+2) to daylight saving time (GMT+3). > The server's timezone is Asia/Jerusalem. When creating a partition whose key is 2014-03-28, Hive creates a partition for 2013-03-27 instead: > hive (default)> create table test (a int) partitioned by (`b_prt` date); > OK > Time taken: 0.092 seconds > hive (default)> alter table test add partition (b_prt='2014-03-28'); > OK > Time taken: 0.187 seconds > hive (default)> show partitions test; > OK > partition > b_prt=2014-03-27 > Time taken: 0.134 seconds, Fetched: 1 row(s) > It seems that the root cause is the behavior of DateWritable.daysToMillis/dateToDays. -- This message was sent by Atlassian JIRA (v6.3.4#6332)