spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Takeshi Yamamuro (Jira)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-29628) Forcibly create a temporary view in CREATE VIEW if referencing a temporary view
Date Tue, 29 Oct 2019 12:45:00 GMT

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

Takeshi Yamamuro commented on SPARK-29628:
------------------------------------------

Thanks!

> Forcibly create a temporary view in CREATE VIEW if referencing a temporary view
> -------------------------------------------------------------------------------
>
>                 Key: SPARK-29628
>                 URL: https://issues.apache.org/jira/browse/SPARK-29628
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Takeshi Yamamuro
>            Priority: Minor
>
> {code}
> CREATE TEMPORARY VIEW temp_table AS SELECT * FROM VALUES
>   (1, 1) as temp_table(a, id);
> CREATE VIEW v1_temp AS SELECT * FROM temp_table;
> // In Spark
> org.apache.spark.sql.AnalysisException
> Not allowed to create a permanent view `v1_temp` by referencing a temporary view `temp_table`;
> // In PostgreSQL
> NOTICE:  view "v1_temp" will be a temporary view
> {code}



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

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


Mime
View raw message