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

Hyukjin Kwon commented on SPARK-23201:
--------------------------------------

We usually resolve it as {{Cannot Reprodice}} if it can't be reproduced in the 
master. We should really find out the appropriate fix/Jira and backport this if 
applicable. [~joha0123] if we are unable to reproduce this in a higher version 
as said above, I would rather leave this resolved.

> Cannot create view when duplicate columns exist in subquery
> -----------------------------------------------------------
>
>                 Key: SPARK-23201
>                 URL: https://issues.apache.org/jira/browse/SPARK-23201
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.6.0, 1.6.3
>            Reporter: Johannes Mayer
>            Priority: Critical
>
> I have two tables A(colA, col2, col3), B(colB, col3, col5)
> If i join them in a subquery on A.colA = B.colB i can select the non 
> duplicate columns, but i cannot create a view (col3 is duplicate, but not 
> selected)
>  
> {code:java}
> create view testview as select
> tmp.colA, tmp.col2, tmp.colB, tmp.col5
> from (
> select * from A left join B
> on (A.colA = B.colB)
> )
> {code}
>  
>  
> This works:
>  
> {code:java}
> select
> tmp.colA, tmp.col2, tmp.colB, tmp.col5
> from (
> select * from A left join B
> on (A.colA = B.colB)
> )
> {code}
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to