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

Apache Spark commented on SPARK-4152:
-------------------------------------

User 'chenghao-intel' has created a pull request for this issue:
https://github.com/apache/spark/pull/3013

> Avoid data change in CTAS while table already existed
> -----------------------------------------------------
>
>                 Key: SPARK-4152
>                 URL: https://issues.apache.org/jira/browse/SPARK-4152
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Cheng Hao
>            Assignee: Cheng Hao
>            Priority: Minor
>
> CREATE TABLE t1 (a String);
> CREATE TABLE t1 AS SELECT key FROM src; -- throw exception
> CREATE TABLE if not exists t1 AS SELECT key FROM src; -- expect do nothing, 
> actually will overwrite the t1.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to