You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Namit Jain (Updated) (JIRA)" <ji...@apache.org> on 2012/04/06 01:08:23 UTC
[jira] [Updated] (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:all-tabpanel ]
Namit Jain updated HIVE-2863:
-----------------------------
Resolution: Fixed
Hadoop Flags: Reviewed
Status: Resolved (was: Patch Available)
Committed. Thanks Navis
> 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