[ 
https://issues.apache.org/jira/browse/SPARK-8783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Apache Spark reassigned SPARK-8783:
-----------------------------------

    Assignee: Apache Spark

> 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
>            Assignee: Apache Spark
>            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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to