AveryQi115 commented on code in PR #50822:
URL: https://github.com/apache/spark/pull/50822#discussion_r2078787459
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/subquery.scala:
##########
@@ -75,18 +76,35 @@ abstract class PlanExpression[T <: QueryPlan[_]] extends
Expression {
*/
abstract class SubqueryExpression(
plan: LogicalPlan,
- outerAttrs: Seq[Expression],
+ outerAttrs: Seq[(Expression, Boolean)],
Review Comment:
The decorrelation framework needs to distinguish between normal outerAttrs
and outerScopeAttrs because we have some extra operations for outerScopeAttrs.
For this case, both attr2 and att1 should be OuterReference as attr2 can't
be resolved in the SubqueryExpression.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]