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


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala:
##########
@@ -146,15 +153,42 @@ case class AnalysisContext(
     //    lookup a temporary function. And export to the view metadata.
     referredTempFunctionNames: mutable.Set[String] = mutable.Set.empty,
     referredTempVariableNames: Seq[Seq[String]] = Seq.empty,
-    outerPlan: Option[LogicalPlan] = None)
+    outerPlan: Option[LogicalPlan] = None,
+
+    /**
+     * This is a bridge state between this fixed-point [[Analyzer]] and a 
single-pass [[Resolver]].
+     * It's managed ([[setSinglePassResolverBridgeState]] method) by the 
[[HybridAnalyzer]] - the
+     * goal is to preserve it correctly between the fixed-point and 
single-pass runs.
+     * [[AnalysisContext.reset]] simply propagates it to prevent it from being 
reset in
+     * [[Analyzer.execute]].
+     *
+     * See [[AnalyzerBridgeState]] and [[HybridAnalyzer]] for more info.
+     */
+    private var singlePassResolverBridgeState: Option[AnalyzerBridgeState] = 
None) {

Review Comment:
   This only matters to the hybrid mode, right? What's the full workflow?



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