gatorsmile commented on a change in pull request #26361: [SPARK-29630][SQL] 
Disallow creating a permanent view that references a temporary view in an 
expression
URL: https://github.com/apache/spark/pull/26361#discussion_r361781389
 
 

 ##########
 File path: 
sql/core/src/test/resources/sql-tests/results/postgreSQL/create_view.sql.out
 ##########
 @@ -803,61 +806,77 @@ Not allowed to create a permanent view `temporal4` by 
referencing a temporary vi
 
 
 -- !query 71
-CREATE TABLE tbl1 ( a int, b int) using parquet
+CREATE VIEW temporal5 AS SELECT * FROM t1 WHERE num IN (SELECT num FROM t1 
WHERE EXISTS (SELECT 1 FROM tt))
 -- !query 71 schema
 struct<>
 -- !query 71 output
-
+org.apache.spark.sql.AnalysisException
+Not allowed to create a permanent view `temporal5` by referencing a temporary 
view `tt`;
 
 Review comment:
   Permanent views can also reference to tables. 
   
   There exists a general issue in our existing error messages. We do not have 
a message reference book. When users hit the unclear error messages, what they 
can do is to read the source code or try different options until it works. This 
is not natural to end users who have zero background about Spark SQL. We need 
to correct them one by one.  

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to