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 0826510F9E for ; Thu, 20 Feb 2014 11:52:26 +0000 (UTC) Received: (qmail 94801 invoked by uid 500); 20 Feb 2014 11:52:23 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 94600 invoked by uid 500); 20 Feb 2014 11:52:22 -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 94576 invoked by uid 500); 20 Feb 2014 11:52:20 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 94569 invoked by uid 99); 20 Feb 2014 11:52:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Feb 2014 11:52:20 +0000 Date: Thu, 20 Feb 2014 11:52:20 +0000 (UTC) From: "Puneet Gupta (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-5994) ORC RLEv2 encodes wrongly for large negative BIGINTs (64 bits ) 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-5994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13906887#comment-13906887 ] Puneet Gupta commented on HIVE-5994: ------------------------------------ Hi Prasanth I also tested with the path mentioned in https://reviews.apache.org/r/16148/diff/ by merging the code in 0.12 .0 . It solves the issue :-). Thanks for the help . > ORC RLEv2 encodes wrongly for large negative BIGINTs (64 bits ) > ---------------------------------------------------------------- > > Key: HIVE-5994 > URL: https://issues.apache.org/jira/browse/HIVE-5994 > Project: Hive > Issue Type: Bug > Affects Versions: 0.13.0 > Reporter: Prasanth J > Assignee: Prasanth J > Labels: orcfile > Fix For: 0.13.0 > > Attachments: HIVE-5994.1.patch > > > For large negative BIGINTs, zigzag encoding will yield large value (64bit value) with MSB set to 1. This value is interpreted as negative value in SerializationUtils.findClosestNumBits(long value) function. This resulted in wrong computation of total number of bits required which results in wrong encoding/decoding of values. -- This message was sent by Atlassian JIRA (v6.1.5#6160)