Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 76076200CF3 for ; Wed, 13 Sep 2017 17:29:41 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 74B731609CA; Wed, 13 Sep 2017 15:29:41 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B28971609C9 for ; Wed, 13 Sep 2017 17:29:40 +0200 (CEST) Received: (qmail 37440 invoked by uid 500); 13 Sep 2017 15:29:39 -0000 Mailing-List: contact issues-help@carbondata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@carbondata.apache.org Delivered-To: mailing list issues@carbondata.apache.org Received: (qmail 37431 invoked by uid 99); 13 Sep 2017 15:29:39 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Sep 2017 15:29:39 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6F27BF558D; Wed, 13 Sep 2017 15:29:39 +0000 (UTC) From: cenyuhai To: issues@carbondata.apache.org Reply-To: issues@carbondata.apache.org References: In-Reply-To: Subject: [GitHub] carbondata pull request #1356: [CARBONDATA-1477] corrected the bug for wrong... Content-Type: text/plain Message-Id: <20170913152939.6F27BF558D@git1-us-west.apache.org> Date: Wed, 13 Sep 2017 15:29:39 +0000 (UTC) archived-at: Wed, 13 Sep 2017 15:29:41 -0000 Github user cenyuhai commented on a diff in the pull request: https://github.com/apache/carbondata/pull/1356#discussion_r138654019 --- Diff: integration/hive/src/main/java/org/apache/carbondata/hive/CarbonDictionaryDecodeReadSupport.java --- @@ -228,9 +229,13 @@ private Writable createWritablePrimitive(Object obj, CarbonColumn carbonColumn) case LONG: return new LongWritable((long) obj); case SHORT: - return new ShortWritable((Short) obj); + return new ShortWritable((short) obj); case DATE: - return new DateWritable(new Date(((Integer) obj).longValue())); + Calendar c = Calendar.getInstance(); + c.setTime(new Date(0)); --- End diff -- Does it mean current time? and then reset the year to current year? ---