dominikgehl commented on a change in pull request #33461:
URL: https://github.com/apache/spark/pull/33461#discussion_r674525636
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/SQLViewTestSuite.scala
##########
@@ -381,6 +381,21 @@ class LocalTempViewTestSuite extends SQLViewTestSuite with
SharedSparkSession {
override protected def tableIdentifier(viewName: String): TableIdentifier = {
TableIdentifier(viewName)
}
+
+ test("SPARK-36243: tableExists should report correctly on temporary view") {
+ Seq(true, false).foreach { storeAnalyzed =>
+ withSQLConf(STORE_ANALYZED_PLAN_FOR_VIEW.key -> storeAnalyzed.toString) {
+ val tblIdent = tableIdentifier("v")
+ assert(!spark.sessionState.catalog.tableExists(tblIdent))
+ val viewName = createView("v", "SELECT 1")
+ withView(viewName) {
+ assert(spark.sessionState.catalog.isTempView(tableIdentifier("v")))
Review comment:
I removed the scala tests since they didn't really have much to do with
the issue
--
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]