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

Nattavut Sutyanyong commented on SPARK-18389:
---------------------------------------------

In your example above, the symbol w in the CTE is in the inner scope. The view 
w essentially does not depend on any persistent object. Is it the problem of 
name resolution without recognizing the scope of the name during the Analyzer 
phase?

On the concurrency topic, would you agree that any solution we will implement 
here should still work when Spark supports concurrency? The idea of multiple 
SparkSession's within one SparkContext indicates Spark supports concurrency 
today. Isn't it?

> Disallow cyclic view reference
> ------------------------------
>
>                 Key: SPARK-18389
>                 URL: https://issues.apache.org/jira/browse/SPARK-18389
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>            Reporter: Reynold Xin
>
> The following should not be allowed:
> {code}
> CREATE VIEW testView AS SELECT id FROM jt
> CREATE VIEW testView2 AS SELECT id FROM testView
> ALTER VIEW testView AS SELECT * FROM testView2
> {code}



--
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