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

Terry Kim edited comment on SPARK-29630 at 11/1/19 5:50 AM:
------------------------------------------------------------

In the above example, the EXISTS clause becomes a `condition` of `Filter`. The 
current implementation is not exhaustive enough - e.g., it doesn't traverse 
Expression node for checking views. I will create a PR to address this.

 


was (Author: imback82):
In the above example, the EXISTS clause becomes a `condition` of `Filter`. The 
current implementation is not exhaustive enough - e.g., it doesn't traverse 
Expression node, etc. I will create a PR to address this.

 

> Not allowed to create a permanent view by referencing a temporary view in 
> EXISTS
> --------------------------------------------------------------------------------
>
>                 Key: SPARK-29630
>                 URL: https://issues.apache.org/jira/browse/SPARK-29630
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Takeshi Yamamuro
>            Priority: Major
>
> {code}
> // In the master, the query below fails
> $ CREATE VIEW v7_temp AS SELECT t1.id, t2.a FROM base_table t1, (SELECT * 
> FROM temp_table) t2;
> org.apache.spark.sql.AnalysisException
> Not allowed to create a permanent view `v7_temp` by referencing a temporary 
> view `temp_table`;
> // In the master, the query below passed, but this should fail
> $ CREATE VIEW v8_temp AS SELECT * FROM base_table WHERE EXISTS (SELECT 1 FROM 
> temp_table);
> Passed
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to