imback82 commented on a change in pull request #32032:
URL: https://github.com/apache/spark/pull/32032#discussion_r606017579



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
##########
@@ -3701,6 +3703,16 @@ object CleanupAliases extends Rule[LogicalPlan] with 
AliasHelper {
   }
 }
 
+/**
+ * A rule that calls `TransformationAfterAnalysis.transform` for a plan that 
needs to be transformed
+ * after all the analysis rules are run.
+ */
+object TransformAfterAnalysis extends Rule[LogicalPlan] {
+  override def apply(plan: LogicalPlan): LogicalPlan = plan resolveOperators {

Review comment:
       Technically, this can be just `plan match`, but used `resolveOperators` 
to be future proof. Please let me know if this is an overkill.




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

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