File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -53,16 +53,21 @@ abstract class QueryStage extends UnaryExecNode {
53
53
* blocking on one child stage.
54
54
*/
55
55
def executeChildStages (): Unit = {
56
+ val executionId = sqlContext.sparkContext.getLocalProperty(SQLExecution .EXECUTION_ID_KEY )
57
+
56
58
// Handle broadcast stages
57
59
val broadcastQueryStages : Seq [BroadcastQueryStage ] = child.collect {
58
60
case bqs : BroadcastQueryStageInput => bqs.childStage
59
61
}
60
62
val broadcastFutures = broadcastQueryStages.map { queryStage =>
61
- Future { queryStage.prepareBroadcast() }(QueryStage .executionContext)
63
+ Future {
64
+ SQLExecution .withExecutionId(sqlContext.sparkContext, executionId) {
65
+ queryStage.prepareBroadcast()
66
+ }
67
+ }(QueryStage .executionContext)
62
68
}
63
69
64
70
// Submit shuffle stages
65
- val executionId = sqlContext.sparkContext.getLocalProperty(SQLExecution .EXECUTION_ID_KEY )
66
71
val shuffleQueryStages : Seq [ShuffleQueryStage ] = child.collect {
67
72
case sqs : ShuffleQueryStageInput => sqs.childStage
68
73
}
You can’t perform that action at this time.
0 commit comments