hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Wilfong (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-2842) Table with column that shares name fails upon query
Date Tue, 06 Mar 2012 18:18:59 GMT
Table with column that shares name fails upon query
---------------------------------------------------

                 Key: HIVE-2842
                 URL: https://issues.apache.org/jira/browse/HIVE-2842
             Project: Hive
          Issue Type: Bug
            Reporter: Kevin Wilfong


CREATE TABLE t (t STRING);
SELECT t FROM t;

This will result in 
FAILED: Error in semantic analysis: Line 1:7 Ambiguous table alias or column reference 't'

Similarly
SELECT t2 FROM t t2;
will result in the same exception

SELECT t from t t2;
will succeed.

MySQL apparently supports this, so Hive should as well.

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