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


##########
sql/core/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolveSessionCatalog.scala:
##########
@@ -600,6 +601,14 @@ class ResolveSessionCatalog(val catalogManager: 
CatalogManager)
     }
   }
 
+  object ResolvedTableIdentifierInSessionCatalog {
+    def unapply(resolved: LogicalPlan): Option[TableIdentifier] = resolved 
match {
+      case ResolvedTable(catalog, _, t: V1Table, _) if 
isSessionCatalog(catalog) =>

Review Comment:
   if this object is only used once, we can simply inline this pattern match?



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