gengliangwang commented on code in PR #50943:
URL: https://github.com/apache/spark/pull/50943#discussion_r2096321469


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala:
##########
@@ -449,14 +449,18 @@ class Analyzer(override val catalogManager: 
CatalogManager) extends RuleExecutor
       ResolveEncodersInUDF),
     // The rewrite rules might move resolved query plan into subquery. Once 
the resolved plan
     // contains ScalaUDF, their encoders won't be resolved if 
`ResolveEncodersInUDF` is not
-    // applied before the rewrite rules. So we need to apply 
`ResolveEncodersInUDF` before the
-    // rewrite rules.
+    // applied before the rewrite rules. So we need to apply the rewrite rules 
after
+    // `ResolveEncodersInUDF`
     Batch("DML rewrite", fixedPoint,

Review Comment:
   Context of why this batch is not in the main resolution batch: 
https://github.com/apache/spark/commit/fab6d83ac70f61925edb6eb0b1fb600fb59c9761



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