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 DC2CE9B09 for ; Fri, 6 Apr 2012 07:39:06 +0000 (UTC) Received: (qmail 99253 invoked by uid 500); 6 Apr 2012 07:39:06 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 99004 invoked by uid 500); 6 Apr 2012 07:39:01 -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 98955 invoked by uid 500); 6 Apr 2012 07:39:00 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 98952 invoked by uid 99); 6 Apr 2012 07:39:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Apr 2012 07:38:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Apr 2012 07:38:58 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 70C0A35B43E for ; Fri, 6 Apr 2012 07:38:38 +0000 (UTC) Date: Fri, 6 Apr 2012 07:38:38 +0000 (UTC) From: "Hudson (Commented) (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <1900443139.22459.1333697918463.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <778329871.3051.1331565877369.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HIVE-2863) Ambiguous table name or column reference message displays when table and column names are the same 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-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13248157#comment-13248157 ] Hudson commented on HIVE-2863: ------------------------------ Integrated in Hive-trunk-h0.21 #1356 (See [https://builds.apache.org/job/Hive-trunk-h0.21/1356/]) HIVE-2863 Ambiguous table name or column reference message displays when table and column names are the same (Navis via namit) (Revision 1310126) Result = SUCCESS namit : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1310126 Files : * /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/TypeCheckProcFactory.java * /hive/trunk/ql/src/test/queries/clientpositive/nomore_ambiguous_table_col.q * /hive/trunk/ql/src/test/queries/negative/ambiguous_table_col.q * /hive/trunk/ql/src/test/results/clientpositive/nomore_ambiguous_table_col.q.out * /hive/trunk/ql/src/test/results/compiler/errors/ambiguous_table_col.q.out > Ambiguous table name or column reference message displays when table and column names are the same > -------------------------------------------------------------------------------------------------- > > Key: HIVE-2863 > URL: https://issues.apache.org/jira/browse/HIVE-2863 > Project: Hive > Issue Type: Bug > Reporter: Mauro Cazzari > Assignee: Navis > Attachments: HIVE-2863.D2361.1.patch > > > Given the following table: > CREATE TABLE `Y` (`y` DOUBLE) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\001' STORED AS TEXTFILE; > The following query fails: > SELECT `Y`.`y` FROM `Y` WHERE ( `y` = 1 ) > ERROR: java.sql.SQLException: Query returned non-zero code: 10, cause: FAILED: Error in > semantic analysis: Line 1:36 Ambiguous table alias or column reference '`y`' > ERROR: Unable to execute Hadoop query. > ERROR: Prepare error. SQL statement: SELECT `Y`.`y` FROM `Y` WHERE ( `y` = 1 ). > The problem goes away if the table and column names do not match. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira