-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-50983][SQL]Part 1.b Add analyzer support for nested correlated subqueries #50548
base: master
Are you sure you want to change the base?
[SPARK-50983][SQL]Part 1.b Add analyzer support for nested correlated subqueries #50548
Conversation
cc: @agubichev |
"fields" -> plan.inputSet.map(f => toSQLId(f.name)).mkString(", ")) | ||
) | ||
} | ||
res |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to extract nested outer aggs in UpdateOuterReferences
?
case other => | ||
other.resolveChildren(nameParts, conf.resolver).map(wrapOuterReference) | ||
val outerPlans = outerPlanContext.get | ||
val resolvedExpressions = outerPlans.flatMap { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't the resolution be backwards? From the lower outer plan to the upper. As far as I can see, the lower outer plan is the last one.
@@ -25,16 +25,10 @@ import scala.collection.mutable.ArrayBuffer | |||
import scala.jdk.CollectionConverters._ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any chance to add SQL golden file tests just for Analyzed plans for this PR?
What changes were proposed in this pull request?
Add support for nested correlated subqueries.
Why are the changes needed?
Support for nested correlated subqueries.
Does this PR introduce any user-facing change?
How was this patch tested?
Current UT and Suite.
Was this patch authored or co-authored using generative AI tooling?
No