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 9719D100D5 for ; Tue, 24 Sep 2013 18:32:22 +0000 (UTC) Received: (qmail 51310 invoked by uid 500); 24 Sep 2013 18:32:21 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 50674 invoked by uid 500); 24 Sep 2013 18:32:11 -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 49938 invoked by uid 500); 24 Sep 2013 18:32:09 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 49831 invoked by uid 99); 24 Sep 2013 18:32:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Sep 2013 18:32:06 +0000 Date: Tue, 24 Sep 2013 18:32:06 +0000 (UTC) From: "Hari Sankar Sivarama Subramaniyan (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-5336) HCatSchema.remove(HCatFieldSchema hcatFieldSchema) should renumber the fieldPositionMap and the fieldPositionMap should not be cached by the end user 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-5336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13776599#comment-13776599 ] Hari Sankar Sivarama Subramaniyan commented on HIVE-5336: --------------------------------------------------------- The above error doesn't reproduce locally and does not look related to the changes made by me. > HCatSchema.remove(HCatFieldSchema hcatFieldSchema) should renumber the fieldPositionMap and the fieldPositionMap should not be cached by the end user > ------------------------------------------------------------------------------------------------------------------------------------------------------ > > Key: HIVE-5336 > URL: https://issues.apache.org/jira/browse/HIVE-5336 > Project: Hive > Issue Type: Bug > Components: HCatalog > Reporter: Hari Sankar Sivarama Subramaniyan > Assignee: Hari Sankar Sivarama Subramaniyan > Attachments: HIVE-5336.1.patch.txt > > > HCatSchema.remove currently does not renumber the fieldPositionMap which can be a problem when there are interleaving append() and remove() calls. > 1. We should document that fieldPositionMap should not be cached by the end-user > 2. We should make sure that the fieldPositionMap gets renumbered after remove() because HcatSchema.get will otherwise return wrong FieldSchemas. -- 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