cloud-fan commented on a change in pull request #33204:
URL: https://github.com/apache/spark/pull/33204#discussion_r664207077
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/SQLViewTestSuite.scala
##########
@@ -465,4 +465,35 @@ class PersistedViewTestSuite extends SQLViewTestSuite with
SharedSparkSession {
}
}
}
+
+ test("SPARK-36011: Disallow altering permanent views based on temporary
views or UDFs") {
+ import testImplicits._
+ val table = "t"
+ withTable(table) {
+ (1 to 10).toDF("id").write.saveAsTable(table)
+ val view = "v1"
+ val tView = "v2"
Review comment:
nit: I feel it's clearer to just hardcode "t", "v1", "v2"
--
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]