spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [spark] dongjoon-hyun commented on a change in pull request #27897: [SPARK-31113][SQL] Add SHOW VIEWS command
Date Tue, 17 Mar 2020 20:20:00 GMT
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`).

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

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


Mime
View raw message