You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2013/01/09 11:31:31 UTC

[jira] [Commented] (HIVE-2863) Ambiguous table name or column reference message displays when table and column names are the same

    [ 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