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 CC197101BA for ; Thu, 13 Mar 2014 19:57:45 +0000 (UTC) Received: (qmail 99323 invoked by uid 500); 13 Mar 2014 19:57:43 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 99205 invoked by uid 500); 13 Mar 2014 19:57:43 -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 99194 invoked by uid 500); 13 Mar 2014 19:57:42 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 99190 invoked by uid 99); 13 Mar 2014 19:57:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Mar 2014 19:57:42 +0000 Date: Thu, 13 Mar 2014 19:57:42 +0000 (UTC) From: "Prasanth J (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-6656) Bug in ORC Timestamp reader returns wrong nanoseconds 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-6656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Prasanth J updated HIVE-6656: ----------------------------- Description: ORC timestamp writer stores the number of trailing zeros in 3 LSB bits. There is a bug in parsing nanosecond logic that returns incorrect value. Input: 1999-01-01 00:00:00.999999999 Output: 1999-01-01 00:00:00.463129087 The fix for this is parseNanos() should first right shift by 3 and then typecast to int. was: ORC timestamp writer stores the number of trailing zeros in 3 LSB bits. There is a bug in parsing nanosecond logic that returns incorrect value. Input: 1999-01-01 00:00:00.999999999 Output: 1999-01-01 00:00:00.463129087 > Bug in ORC Timestamp reader returns wrong nanoseconds > ----------------------------------------------------- > > Key: HIVE-6656 > URL: https://issues.apache.org/jira/browse/HIVE-6656 > Project: Hive > Issue Type: Bug > Affects Versions: 0.13.0, 0.14.0 > Reporter: Prasanth J > Assignee: Prasanth J > Labels: orcfile > Attachments: HIVE-6656.1.patch > > > ORC timestamp writer stores the number of trailing zeros in 3 LSB bits. There is a bug in parsing nanosecond logic that returns incorrect value. > Input: > 1999-01-01 00:00:00.999999999 > Output: > 1999-01-01 00:00:00.463129087 > The fix for this is parseNanos() should first right shift by 3 and then typecast to int. -- This message was sent by Atlassian JIRA (v6.2#6252)