We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77ea002 commit 0311542Copy full SHA for 0311542
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkPlan.scala
@@ -158,9 +158,8 @@ abstract class SparkPlan extends QueryPlan[SparkPlan] with Logging with Serializ
158
* Blocks the thread until all subqueries finish evaluation.
159
*/
160
protected def waitForSubqueries(): Unit = synchronized {
161
- allSubqueries.foreach { e =>
162
- e.awaitSubqueryResult()
163
- }
+ allSubqueries.foreach(_.awaitSubqueryResult())
+ allSubqueries.clear()
164
}
165
166
/**
0 commit comments