[
https://issues.apache.org/jira/browse/HIVE-10487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pengcheng Xiong resolved HIVE-10487.
------------------------------------
Resolution: Not A Problem
closed as not a problem. please feel free to reopen if it still exists. thanks.
> remove non-ISO restriction that projections in a union have identical column
> names
> ----------------------------------------------------------------------------------
>
> Key: HIVE-10487
> URL: https://issues.apache.org/jira/browse/HIVE-10487
> Project: Hive
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 0.13.1
> Reporter: N Campbell
> Priority: Critical
>
> While documented
> https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Union
> an application should be able to perform a union query where the projections
> are union compatible which does not include the projected column names being
> identical which Hive imposes vs ISO-SQL 20xx.
> i.e
> rejected
> select c1 from t1 union all select c2 from t2
> Schema of both sides of union should match. _u1-subquery2
> accepted
> select c1 from t1 union all select c2 c1 from t2
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)