[ https://issues.apache.org/jira/browse/HIVE-10487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14513028#comment-14513028 ]
Xuefu Zhang commented on HIVE-10487: ------------------------------------ Interesting. If the restriction is lifted, what's the column name of the result schema then? Does ISO say anything? > 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)