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

Takeshi Yamamuro edited comment on SPARK-21363 at 8/15/17 8:08 AM:
-------------------------------------------------------------------

User 'maropu' has created a pull request for this issue:
https://github.com/apache/spark/pull/18938


was (Author: maropu):
This pr is: https://github.com/apache/spark/pull/18938

> Prevent column name duplication in temporary view
> -------------------------------------------------
>
>                 Key: SPARK-21363
>                 URL: https://issues.apache.org/jira/browse/SPARK-21363
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.1.1
>            Reporter: Takeshi Yamamuro
>            Priority: Minor
>
> In SPARK-20460, we refactored some existing checks for column name 
> duplication. The master currently allows name duplication for temporary views 
> like an example below though, IMO we better prevent it along with permanent 
> views (the master prevents the case for the permanent views).
> {code}
> scala> Seq((1, 1)).toDF("a", "a").createOrReplaceTempView("t")
> scala> sql("SELECT * FROM t").show
> +---+---+
> |  a|  a|
> +---+---+
> |  1|  1|
> +---+---+
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to