cloud-fan commented on code in PR #53780:
URL: https://github.com/apache/spark/pull/53780#discussion_r2685278141


##########
sql/core/src/test/scala/org/apache/spark/sql/execution/SQLViewTestSuite.scala:
##########
@@ -381,6 +381,26 @@ abstract class SQLViewTestSuite extends QueryTest with 
SQLTestUtils {
     }
   }
 
+  test("SPARK-55019: view can be dropped using DROP TABLE") {
+    val viewName = "v"
+    withView(viewName) {
+      sql(s"DROP VIEW IF EXISTS $viewName")
+      // First, create a simple view.
+      sql(s"CREATE VIEW $viewName AS SELECT 1 AS a")

Review Comment:
   we should use `createView`, otherwise the framework can't switch the view 
type.



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to