hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (Commented) (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 Fri, 06 Apr 2012 07:38:38 GMT

    [ 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

        

Mime
View raw message