You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "N Campbell (JIRA)" <ji...@apache.org> on 2015/04/26 05:53:38 UTC

[jira] [Created] (HIVE-10487) remove non-ISO restriction that projections in a union have identical column names

N Campbell created HIVE-10487:
---------------------------------

             Summary: 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)