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 C763610670 for ; Thu, 20 Mar 2014 18:44:59 +0000 (UTC) Received: (qmail 89372 invoked by uid 500); 20 Mar 2014 18:44:48 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 89018 invoked by uid 500); 20 Mar 2014 18:44:47 -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 88975 invoked by uid 500); 20 Mar 2014 18:44:45 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 88926 invoked by uid 99); 20 Mar 2014 18:44:44 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Mar 2014 18:44:44 +0000 Date: Thu, 20 Mar 2014 18:44:44 +0000 (UTC) From: "Prasanth J (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-6711) ORC maps uses getMapSize() from MapOI which is unreliable 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-6711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Prasanth J updated HIVE-6711: ----------------------------- Status: Patch Available (was: Open) > ORC maps uses getMapSize() from MapOI which is unreliable > --------------------------------------------------------- > > Key: HIVE-6711 > URL: https://issues.apache.org/jira/browse/HIVE-6711 > Project: Hive > Issue Type: Bug > Affects Versions: 0.12.0, 0.11.0, 0.13.0 > Reporter: Prasanth J > Assignee: Prasanth J > Labels: orcfile > Fix For: 0.13.0, 0.14.0 > > Attachments: HIVE-6711.1.patch > > > HIVE-6707 had issues with map size. getMapSize() of LazyMap and LazyBinaryMap does not deserialize the keys and count the number of unique keys. Since getMapSize() may return non-distinct count of keys, the length of maps stored using ORC's map tree writer will not be in sync with actual map size. As a result of this RLE reader will try to read beyond the disk range expecting more map entries and will throw exception. -- This message was sent by Atlassian JIRA (v6.2#6252)