You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/07/02 08:40:04 UTC

[jira] [Commented] (SPARK-8783) CTAS with WITH clause does not work

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

Apache Spark commented on SPARK-8783:
-------------------------------------

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

> CTAS with WITH clause does not work
> -----------------------------------
>
>                 Key: SPARK-8783
>                 URL: https://issues.apache.org/jira/browse/SPARK-8783
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Keuntae Park
>            Priority: Minor
>
> Following CTAS with WITH clause query 
> {code}
> CREATE TABLE with_table1 AS
> WITH T AS (
>   SELECT *
>   FROM table1
> )
> SELECT *
> FROM T
> {code}
> induces following error
> {code}
> no such table T; line 7 pos 5
> org.apache.spark.sql.AnalysisException: no such table T; line 7 pos 5
> ...
> {code}
> I think that WITH clause within CTAS is not handled properly.



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

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