cloud-fan commented on code in PR #44061: URL: https://github.com/apache/spark/pull/44061#discussion_r1408558872
########## sql/core/src/test/scala/org/apache/spark/sql/internal/CatalogSuite.scala: ########## @@ -1050,6 +1052,16 @@ class CatalogSuite extends SharedSparkSession with AnalysisTest with BeforeAndAf func2.className.startsWith("org.apache.spark.sql.internal.CatalogSuite")) } + test("SPARK-46145: listTables does not throw exception when the table or view is not found") { + val impl = spark.catalog.asInstanceOf[CatalogImpl] + for (temp <- Seq(true, false)) { + val row = + new GenericInternalRow(Array(UTF8String.fromString("db"), UTF8String.fromString("t"), temp)) Review Comment: and let's set schema to empty string for temp views. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org