aokolnychyi commented on code in PR #55278:
URL: https://github.com/apache/spark/pull/55278#discussion_r3164934417


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala:
##########
@@ -336,6 +336,30 @@ class Analyzer(
     }
   }
 
+  /**
+   * Returns a copy of this analyzer that uses the given [[CatalogManager]] 
for all catalog
+   * lookups. All other configuration (extended rules, checks, etc.) is 
preserved. Used by
+   * [[QueryExecution]] to create a per-query analyzer for transactional 
operations for
+   * transaction-aware catalog resolution.
+   */
+  def withCatalogManager(newCatalogManager: CatalogManager): Analyzer = {

Review Comment:
   I'd tighten the test a bit more, left some comments there.



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

Reply via email to