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 0437AD685 for ; Thu, 18 Oct 2012 20:32:04 +0000 (UTC) Received: (qmail 34887 invoked by uid 500); 18 Oct 2012 20:32:03 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 34834 invoked by uid 500); 18 Oct 2012 20:32:03 -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 34823 invoked by uid 500); 18 Oct 2012 20:32:03 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 34820 invoked by uid 99); 18 Oct 2012 20:32:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Oct 2012 20:32:03 +0000 Date: Thu, 18 Oct 2012 20:32:03 +0000 (UTC) From: "Namit Jain (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <2009868374.65591.1350592323333.JavaMail.jiratomcat@arcas> In-Reply-To: <481403805.6190.1349598302841.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (HIVE-3544) union involving double column with a map join subquery will fail or give wrong results 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-3544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Namit Jain updated HIVE-3544: ----------------------------- Status: Open (was: Patch Available) minor comments on phabricator > union involving double column with a map join subquery will fail or give wrong results > -------------------------------------------------------------------------------------- > > Key: HIVE-3544 > URL: https://issues.apache.org/jira/browse/HIVE-3544 > Project: Hive > Issue Type: Bug > Components: Query Processor > Affects Versions: 0.10.0 > Reporter: Kevin Wilfong > Assignee: Kevin Wilfong > Attachments: HIVE-3544.1.patch.txt, HIVE-3544.2.patch.txt, HIVE-3544.3.patch.txt > > > The following query fails: > select * from (select cast(a.key as bigint) as key from src a join src b on a.key = b.key union all select cast(key as double) as key from src)a > The following query gives wrong results: > select * from (select cast(a.key as bigint) as key, cast(b.key as double) as value from src a join src b on a.key = b.key union all select cast(key as double) as key, cast(key as string) as value from src)a > But the following query runs fine: > select * from (select cast(a.key as bigint) as key from src a union all select cast(key as double) as key from src)a -- 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