hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-2863) Ambiguous table name or column reference message displays when table and column names are the same
Date Wed, 09 Jan 2013 10:31:31 GMT

    [ https://issues.apache.org/jira/browse/HIVE-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13548285#comment-13548285
] 

Hudson commented on HIVE-2863:
------------------------------

Integrated in Hive-trunk-hadoop2 #54 (See [https://builds.apache.org/job/Hive-trunk-hadoop2/54/])
    HIVE-2863 Ambiguous table name or column reference message displays when table and column
names are the same (Navis via namit) (Revision 1310126)

     Result = ABORTED
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
>             Fix For: 0.9.0
>
>         Attachments: ASF.LICENSE.NOT.GRANTED--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
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message