Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@minotaur.apache.org Received: (qmail 79317 invoked from network); 15 Jul 2009 23:31:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Jul 2009 23:31:28 -0000 Received: (qmail 20663 invoked by uid 500); 15 Jul 2009 23:31:38 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 20594 invoked by uid 500); 15 Jul 2009 23:31:38 -0000 Mailing-List: contact hive-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hadoop.apache.org Delivered-To: mailing list hive-dev@hadoop.apache.org Received: (qmail 20566 invoked by uid 99); 15 Jul 2009 23:31:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jul 2009 23:31:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jul 2009 23:31:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 587C6234C004 for ; Wed, 15 Jul 2009 16:31:15 -0700 (PDT) Message-ID: <507644727.1247700675348.JavaMail.jira@brutus> Date: Wed, 15 Jul 2009 16:31:15 -0700 (PDT) From: "Zheng Shao (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Updated: (HIVE-635) UnionOperator fails when different inputs have different ObjectInspector (but the same TypeInfo) In-Reply-To: <276354517.1247598194922.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Zheng Shao updated HIVE-635: ---------------------------- Attachment: HIVE-635.3.patch Good idea. This patch makes sure UnionOperator does not touch the row if it's already in the format wanted. The following log verifies that. {code} ant test -Dhadoop.version=0.17.0 -Dtestcase=TestCliDriver -Dtest.silent=false -Dqfile=union21.q ... [junit] 09/07/15 16:27:22 INFO exec.UnionOperator: parent 4 initialized [junit] 09/07/15 16:27:22 INFO exec.UnionOperator: start Initializing 2 [junit] 09/07/15 16:27:22 INFO exec.UnionOperator: Initializing Self 2 [junit] 09/07/15 16:27:22 INFO exec.UnionOperator: Union Operator needs to transform row from parent[2] from org.apache.hadoop.hive.serde2.objectinspector.StandardStructObjectInspector to org.apache.hadoop.hive.serde2.objectinspector.StandardStructObjectInspector [junit] 09/07/15 16:27:22 INFO exec.UnionOperator: Union Operator needs to transform row from parent[3] from org.apache.hadoop.hive.serde2.objectinspector.StandardStructObjectInspector to org.apache.hadoop.hive.serde2.objectinspector.StandardStructObjectInspector [junit] 09/07/15 16:27:22 INFO exec.UnionOperator: Union Operator needs to transform row from parent[4] from org.apache.hadoop.hive.serde2.objectinspector.StandardStructObjectInspector to org.apache.hadoop.hive.serde2.objectinspector.StandardStructObjectInspector {code} > UnionOperator fails when different inputs have different ObjectInspector (but the same TypeInfo) > ------------------------------------------------------------------------------------------------ > > Key: HIVE-635 > URL: https://issues.apache.org/jira/browse/HIVE-635 > Project: Hadoop Hive > Issue Type: Bug > Affects Versions: 0.3.0, 0.3.1 > Reporter: Zheng Shao > Assignee: Zheng Shao > Attachments: HIVE-635.1.patch, HIVE-635.3.patch > > > The current UnionOperator code assumes the ObjectInspectors from all parents are the same. > But in reality, they can be different, and UnionOperator needs to do conversion if necessary. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.