digraph G {
subgraph cluster0 {
isCluster="true";
id="cluster0";
label="WholeStageCodegen (5)\n \nduration: total (min, med, max (stageId: taskId))\n31 ms (0 ms, 0 ms, 19 ms (stage 305598.0: task 883787))";
tooltip="WholeStageCodegen (5)";
1 [id="node1" 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>4 ms (0 ms, 0 ms, 4 ms (stage 305598.0: task 883787))<br>peak memory total (min, med, max (stageId: taskId))<br>7.5 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 305598.0: task 883756))<br>number of output rows: 1<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#3390109], functions=[])"];
}
2 [id="node2" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 30<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 30<br>local bytes read: 644.0 B<br>merged fetch fallback count: 0<br>local blocks read: 7<br>remote merged chunks fetched: 0<br>remote blocks read: 23<br>data size total (min, med, max (stageId: taskId))<br>960.0 B (32.0 B, 32.0 B, 32.0 B (stage 305597.0: task 883714))<br>local merged bytes read: 0.0 B<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>15 ms (0 ms, 0 ms, 0 ms (stage 305597.0: task 883742))<br>remote merged bytes read: 0.0 B<br>local merged blocks fetched: 0<br>corrupt merged block chunks: 0<br>fetch wait time: 0 ms<br>remote bytes read: 2.1 KiB<br>number of partitions: 30<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.7 KiB (92.0 B, 92.0 B, 92.0 B (stage 305597.0: task 883714))" tooltip="Exchange hashpartitioning(shardId#3390109, 30), ENSURE_REQUIREMENTS, [plan_id=974859]"];
subgraph cluster3 {
isCluster="true";
id="cluster3";
label="WholeStageCodegen (4)\n \nduration: total (min, med, max (stageId: taskId))\n3.4 s (62 ms, 108 ms, 178 ms (stage 305597.0: task 883715))";
tooltip="WholeStageCodegen (4)";
4 [id="node4" 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>3.2 s (61 ms, 107 ms, 165 ms (stage 305597.0: task 883743))<br>peak memory total (min, med, max (stageId: taskId))<br>7.5 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 305597.0: task 883714))<br>number of output rows: 30<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#3390109], functions=[])"];
5 [id="node5" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#3390109]"];
6 [id="node6" labelType="html" label="<b>Generate</b><br><br>number of output rows: 1,407,024" tooltip="Generate explode(kpis#3390444), [shardId#3390109], true, [kpi#3390481]"];
7 [id="node7" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#3390109, coalesce(kpis#3390349, []) AS kpis#3390444]"];
8 [id="node8" labelType="html" label="<b>SortMergeJoin</b><br><br>number of output rows: 175,878<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 305597.0: task 883714))" tooltip="SortMergeJoin [shardId#3390344, worklistShardItemId#3390345L], [shardId#3390109, worklistShardItemId#3390236L], RightOuter"];
}
subgraph cluster9 {
isCluster="true";
id="cluster9";
label="WholeStageCodegen (2)\n \nduration: 0 ms";
tooltip="WholeStageCodegen (2)";
10 [id="node10" labelType="html" label="<b>Sort</b><br><br>sort time total (min, med, max (stageId: taskId))<br>1.1 s (29 ms, 32 ms, 61 ms (stage 305597.0: task 883722))<br>peak memory total (min, med, max (stageId: taskId))<br>570.0 MiB (19.0 MiB, 19.0 MiB, 19.0 MiB (stage 305597.0: task 883714))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 305597.0: task 883714))" tooltip="Sort [shardId#3390344 ASC NULLS FIRST, worklistShardItemId#3390345L ASC NULLS FIRST], false, 0"];
}
11 [id="node11" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 954,474<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 954,474<br>local bytes read total (min, med, max (stageId: taskId))<br>10.3 MiB (284.8 KiB, 371.1 KiB, 378.3 KiB (stage 305597.0: task 883723))<br>merged fetch fallback count: 0<br>local blocks read: 399<br>remote merged chunks fetched: 0<br>remote blocks read: 501<br>data size total (min, med, max (stageId: taskId))<br>524.3 MiB (17.3 MiB, 17.5 MiB, 17.6 MiB (stage 305595.0: task 883617))<br>local merged bytes read: 0.0 B<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>335 ms (2 ms, 2 ms, 244 ms (stage 305595.0: task 883693))<br>remote merged bytes read: 0.0 B<br>local merged blocks fetched: 0<br>corrupt merged block chunks: 0<br>fetch wait time total (min, med, max (stageId: taskId))<br>329 ms (0 ms, 0 ms, 104 ms (stage 305597.0: task 883743))<br>remote bytes read total (min, med, max (stageId: taskId))<br>13.0 MiB (418.0 KiB, 426.4 KiB, 508.6 KiB (stage 305597.0: task 883715))<br>number of partitions: 30<br>remote reqs duration total (min, med, max (stageId: taskId))<br>968 ms (4 ms, 12 ms, 133 ms (stage 305597.0: task 883743))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>23.3 MiB (790.3 KiB, 795.1 KiB, 802.4 KiB (stage 305595.0: task 883617))" tooltip="Exchange hashpartitioning(shardId#3390344, worklistShardItemId#3390345L, 30), ENSURE_REQUIREMENTS, [plan_id=974844]"];
subgraph cluster12 {
isCluster="true";
id="cluster12";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n23.8 s (616 ms, 711 ms, 1.1 s (stage 305595.0: task 883648))";
tooltip="WholeStageCodegen (1)";
13 [id="node13" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#3390344, worklistShardItemId#3390345L, kpis#3390349]"];
14 [id="node14" labelType="html" label="<b>Filter</b><br><br>number of output rows: 954,474" tooltip="Filter (isnotnull(qty#3390346) AND (isnotnull(shardId#3390344) AND isnotnull(worklistShardItemId#3390345L)))"];
15 [id="node15" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 1,908,948" tooltip="Scan ExistingRDD[shardId#3390344,worklistShardItemId#3390345L,qty#3390346,demandChannel#3390347,demandStream#3390348,kpis#3390349]"];
}
subgraph cluster16 {
isCluster="true";
id="cluster16";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n5.5 s (62 ms, 118 ms, 726 ms (stage 305597.0: task 883715))";
tooltip="WholeStageCodegen (3)";
17 [id="node17" labelType="html" label="<b>Sort</b><br><br>sort time total (min, med, max (stageId: taskId))<br>150 ms (1 ms, 1 ms, 24 ms (stage 305597.0: task 883738))<br>peak memory total (min, med, max (stageId: taskId))<br>63.8 MiB (2.1 MiB, 2.1 MiB, 2.1 MiB (stage 305597.0: task 883714))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 305597.0: task 883714))" tooltip="Sort [shardId#3390109 ASC NULLS FIRST, worklistShardItemId#3390236L ASC NULLS FIRST], false, 0"];
}
18 [id="node18" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 87,939<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 87,939<br>local bytes read total (min, med, max (stageId: taskId))<br>276.6 KiB (7.5 KiB, 7.8 KiB, 14.3 KiB (stage 305597.0: task 883715))<br>merged fetch fallback count: 0<br>local blocks read: 467<br>remote merged chunks fetched: 0<br>remote blocks read: 643<br>data size total (min, med, max (stageId: taskId))<br>3.4 MiB (76.5 KiB, 90.9 KiB, 109.0 KiB (stage 305596.0: task 883643))<br>local merged bytes read: 0.0 B<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>60 ms (1 ms, 1 ms, 7 ms (stage 305596.0: task 883629))<br>remote merged bytes read: 0.0 B<br>local merged blocks fetched: 0<br>corrupt merged block chunks: 0<br>fetch wait time total (min, med, max (stageId: taskId))<br>62 ms (0 ms, 0 ms, 24 ms (stage 305597.0: task 883722))<br>remote bytes read total (min, med, max (stageId: taskId))<br>378.0 KiB (7.6 KiB, 14.0 KiB, 14.5 KiB (stage 305597.0: task 883730))<br>number of partitions: 30<br>remote reqs duration total (min, med, max (stageId: taskId))<br>206 ms (3 ms, 4 ms, 31 ms (stage 305597.0: task 883722))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>654.6 KiB (15.3 KiB, 17.4 KiB, 20.2 KiB (stage 305596.0: task 883641))" tooltip="Exchange hashpartitioning(shardId#3390109, worklistShardItemId#3390236L, 30), ENSURE_REQUIREMENTS, [plan_id=974832]"];
19 [id="node19" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 87,939" tooltip="InMemoryTableScan [shardId#3390109, worklistShardItemId#3390236L]"];
subgraph cluster20 {
isCluster="true";
id="cluster20";
label="WholeStageCodegen (1)\n \nduration: 0 ms";
tooltip="WholeStageCodegen (1)";
21 [id="node21" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#3390109, item#3390200L AS worklistShardItemId#3390236L]"];
22 [id="node22" labelType="html" label="<b>Generate</b><br><br>number of output rows: 0" tooltip="Generate explode(_extract_worklistShardItemId#3390280), [shardId#3390109], false, [item#3390200L]"];
23 [id="node23" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#3390109, items#3390111.worklistShardItemId AS _extract_worklistShardItemId#3390280]"];
24 [id="node24" labelType="html" label="<b>Filter</b><br><br>number of output rows: 0" tooltip="Filter ((isnotnull(shardId#3390109) AND ((shardId#3390109 = 0_1_10000000532) AND (isOptimal#3390113 <=> false))) AND ((size(items#3390111.worklistShardItemId, true) > 0) AND isnotnull(items#3390111.worklistShardItemId)))"];
25 [id="node25" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 0" tooltip="Scan ExistingRDD[shardId#3390109,orderProposalId#3390110L,items#3390111,optimizationGroups#3390112,isOptimal#3390113,lastModified#3390114,optimizationInsights#3390115]"];
}
2->1;
4->2;
5->4;
6->5;
7->6;
8->7;
10->8;
11->10;
13->11;
14->13;
15->14;
17->8;
18->17;
19->18;
21->19;
22->21;
23->22;
24->23;
25->24;
}