viirya commented on code in PR #47380:
URL: https://github.com/apache/spark/pull/47380#discussion_r1681627010


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala:
##########
@@ -2578,6 +2578,8 @@ class Analyzer(override val catalogManager: 
CatalogManager) extends RuleExecutor
         executeSameContext(e.plan)
       }
 
+      checkAnalysis(newSubqueryPlan)

Review Comment:
   Btw, for the MergInto issue we encountered, because the ScalaUDF is put in a 
subquery plan by rewriting MergeInto rule. So moving `ResolveEncodersInUDF` 
before rewriting can fix the issue.
   
   But it doesn't fix the general issue if ScalaUDF is in other subquery plan.
   
   
   



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