pan3793 commented on a change in pull request #35438:
URL: https://github.com/apache/spark/pull/35438#discussion_r801532365
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/QueryPlan.scala
##########
@@ -427,8 +427,8 @@ abstract class QueryPlan[PlanType <: QueryPlan[PlanType]]
/**
* All the top-level subqueries of the current plan node. Nested subqueries
are not included.
*/
- def subqueries: Seq[PlanType] = {
- expressions.flatMap(_.collect {
+ lazy val subqueries: Seq[PlanType] = {
Review comment:
Thanks for tips, updated.
--
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]