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 3EE6E10947 for ; Fri, 27 Sep 2013 18:58:33 +0000 (UTC) Received: (qmail 94977 invoked by uid 500); 27 Sep 2013 18:58:20 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 94772 invoked by uid 500); 27 Sep 2013 18:58:18 -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 94419 invoked by uid 500); 27 Sep 2013 18:58:15 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 94095 invoked by uid 99); 27 Sep 2013 18:58:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Sep 2013 18:58:11 +0000 Date: Fri, 27 Sep 2013 18:58:11 +0000 (UTC) From: "Hudson (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-5366) Refactor a few object inspector class to eliminate redundant information 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-5366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13780255#comment-13780255 ] Hudson commented on HIVE-5366: ------------------------------ FAILURE: Integrated in Hive-trunk-hadoop2-ptest #117 (See [https://builds.apache.org/job/Hive-trunk-hadoop2-ptest/117/]) HIVE-5366 : Refactor a few object inspector class to eliminate redundant information (Xuefu Zhang via Ashutosh Chauhan) (hashutosh: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1526603) * /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/lazy/objectinspector/primitive/LazyHiveVarcharObjectInspector.java * /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/objectinspector/primitive/AbstractPrimitiveObjectInspector.java * /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/objectinspector/primitive/JavaHiveVarcharObjectInspector.java * /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/objectinspector/primitive/WritableHiveVarcharObjectInspector.java > Refactor a few object inspector class to eliminate redundant information > ------------------------------------------------------------------------ > > Key: HIVE-5366 > URL: https://issues.apache.org/jira/browse/HIVE-5366 > Project: Hive > Issue Type: Improvement > Components: Serializers/Deserializers, Types > Affects Versions: 0.12.0 > Reporter: Xuefu Zhang > Assignee: Xuefu Zhang > Fix For: 0.13.0 > > Attachments: HIVE-5366.patch > > > AbstractPrimitiveObjectInspector class has two fields: > {code} > protected PrimitiveTypeEntry typeEntry; > protected BaseTypeParams typeParams; > {code} > But PrimitiveTypeEntry already has member BaseTypeParams instance, which is identical to "typeParams" we see here. Thus, there is some redundant information stored at different places. Ideally, we should have a single point of truth. > This refactoring is required by HIVE-3976 work. This is singled out to make the review easier. -- 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