hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pengcheng Xiong (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-10487) remove non-ISO restriction that projections in a union have identical column names
Date Wed, 18 Jan 2017 00:52:26 GMT

    [ https://issues.apache.org/jira/browse/HIVE-10487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15827154#comment-15827154
] 

Pengcheng Xiong commented on HIVE-10487:
----------------------------------------

This is not a problem any more on current hive master. I tried cbo=false and true. both of
them work. intersect, except also work with cbo=true.

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

Mime
View raw message