Github user lianhuiwang commented on a diff in the pull request:
https://github.com/apache/spark/pull/14111#discussion_r70563183
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/QueryPlan.scala
---
@@ -263,7 +263,9 @@ abstract class QueryPlan[PlanType <:
QueryPlan[PlanType]] extends TreeNode[PlanT
* All the subqueries of current plan.
*/
def subqueries: Seq[PlanType] = {
- expressions.flatMap(_.collect {case e: SubqueryExpression =>
e.plan.asInstanceOf[PlanType]})
+ expressions.flatMap(_.collect {
+ case e: SubqueryExpression => e
--- End diff --
because we use ReusedScalarSubquery, not Alias to indicate the reused
SubqueryExpression, I think we don't use ExpressionCanonicalizer.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]