[
https://issues.apache.org/jira/browse/SPARK-8783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Armbrust resolved SPARK-8783.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.5.0
Issue resolved by pull request 7180
[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
> Fix For: 1.5.0
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]