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 5BD4E178F2 for ; Tue, 14 Oct 2014 06:32:34 +0000 (UTC) Received: (qmail 55012 invoked by uid 500); 14 Oct 2014 06:32:34 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 54947 invoked by uid 500); 14 Oct 2014 06:32:33 -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 54936 invoked by uid 500); 14 Oct 2014 06:32:33 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 54933 invoked by uid 99); 14 Oct 2014 06:32:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Oct 2014 06:32:33 +0000 Date: Tue, 14 Oct 2014 06:32:33 +0000 (UTC) From: "Navis (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-7733) Ambiguous column reference error on query 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-7733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Navis updated HIVE-7733: ------------------------ Attachment: (was: HIVE-7733.7.patch.txt) > Ambiguous column reference error on query > ----------------------------------------- > > Key: HIVE-7733 > URL: https://issues.apache.org/jira/browse/HIVE-7733 > Project: Hive > Issue Type: Bug > Affects Versions: 0.13.0 > Reporter: Jason Dere > Assignee: Navis > Attachments: HIVE-7733.1.patch.txt, HIVE-7733.2.patch.txt, HIVE-7733.3.patch.txt, HIVE-7733.4.patch.txt, HIVE-7733.5.patch.txt, HIVE-7733.6.patch.txt > > > {noformat} > CREATE TABLE agg1 > ( > col0 INT, > col1 STRING, > col2 DOUBLE > ); > explain SELECT single_use_subq11.a1 AS a1, > single_use_subq11.a2 AS a2 > FROM (SELECT Sum(agg1.col2) AS a1 > FROM agg1 > GROUP BY agg1.col0) single_use_subq12 > JOIN (SELECT alias.a2 AS a0, > alias.a1 AS a1, > alias.a1 AS a2 > FROM (SELECT agg1.col1 AS a0, > '42' AS a1, > agg1.col0 AS a2 > FROM agg1 > UNION ALL > SELECT agg1.col1 AS a0, > '41' AS a1, > agg1.col0 AS a2 > FROM agg1) alias > GROUP BY alias.a2, > alias.a1) single_use_subq11 > ON ( single_use_subq11.a0 = single_use_subq11.a0 ); > {noformat} > Gets the following error: > FAILED: SemanticException [Error 10007]: Ambiguous column reference a2 > Looks like this query had been working in 0.12 but starting failing with this error in 0.13 -- This message was sent by Atlassian JIRA (v6.3.4#6332)