Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@minotaur.apache.org Received: (qmail 86409 invoked from network); 18 Mar 2009 09:52:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Mar 2009 09:52:11 -0000 Received: (qmail 37051 invoked by uid 500); 18 Mar 2009 09:52:11 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 37026 invoked by uid 500); 18 Mar 2009 09:52:11 -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 37015 invoked by uid 99); 18 Mar 2009 09:52:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Mar 2009 02:52:11 -0700 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, 18 Mar 2009 09:52:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 77B00234C003 for ; Wed, 18 Mar 2009 02:51:50 -0700 (PDT) Message-ID: <1874911421.1237369910475.JavaMail.jira@brutus> Date: Wed, 18 Mar 2009 02:51:50 -0700 (PDT) From: "Raghotham Murthy (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Commented: (HIVE-285) UNION ALL does not allow different types in the same column In-Reply-To: <1372394387.1234230659676.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-285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12682974#action_12682974 ] Raghotham Murthy commented on HIVE-285: --------------------------------------- ping > UNION ALL does not allow different types in the same column > ----------------------------------------------------------- > > Key: HIVE-285 > URL: https://issues.apache.org/jira/browse/HIVE-285 > Project: Hadoop Hive > Issue Type: Bug > Components: Query Processor > Affects Versions: 0.2.0, 0.3.0 > Reporter: Zheng Shao > Assignee: Raghotham Murthy > Fix For: 0.3.0 > > Attachments: hive-285.1.patch > > > {code} > explain INSERT OVERWRITE TABLE t > SELECT s.r, s.c, sum(s.v) FROM > ( > SELECT a.r AS r, a.c AS c, a.v AS v FROM t1 a > UNION ALL > SELECT b.r AS r, b.c AS c, 0 + b.v AS v FROM t2 b > ) s > GROUP BY s.r, s.c; > {code} > Both a and b have 3 string columns: r, c, and v. > It compiled successfully but failed during runtime. > "Explain" shows that the plan for the 2 union-all operands have different output types that are converged to STRING, but there is no UDFToString inserted for "0 + b.v AS v" and as a result, SerDe was failing because it expects a String but is passed a Double. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.