[
https://issues.apache.org/jira/browse/SPARK-16457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15368984#comment-15368984
]
Apache Spark commented on SPARK-16457:
--------------------------------------
User 'gatorsmile' has created a pull request for this issue:
https://github.com/apache/spark/pull/14113
> Wrong messages when CTAS with a Partition By clause
> ---------------------------------------------------
>
> Key: SPARK-16457
> URL: https://issues.apache.org/jira/browse/SPARK-16457
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.0.0
> Reporter: Xiao Li
>
> When doing a CTAS with a Partition By clause, we got a wrong error message.
> For example,
> {noformat}
> CREATE TABLE gen__tmp
> PARTITIONED BY (key string)
> AS SELECT key, value FROM mytable1
> {noformat}
> {noformat}
> Operation not allowed: Schema may not be specified in a Create Table As
> Select (CTAS) statement(line 2, pos 0)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]