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 2CC8811CEE for ; Wed, 17 Sep 2014 02:27:35 +0000 (UTC) Received: (qmail 62932 invoked by uid 500); 17 Sep 2014 02:27:34 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 62809 invoked by uid 500); 17 Sep 2014 02:27:34 -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 62612 invoked by uid 500); 17 Sep 2014 02:27:34 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 62585 invoked by uid 99); 17 Sep 2014 02:27:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Sep 2014 02:27:34 +0000 Date: Wed, 17 Sep 2014 02:27:34 +0000 (UTC) From: "Prasanth J (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-8078) ORC Delta encoding corrupts data when delta overflows long 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-8078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Prasanth J updated HIVE-8078: ----------------------------- Attachment: HIVE-8078.2.patch Fixes HIVE QA test failures. > ORC Delta encoding corrupts data when delta overflows long > ---------------------------------------------------------- > > Key: HIVE-8078 > URL: https://issues.apache.org/jira/browse/HIVE-8078 > Project: Hive > Issue Type: Bug > Components: File Formats > Affects Versions: 0.14.0, 0.13.1 > Reporter: Tim Patterson > Priority: Critical > Attachments: HIVE-8078-testcase.patch, HIVE-8078.1.patch, HIVE-8078.2.patch > > > There is an issue with the integer encoding that can cause corruption in certain cases. > The following 3 longs cause this failure. > 4513343538618202711 > 2911390882471569739 > -9181829309989854913 > I believe that even though the numbers are in decreasing order, the delta between the last two numbers overflows causing a positive delta, in this case the last digit ends up being corrupted (the delta is applied for the wrong sign resulting in -3442132998776557225 instead of -9181829309989854913. -- This message was sent by Atlassian JIRA (v6.3.4#6332)