digraph G {
subgraph cluster0 {
isCluster="true";
id="cluster0";
label="WholeStageCodegen (5)\n \nduration: total (min, med, max (stageId: taskId))\n170 ms (0 ms, 5 ms, 14 ms (stage 1032855.0: task 2667656))";
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>13 ms (0 ms, 0 ms, 4 ms (stage 1032855.0: task 2667644))<br>peak memory total (min, med, max (stageId: taskId))<br>7.5 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 1032855.0: task 2667654))<br>number of output rows: 1<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#10211170], 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: 1472.0 B<br>merged fetch fallback count: 0<br>local blocks read: 16<br>remote merged chunks fetched: 0<br>remote blocks read: 14<br>data size total (min, med, max (stageId: taskId))<br>960.0 B (32.0 B, 32.0 B, 32.0 B (stage 1032854.0: task 2667554))<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>14 ms (0 ms, 0 ms, 0 ms (stage 1032854.0: task 2667629))<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: 1288.0 B<br>number of partitions: 30<br>remote reqs duration: 1 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 1032854.0: task 2667554))" tooltip="Exchange hashpartitioning(shardId#10211170, 30), ENSURE_REQUIREMENTS, [plan_id=3018724]"];
subgraph cluster3 {
isCluster="true";
id="cluster3";
label="WholeStageCodegen (4)\n \nduration: total (min, med, max (stageId: taskId))\n3.0 s (53 ms, 91 ms, 158 ms (stage 1032854.0: task 2667631))";
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>2.9 s (52 ms, 90 ms, 157 ms (stage 1032854.0: task 2667631))<br>peak memory total (min, med, max (stageId: taskId))<br>7.5 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 1032854.0: task 2667554))<br>number of output rows: 30<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#10211170], functions=[])"];
5 [id="node5" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#10211170]"];
6 [id="node6" labelType="html" label="<b>Generate</b><br><br>number of output rows: 1,919,264" tooltip="Generate explode(kpis#10211245), [shardId#10211170], true, [kpi#10211247]"];
7 [id="node7" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#10211170, coalesce(kpis#10211244, []) AS kpis#10211245]"];
8 [id="node8" labelType="html" label="<b>SortMergeJoin</b><br><br>number of output rows: 239,908<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 1032854.0: task 2667554))" tooltip="SortMergeJoin [shardId#10211239, worklistShardItemId#10211240L], [shardId#10211170, worklistShardItemId#10211179L], 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>927 ms (19 ms, 25 ms, 48 ms (stage 1032854.0: task 2667618))<br>peak memory total (min, med, max (stageId: taskId))<br>454.0 MiB (15.0 MiB, 15.0 MiB, 17.0 MiB (stage 1032854.0: task 2667560))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 1032854.0: task 2667554))" tooltip="Sort [shardId#10211239 ASC NULLS FIRST, worklistShardItemId#10211240L ASC NULLS FIRST], false, 0"];
}
11 [id="node11" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 750,204<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 750,204<br>local bytes read total (min, med, max (stageId: taskId))<br>5.1 MiB (157.9 KiB, 179.4 KiB, 186.7 KiB (stage 1032854.0: task 2667560))<br>merged fetch fallback count: 0<br>local blocks read: 256<br>remote merged chunks fetched: 0<br>remote blocks read: 644<br>data size total (min, med, max (stageId: taskId))<br>412.1 MiB (13.7 MiB, 13.7 MiB, 13.9 MiB (stage 1032852.0: task 2667357))<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>96 ms (2 ms, 2 ms, 15 ms (stage 1032852.0: task 2667443))<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>0 ms (0 ms, 0 ms, 0 ms (stage 1032854.0: task 2667554))<br>remote bytes read total (min, med, max (stageId: taskId))<br>12.8 MiB (418.2 KiB, 433.7 KiB, 453.4 KiB (stage 1032854.0: task 2667641))<br>number of partitions: 30<br>remote reqs duration total (min, med, max (stageId: taskId))<br>433 ms (7 ms, 10 ms, 43 ms (stage 1032854.0: task 2667642))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>17.8 MiB (603.7 KiB, 608.9 KiB, 616.0 KiB (stage 1032852.0: task 2667357))" tooltip="Exchange hashpartitioning(shardId#10211239, worklistShardItemId#10211240L, 30), ENSURE_REQUIREMENTS, [plan_id=3018709]"];
subgraph cluster12 {
isCluster="true";
id="cluster12";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n16.9 s (495 ms, 557 ms, 673 ms (stage 1032852.0: task 2667476))";
tooltip="WholeStageCodegen (1)";
13 [id="node13" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#10211239, worklistShardItemId#10211240L, kpis#10211244]"];
14 [id="node14" labelType="html" label="<b>Filter</b><br><br>number of output rows: 750,204" tooltip="Filter (isnotnull(qty#10211241) AND (isnotnull(shardId#10211239) AND isnotnull(worklistShardItemId#10211240L)))"];
15 [id="node15" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 1,500,408" tooltip="Scan ExistingRDD[shardId#10211239,worklistShardItemId#10211240L,qty#10211241,demandChannel#10211242,demandStream#10211243,kpis#10211244]"];
}
subgraph cluster16 {
isCluster="true";
id="cluster16";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n3.6 s (53 ms, 92 ms, 214 ms (stage 1032854.0: task 2667559))";
tooltip="WholeStageCodegen (3)";
17 [id="node17" labelType="html" label="<b>Sort</b><br><br>sort time total (min, med, max (stageId: taskId))<br>73 ms (1 ms, 2 ms, 4 ms (stage 1032854.0: task 2667558))<br>peak memory total (min, med, max (stageId: taskId))<br>63.8 MiB (2.1 MiB, 2.1 MiB, 2.1 MiB (stage 1032854.0: task 2667554))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 1032854.0: task 2667554))" tooltip="Sort [shardId#10211170 ASC NULLS FIRST, worklistShardItemId#10211179L ASC NULLS FIRST], false, 0"];
}
18 [id="node18" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 119,954<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 119,954<br>local bytes read total (min, med, max (stageId: taskId))<br>398.5 KiB (11.3 KiB, 11.9 KiB, 15.7 KiB (stage 1032854.0: task 2667559))<br>merged fetch fallback count: 0<br>local blocks read: 446<br>remote merged chunks fetched: 0<br>remote blocks read: 454<br>data size total (min, med, max (stageId: taskId))<br>4.6 MiB (147.4 KiB, 155.4 KiB, 165.4 KiB (stage 1032853.0: task 2667391))<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>80 ms (1 ms, 1 ms, 17 ms (stage 1032853.0: task 2667373))<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>1 ms (0 ms, 0 ms, 1 ms (stage 1032854.0: task 2667643))<br>remote bytes read total (min, med, max (stageId: taskId))<br>407.0 KiB (11.2 KiB, 14.8 KiB, 15.9 KiB (stage 1032854.0: task 2667635))<br>number of partitions: 30<br>remote reqs duration total (min, med, max (stageId: taskId))<br>82 ms (1 ms, 2 ms, 10 ms (stage 1032854.0: task 2667557))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>805.5 KiB (25.5 KiB, 26.6 KiB, 28.3 KiB (stage 1032853.0: task 2667405))" tooltip="Exchange hashpartitioning(shardId#10211170, worklistShardItemId#10211179L, 30), ENSURE_REQUIREMENTS, [plan_id=3018697]"];
19 [id="node19" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 119,954" tooltip="InMemoryTableScan [shardId#10211170, worklistShardItemId#10211179L]"];
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#10211170, item#10211178L AS worklistShardItemId#10211179L]"];
22 [id="node22" labelType="html" label="<b>Generate</b><br><br>number of output rows: 0" tooltip="Generate explode(_extract_worklistShardItemId#10211182), [shardId#10211170], false, [item#10211178L]"];
23 [id="node23" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#10211170, items#10211172.worklistShardItemId AS _extract_worklistShardItemId#10211182]"];
24 [id="node24" labelType="html" label="<b>Filter</b><br><br>number of output rows: 0" tooltip="Filter ((isnotnull(shardId#10211170) AND ((shardId#10211170 = 0_3_10000000540) AND (isOptimal#10211174 <=> false))) AND ((size(items#10211172.worklistShardItemId, true) > 0) AND isnotnull(items#10211172.worklistShardItemId)))"];
25 [id="node25" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 0" tooltip="Scan ExistingRDD[shardId#10211170,orderProposalId#10211171L,items#10211172,optimizationGroups#10211173,isOptimal#10211174,lastModified#10211175,optimizationInsights#10211176]"];
}
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;
}