[
https://issues.apache.org/jira/browse/HIVE-24784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sruthi M reassigned HIVE-24784:
-------------------------------
Assignee: Sruthi M
> Insert into table throws Invalid column reference when select is followed by
> any other operation
> ------------------------------------------------------------------------------------------------
>
> Key: HIVE-24784
> URL: https://issues.apache.org/jira/browse/HIVE-24784
> Project: Hive
> Issue Type: Bug
> Components: Hive
> Affects Versions: All Versions
> Reporter: Alagappan Maruthappan
> Assignee: Sruthi M
> Priority: Minor
>
>
> To Reproduce:
> {code:sql}
> create table foo (a int, b string);
> create table bar (a int, b string);
> explain insert into foo (a, b) select a, b from bar order by b;
> 21/02/15 23:26:58 ERROR ql.Driver: FAILED: SemanticException [Error 10004]:
> Line 1:61 Invalid table alias or column reference 'b': (possible column names
> are: _col0, _col1)21/02/15 23:26:58 ERROR ql.Driver: FAILED:
> SemanticException [Error 10004]: Line 1:61 Invalid table alias or column
> reference 'b': (possible column names are: _col0, _col1)
> {code}
> Any operation that follows select (order by/cluster by/distribute by) throws
> this exception.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)