hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zoltan Haindrich (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-19993) Using a table alias which also appears as a column name is not possible
Date Tue, 04 Sep 2018 15:06:00 GMT

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

Zoltan Haindrich updated HIVE-19993:
------------------------------------
       Resolution: Fixed
    Fix Version/s: 4.0.0
           Status: Resolved  (was: Patch Available)

pushed to master. Thank you [~jmarhuen] for fixing this!

> Using a table alias which also appears as a column name is not possible
> -----------------------------------------------------------------------
>
>                 Key: HIVE-19993
>                 URL: https://issues.apache.org/jira/browse/HIVE-19993
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Zoltan Haindrich
>            Assignee: Jaume M
>            Priority: Major
>             Fix For: 4.0.0
>
>         Attachments: HIVE-19993.1.patch, HIVE-19993.2.patch, HIVE-19993.3.patch
>
>
> {code}
> drop table if exists tableA;
> drop table if exists tableB;
> create table tableA (a integer,z integer);
> create table tableB (a integer,b integer,z integer);
> select a.z, b.b 
> from tableB as b JOIN 
> tableA as a
> on a.a=b.b;
> {code}
> {code}
> Error: Error while compiling statement: FAILED: SemanticException Column a Found in more
than One Tables/Subqueries (state=42000,code=40000)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message