[ 
https://issues.apache.org/jira/browse/HIVE-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Phabricator updated HIVE-2863:
------------------------------

    Attachment: HIVE-2863.D2361.1.patch

navis requested code review of "HIVE-2863 [jira] Ambiguous table name or column 
reference message displays when table and column names are the same".
Reviewers: JIRA

  DPAL-975 Ambiguous table name or column reference message displays when table 
and column names are the same

  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.

TEST PLAN
  EMPTY

REVISION DETAIL
  https://reviews.facebook.net/D2361

AFFECTED FILES
  ql/src/java/org/apache/hadoop/hive/ql/parse/TypeCheckProcFactory.java
  ql/src/test/queries/clientpositive/nomore_ambiguous_table_col.q
  ql/src/test/queries/negative/ambiguous_table_col.q
  ql/src/test/results/clientpositive/nomore_ambiguous_table_col.q.out
  ql/src/test/results/compiler/errors/ambiguous_table_col.q.out

MANAGE HERALD DIFFERENTIAL RULES
  https://reviews.facebook.net/herald/view/differential/

WHY DID I GET THIS EMAIL?
  https://reviews.facebook.net/herald/transcript/5241/

Tip: use the X-Herald-Rules header to filter Herald messages in your client.

                
> 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
>         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

        

Reply via email to