wForget commented on code in PR #43867:
URL: https://github.com/apache/spark/pull/43867#discussion_r1398855143
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala:
##########
@@ -2529,19 +2529,19 @@ class Analyzer(override val catalogManager:
CatalogManager) extends RuleExecutor
*/
private def resolveSubQueries(plan: LogicalPlan, outer: LogicalPlan):
LogicalPlan = {
plan.transformAllExpressionsWithPruning(_.containsPattern(PLAN_EXPRESSION),
ruleId) {
- case s @ ScalarSubquery(sub, _, exprId, _, _, _) if !sub.resolved =>
+ case s @ ScalarSubquery(sub, _, exprId, _, _, _) if !sub.analyzed =>
resolveSubQuery(s, outer)(ScalarSubquery(_, _, exprId))
Review Comment:
> I added `checkAnalysis` in `resolveSubQuery`, is it ok?
It doesn't seem to work, the test cases failed.
--
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]