dongjoon-hyun commented on a change in pull request #27897: [SPARK-31113][SQL] 
Add SHOW VIEWS command
URL: https://github.com/apache/spark/pull/27897#discussion_r393945350
 
 

 ##########
 File path: sql/core/src/test/resources/sql-tests/inputs/show-views.sql
 ##########
 @@ -0,0 +1,31 @@
+-- Test data.
+CREATE DATABASE showdb;
+USE showdb;
+CREATE TABLE tbl(a String, b Int, c String, d String) USING parquet;
+CREATE VIEW view_1 AS SELECT * FROM tbl;
+CREATE VIEW view_2 AS SELECT * FROM tbl WHERE c='a';
+CREATE TEMPORARY VIEW view_3(e int) USING parquet;
+CREATE GLOBAL TEMP VIEW view_4 AS SELECT 1 as col1;
 
 Review comment:
   BTW, please switch line 7 and 8. In this PR, global temp view (`view_4`) is 
printed out before local temp view (`view_3`). Although our test suite did sort 
and hide it.

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