digraph G {
0 [labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>"];
subgraph cluster1 {
isCluster="true";
label="WholeStageCodegen (4)\n \nduration: 0 ms";
2 [labelType="html" label="<br><b>Project</b><br><br>"];
3 [labelType="html" label="<b>Generate</b><br><br>number of output rows: 1"];
4 [labelType="html" label="<br><b>Project</b><br><br>"];
5 [labelType="html" label="<b>BroadcastHashJoin</b><br><br>number of output rows: 1"];
12 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 6 ms<br>peak memory: 256.0 KiB<br>number of output rows: 1<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0"];
}
6 [labelType="html" label="<b>BroadcastExchange</b><br><br>time to broadcast: 0 ms<br>time to build: 6 ms<br>time to collect: 30 ms<br>number of output rows: 10<br>data size: 64.0 MiB"];
7 [labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1"];
8 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 10<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>7 ms (0 ms, 0 ms, 0 ms (stage 31.0: task 265))<br>remote merged bytes read: 0.0 B<br>local merged blocks fetched: 0<br>corrupt merged block chunks: 0<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 10<br>local bytes read: 388.0 B<br>fetch wait time: 0 ms<br>remote bytes read: 920.0 B<br>merged fetch fallback count: 0<br>local blocks read: 3<br>remote merged chunks fetched: 0<br>remote blocks read: 7<br>data size total (min, med, max (stageId: taskId))<br>920.0 B (80.0 B, 96.0 B, 104.0 B (stage 31.0: task 265))<br>local merged bytes read: 0.0 B<br>number of partitions: 37<br>remote reqs duration: 3 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>1308.0 B (123.0 B, 132.0 B, 136.0 B (stage 31.0: task 269))"];
subgraph cluster9 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n1.3 s (108 ms, 119 ms, 172 ms (stage 31.0: task 266))";
10 [labelType="html" label="<b>Filter</b><br><br>number of output rows: 10"];
11 [labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 10"];
}
13 [labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 2.4 KiB<br>number of coalesced partitions: 1"];
14 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 25<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>22 ms (0 ms, 0 ms, 2 ms (stage 35.0: task 292))<br>remote merged bytes read: 0.0 B<br>local merged blocks fetched: 0<br>corrupt merged block chunks: 0<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 25<br>local bytes read: 920.0 B<br>fetch wait time: 0 ms<br>remote bytes read: 1380.0 B<br>merged fetch fallback count: 0<br>local blocks read: 10<br>remote merged chunks fetched: 0<br>remote blocks read: 15<br>data size total (min, med, max (stageId: taskId))<br>800.0 B (32.0 B, 32.0 B, 32.0 B (stage 35.0: task 286))<br>local merged bytes read: 0.0 B<br>number of partitions: 37<br>remote reqs duration: 5 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>2.2 KiB (92.0 B, 92.0 B, 92.0 B (stage 35.0: task 286))"];
subgraph cluster15 {
isCluster="true";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n2.7 s (86 ms, 111 ms, 128 ms (stage 35.0: task 283))";
16 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build total (min, med, max (stageId: taskId))<br>2.5 s (83 ms, 99 ms, 115 ms (stage 35.0: task 283))<br>peak memory total (min, med, max (stageId: taskId))<br>6.3 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 35.0: task 286))<br>number of output rows: 25<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0"];
17 [labelType="html" label="<br><b>Project</b><br><br>"];
18 [labelType="html" label="<b>BroadcastHashJoin</b><br><br>number of output rows: 1,174"];
19 [labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 1,196<br>number of input batches: 25"];
}
20 [labelType="html" label="<b>Scan parquet </b><br><br>number of files read: 25<br>scan time total (min, med, max (stageId: taskId))<br>2.5 s (83 ms, 98 ms, 115 ms (stage 35.0: task 283))<br>metadata time: 0 ms<br>size of files read: 83.2 KiB<br>number of output rows: 1,196"];
21 [labelType="html" label="<b>BroadcastExchange</b><br><br>time to broadcast: 1 ms<br>time to build: 21 ms<br>time to collect: 238 ms<br>number of output rows: 1,174<br>data size: 64.1 MiB"];
subgraph cluster22 {
isCluster="true";
label="WholeStageCodegen (2)\n \nduration: 192 ms";
23 [labelType="html" label="<b>Filter</b><br><br>number of output rows: 1,174"];
24 [labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 1,196<br>number of input batches: 1"];
}
25 [labelType="html" label="<b>Scan parquet </b><br><br>number of files read: 1<br>scan time: 189 ms<br>metadata time: 0 ms<br>size of files read: 8.1 KiB<br>number of output rows: 1,196"];
2->0;
3->2;
4->3;
5->4;
6->5;
7->6;
8->7;
10->8;
11->10;
12->5;
13->12;
14->13;
16->14;
17->16;
18->17;
19->18;
20->19;
21->18;
23->21;
24->23;
25->24;
}
26
AdaptiveSparkPlan isFinalPlan=true
Project
Generate explode(demandChannels#810), false, [explodedDemandChannels#822]
Project [demandChannels#810]
BroadcastHashJoin [demandProfile#809], [demandProfile#138], Inner, BuildLeft, false
HashAggregate(keys=[demandProfile#138], functions=[])
WholeStageCodegen (4)
BroadcastExchange HashedRelationBroadcastMode(List(input[0, string, false]),false), [plan_id=1258]
AQEShuffleRead local
Exchange hashpartitioning(demandProfile#809, 37), ENSURE_REQUIREMENTS, [plan_id=1174]
Filter (isnotnull(demandProfile#809) AND ((size(demandChannels#810, true) > 0) AND isnotnull(demandChannels#810)))
Scan ExistingRDD[demandProfile#809,demandChannels#810]
WholeStageCodegen (1)
AQEShuffleRead coalesced
Exchange hashpartitioning(demandProfile#138, 37), ENSURE_REQUIREMENTS, [plan_id=1357]
HashAggregate(keys=[demandProfile#138], functions=[])
Project [demandProfile#138]
BroadcastHashJoin [coalesce(plant#128, ), isnull(plant#128), coalesce(product#127, ), isnull(product#127)], [coalesce(plant#136, ), isnull(plant#136), coalesce(product#135, ), isnull(product#135)], Inner, BuildRight, false
ColumnarToRow
WholeStageCodegen (3)
FileScan parquet [product#127,plant#128] Batched: true, DataFilters: [], Format: Parquet, Location: InMemoryFileIndex(1 paths)[hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20.hanac..., PartitionFilters: [], PushedFilters: [], ReadSchema: struct<product:string,plant:string>
BroadcastExchange HashedRelationBroadcastMode(List(coalesce(input[1, string, true], ), isnull(input[1, string, true]), coalesce(input[0, string, true], ), isnull(input[0, string, true])),false), [plan_id=1200]
Filter isnotnull(demandProfile#138)
ColumnarToRow
WholeStageCodegen (2)
FileScan parquet [product#135,plant#136,demandprofile#138] Batched: true, DataFilters: [isnotnull(demandprofile#138)], Format: Parquet, Location: InMemoryFileIndex(1 paths)[hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20.hanac..., PartitionFilters: [], PushedFilters: [IsNotNull(demandprofile)], ReadSchema: struct<product:string,plant:string,demandprofile:string>