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


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/ShowTablesExec.scala:
##########
@@ -48,9 +49,6 @@ case class ShowTablesExec(
   }
 
   private def isTempView(ident: Identifier): Boolean = {
-    catalog match {
-      case s: V2SessionCatalog => s.isTempView(ident)
-      case _ => false
-    }
+    session.sessionState.catalog.isTempView((ident.namespace() :+ 
ident.name()).toImmutableArraySeq)

Review Comment:
   shall we only do it if the catalog name is `spark_catalog`? i.e. 
`CatalogV2Utils.isSessionCatalog`



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

Reply via email to