cloud-fan commented on a change in pull request #34543:
URL: https://github.com/apache/spark/pull/34543#discussion_r747987487
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/SQLViewTestSuite.scala
##########
@@ -530,4 +530,23 @@ class PersistedViewTestSuite extends SQLViewTestSuite with
SharedSparkSession {
spark.sessionState.conf.clear()
}
}
+
+ test("SPARK-37266: Optimize the analysis for view text of persistent view
and" +
+ " fix security vulnerabilities caused by sql tampering") {
+ sql("CREATE VIEW v AS SELECT 1")
+ val table =
spark.sessionState.catalog.getTableMetadata(TableIdentifier("v"))
Review comment:
let's wrap the test with `withView`
--
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]