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 C7A6BE8E3 for ; Fri, 11 Jan 2013 15:04:14 +0000 (UTC) Received: (qmail 15498 invoked by uid 500); 11 Jan 2013 15:04:13 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 15385 invoked by uid 500); 11 Jan 2013 15:04:13 -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 15214 invoked by uid 500); 11 Jan 2013 15:04:12 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 15085 invoked by uid 99); 11 Jan 2013 15:04:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jan 2013 15:04:12 +0000 Date: Fri, 11 Jan 2013 15:04:12 +0000 (UTC) From: "Yin Huai (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-3876) call resetValid instead of ensureCapacity in the constructor of BytesRefArrayWritable 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-3876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yin Huai updated HIVE-3876: --------------------------- Status: Patch Available (was: Open) > call resetValid instead of ensureCapacity in the constructor of BytesRefArrayWritable > ------------------------------------------------------------------------------------- > > Key: HIVE-3876 > URL: https://issues.apache.org/jira/browse/HIVE-3876 > Project: Hive > Issue Type: Improvement > Components: Serializers/Deserializers > Affects Versions: 0.10.0 > Reporter: Yin Huai > Assignee: Yin Huai > Priority: Minor > Attachments: HIVE-3876.1.patch.txt > > > In the constructor of BytesRefArrayWritable, ensureCapacity(capacity) is called, but "valid" has not been adjusted accordingly. After a new BytesRefArrayWritable has been created with a initial capacity of "x", if resetValid() has not been called explicitly, the size returned is still 0. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira