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


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala:
##########
@@ -1459,7 +1462,10 @@ class Analyzer(override val catalogManager: 
CatalogManager) extends RuleExecutor
    *       previous options are permanently not applicable. If the current 
option can be applicable
    *       in the next iteration (other rules update the plan), we should not 
try the next option.
    */
-  object ResolveReferences extends Rule[LogicalPlan] with 
ColumnResolutionHelper {
+  class ResolveReferences(catalog: SessionCatalog)
+    extends Rule[LogicalPlan] with ColumnResolutionHelper {
+
+    def sessionCatalog: SessionCatalog = catalog

Review Comment:
   do we need this method?



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