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_r393954458
 
 

 ##########
 File path: 
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveCommandSuite.scala
 ##########
 @@ -117,6 +117,51 @@ class HiveCommandSuite extends QueryTest with 
SQLTestUtils with TestHiveSingleto
     }
   }
 
+  test("show views") {
+    withView("default1a", "default2b", "temp1", "global_temp.temp2") {
+      sql("CREATE VIEW show1a AS SELECT 1 AS id")
+      sql("CREATE VIEW show2b AS SELECT 1 AS id")
+      sql("CREATE TEMP VIEW temp1 AS SELECT 1 AS id")
+      sql("CREATE GLOBAL TEMP VIEW temp2 AS SELECT 1 AS id")
 
 Review comment:
   Switch line 125 and 124 and the names `temp1` and `temp2`.

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