digraph G {
0 [id="node0" labelType="html" label="<b>CollectLimit</b><br><br>shuffle records written: 0<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 0<br>local bytes read: 0.0 B<br>merged fetch fallback count: 0<br>local blocks read: 0<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>local merged bytes read: 0.0 B<br>remote reqs duration: 0 ms<br>local merged chunks fetched: 0<br>shuffle write time: 0 ms<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: 0.0 B<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written: 0.0 B" tooltip="CollectLimit 1"];
1 [id="node1" labelType="html" label="<br><b>Union</b><br><br>" tooltip="Union"];
subgraph cluster2 {
isCluster="true";
id="cluster2";
label="WholeStageCodegen (8)\n \nduration: total (min, med, max (stageId: taskId))\n75 ms (0 ms, 6 ms, 8 ms (stage 51790.0: task 138492))";
tooltip="WholeStageCodegen (8)";
3 [id="node3" labelType="html" label="<br><b>LocalLimit</b><br><br>" tooltip="LocalLimit 1"];
4 [id="node4" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project"];
5 [id="node5" labelType="html" label="<b>BroadcastHashJoin</b><br><br>number of output rows: 0" tooltip="BroadcastHashJoin [worklistShardItemId#657622L], [worklistShardItemId#658167L], LeftOuter, BuildRight, (shardId#643168 = 0_1_10000002106), false"];
6 [id="node6" labelType="html" label="<br><b>LocalLimit</b><br><br>" tooltip="LocalLimit 1"];
7 [id="node7" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#643168, insight#657620.worklistShardItemId AS worklistShardItemId#657622L]"];
8 [id="node8" labelType="html" label="<b>Filter</b><br><br>number of output rows: 0" tooltip="Filter NOT insight#657620.internalInsightType IN (OP_CALC_ITEM_ACCEPT_THR_NOT_MET,OP_CALC_ITEM_NEGL_THR_NOT_MET,OP_CALC_ITEM_OPT_MISSING_MD,OP_CALC_LOCKED_QUANTITY_PREVENTS_DISCARDING_INSIGHT,OP_CALC_MIN_NOT_MET)"];
9 [id="node9" labelType="html" label="<b>Generate</b><br><br>number of output rows: 113" tooltip="Generate explode(optimizationInsights#643174), [shardId#643168], false, [insight#657620]"];
10 [id="node10" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#643168, optimizationInsights#643174]"];
11 [id="node11" labelType="html" label="<b>SortMergeJoin</b><br><br>number of output rows: 11<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 51790.0: task 138484))" tooltip="SortMergeJoin [orderProposalId#643169L], [orderProposalId#645037L], Inner"];
}
subgraph cluster12 {
isCluster="true";
id="cluster12";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n449 ms (0 ms, 43 ms, 46 ms (stage 51790.0: task 138492))";
tooltip="WholeStageCodegen (2)";
13 [id="node13" labelType="html" label="<b>Sort</b><br><br>sort time total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 51790.0: task 138484))<br>peak memory total (min, med, max (stageId: taskId))<br>17.3 MiB (64.0 KiB, 64.0 KiB, 2.1 MiB (stage 51790.0: task 138492))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 51790.0: task 138484))" tooltip="Sort [orderProposalId#643169L ASC NULLS FIRST], false, 0"];
}
14 [id="node14" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 11<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 11<br>local bytes read total (min, med, max (stageId: taskId))<br>3.1 KiB (255.0 B, 344.0 B, 881.0 B (stage 51790.0: task 138499))<br>merged fetch fallback count: 0<br>local blocks read: 8<br>remote merged chunks fetched: 0<br>remote blocks read: 3<br>data size total (min, med, max (stageId: taskId))<br>21.5 KiB (240.0 B, 1600.0 B, 9.3 KiB (stage 51785.0: task 138369))<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>3 ms (0 ms, 0 ms, 0 ms (stage 51785.0: task 138418))<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 51790.0: task 138492))<br>remote bytes read total (min, med, max (stageId: taskId))<br>1025.0 B (429.0 B, 596.0 B, 596.0 B (stage 51790.0: task 138493))<br>number of partitions: 20<br>remote reqs duration total (min, med, max (stageId: taskId))<br>1 ms (0 ms, 1 ms, 1 ms (stage 51790.0: task 138500))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>4.1 KiB (255.0 B, 344.0 B, 881.0 B (stage 51785.0: task 138369))" tooltip="Exchange hashpartitioning(orderProposalId#643169L, 20), ENSURE_REQUIREMENTS, [plan_id=268907]"];
subgraph cluster15 {
isCluster="true";
id="cluster15";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n165 ms (0 ms, 9 ms, 11 ms (stage 51785.0: task 138348))";
tooltip="WholeStageCodegen (1)";
16 [id="node16" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#643168, orderProposalId#643169L, optimizationInsights#643174]"];
17 [id="node17" labelType="html" label="<b>Filter</b><br><br>number of output rows: 11" tooltip="Filter ((isnotnull(shardId#643168) AND (shardId#643168 = 0_1_10000002106)) AND ((isnotnull(orderProposalId#643169L) AND (size(optimizationInsights#643174, true) > 0)) AND isnotnull(optimizationInsights#643174)))"];
18 [id="node18" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 59" tooltip="Scan ExistingRDD[shardId#643168,orderProposalId#643169L,items#643170,optimizationGroups#643171,isOptimal#643172,lastModified#643173,optimizationInsights#643174]"];
}
subgraph cluster19 {
isCluster="true";
id="cluster19";
label="WholeStageCodegen (6)\n \nduration: total (min, med, max (stageId: taskId))\n89 ms (1 ms, 43 ms, 45 ms (stage 51790.0: task 138489))";
tooltip="WholeStageCodegen (6)";
20 [id="node20" labelType="html" label="<b>Sort</b><br><br>sort time total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 51790.0: task 138492))<br>peak memory total (min, med, max (stageId: taskId))<br>16.5 MiB (2.1 MiB, 2.1 MiB, 2.1 MiB (stage 51790.0: task 138492))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 51790.0: task 138492))" tooltip="Sort [orderProposalId#645037L ASC NULLS FIRST], false, 0"];
21 [id="node21" 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>0 ms (0 ms, 0 ms, 0 ms (stage 51790.0: task 138492))<br>peak memory total (min, med, max (stageId: taskId))<br>2.0 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 51790.0: task 138492))<br>number of output rows: 29<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[orderProposalId#645037L], functions=[])"];
}
22 [id="node22" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 59<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 29<br>local bytes read total (min, med, max (stageId: taskId))<br>2.3 KiB (75.0 B, 75.0 B, 236.0 B (stage 51790.0: task 138503))<br>merged fetch fallback count: 0<br>local blocks read: 31<br>remote merged chunks fetched: 0<br>remote blocks read: 21<br>data size total (min, med, max (stageId: taskId))<br>944.0 B (16.0 B, 48.0 B, 96.0 B (stage 51789.0: task 138424))<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>9 ms (0 ms, 0 ms, 0 ms (stage 51789.0: task 138465))<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 51790.0: task 138492))<br>remote bytes read total (min, med, max (stageId: taskId))<br>1585.0 B (75.0 B, 150.0 B, 375.0 B (stage 51790.0: task 138492))<br>number of partitions: 20<br>remote reqs duration total (min, med, max (stageId: taskId))<br>5 ms (0 ms, 1 ms, 1 ms (stage 51790.0: task 138484))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>4.2 KiB (75.0 B, 224.0 B, 450.0 B (stage 51789.0: task 138424))" tooltip="Exchange hashpartitioning(orderProposalId#645037L, 20), ENSURE_REQUIREMENTS, [plan_id=268927]"];
subgraph cluster23 {
isCluster="true";
id="cluster23";
label="WholeStageCodegen (5)\n \nduration: total (min, med, max (stageId: taskId))\n210 ms (0 ms, 10 ms, 37 ms (stage 51789.0: task 138327))";
tooltip="WholeStageCodegen (5)";
24 [id="node24" 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>179 ms (0 ms, 8 ms, 32 ms (stage 51789.0: task 138327))<br>peak memory total (min, med, max (stageId: taskId))<br>5.0 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 51789.0: task 138327))<br>number of output rows: 59<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[orderProposalId#645037L], functions=[])"];
25 [id="node25" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [orderProposalId#645037L]"];
26 [id="node26" labelType="html" label="<b>BroadcastHashJoin</b><br><br>number of output rows: 980" tooltip="BroadcastHashJoin [worklistShardItemId#643816L], [worklistShardItemId#645060L], Inner, BuildRight, false"];
27 [id="node27" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [item#643815L AS worklistShardItemId#643816L]"];
28 [id="node28" labelType="html" label="<b>Generate</b><br><br>number of output rows: 980" tooltip="Generate explode(_extract_worklistShardItemId#660180), false, [item#643815L]"];
29 [id="node29" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [items#657614.worklistShardItemId AS _extract_worklistShardItemId#660180]"];
30 [id="node30" labelType="html" label="<b>Filter</b><br><br>number of output rows: 59" tooltip="Filter ((isnotnull(shardId#657612) AND (shardId#657612 = 0_1_10000002106)) AND ((size(items#657614.worklistShardItemId, true) > 0) AND isnotnull(items#657614.worklistShardItemId)))"];
31 [id="node31" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 59" tooltip="Scan ExistingRDD[shardId#657612,orderProposalId#657613L,items#657614,optimizationGroups#657615,isOptimal#657616,lastModified#657617,optimizationInsights#657618]"];
}
32 [id="node32" labelType="html" label="<b>BroadcastExchange</b><br><br>time to broadcast: 0 ms<br>time to build: 1 ms<br>time to collect: 1.3 s<br>number of output rows: 980<br>data size: 1056.0 KiB" tooltip="BroadcastExchange HashedRelationBroadcastMode(List(input[0, bigint, true]),false), [plan_id=268921]"];
subgraph cluster33 {
isCluster="true";
id="cluster33";
label="WholeStageCodegen (4)\n \nduration: total (min, med, max (stageId: taskId))\n34 ms (1 ms, 2 ms, 2 ms (stage 51516.0: task 138153))";
tooltip="WholeStageCodegen (4)";
34 [id="node34" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [worklistShardItemId#645060L, orderProposalId#645037L]"];
}
35 [id="node35" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 980<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 980<br>local bytes read total (min, med, max (stageId: taskId))<br>23.4 KiB (851.0 B, 1215.0 B, 1430.0 B (stage 51516.0: task 138166))<br>merged fetch fallback count: 0<br>local blocks read: 230<br>remote merged chunks fetched: 0<br>remote blocks read: 206<br>data size total (min, med, max (stageId: taskId))<br>23.0 KiB (648.0 B, 960.0 B, 1152.0 B (stage 51515.0: task 137822))<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>24 ms (0 ms, 0 ms, 1 ms (stage 51515.0: task 138132))<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 51516.0: task 138152))<br>remote bytes read total (min, med, max (stageId: taskId))<br>21.3 KiB (758.0 B, 1069.0 B, 1543.0 B (stage 51516.0: task 138164))<br>number of partitions: 20<br>remote reqs duration total (min, med, max (stageId: taskId))<br>13 ms (0 ms, 1 ms, 1 ms (stage 51516.0: task 138152))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>44.6 KiB (1511.0 B, 1790.0 B, 2.1 KiB (stage 51515.0: task 137822))" tooltip="Exchange hashpartitioning(worklistShardItemId#645060L, 20), REPARTITION_BY_NUM, [plan_id=268917]"];
subgraph cluster36 {
isCluster="true";
id="cluster36";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n2.6 s (88 ms, 100 ms, 132 ms (stage 51515.0: task 137823))";
tooltip="WholeStageCodegen (3)";
37 [id="node37" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [orderProposalId#645037L, worklistShardItemId#645060L]"];
38 [id="node38" labelType="html" label="<b>Filter</b><br><br>number of output rows: 980" tooltip="Filter ((isnotnull(worklistShardItemId#645060L) AND NOT (isFallbackOrderOnly#645054 <=> true)) AND isnotnull(orderProposalId#645037L))"];
39 [id="node39" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 980<br>number of input batches: 25" tooltip="ColumnarToRow"];
}
40 [id="node40" 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 (85 ms, 98 ms, 130 ms (stage 51515.0: task 137823))<br>dynamic partition pruning time: 0 ms<br>metadata time: 0 ms<br>size of files read: 674.1 KiB<br>number of output rows: 980<br>number of partitions read: 1" tooltip="FileScan parquet [orderProposalId#645037L,isFallbackOrderOnly#645054,worklistShardItemId#645060L,shardId#645081,sequenceId#645059] Batched: true, DataFilters: [isnotnull(worklistShardItemId#645060L), NOT (isFallbackOrderOnly#645054 <=> true), isnotnull(ord..., Format: Parquet, Location: PreparedDeltaFileIndex(1 paths)[hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20...., PartitionFilters: [isnotnull(shardId#645081), isnotnull(sequenceId#645059), (shardId#645081 = 0_1_10000002106), (se..., PushedFilters: [IsNotNull(worklistShardItemId), Not(EqualNullSafe(isFallbackOrderOnly,true)), IsNotNull(orderPro..., ReadSchema: struct<orderProposalId:bigint,isFallbackOrderOnly:boolean,worklistShardItemId:bigint>"];
41 [id="node41" labelType="html" label="<b>BroadcastExchange</b><br><br>time to broadcast: 0 ms<br>time to build: 2 ms<br>time to collect: 1.0 s<br>number of output rows: 980<br>data size: 1056.0 KiB" tooltip="BroadcastExchange HashedRelationBroadcastMode(List(input[0, bigint, true]),false), [plan_id=268945]"];
42 [id="node42" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 980<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 980<br>local bytes read total (min, med, max (stageId: taskId))<br>30.6 KiB (1356.0 B, 1568.0 B, 1778.0 B (stage 51514.0: task 138066))<br>merged fetch fallback count: 0<br>local blocks read: 364<br>remote merged chunks fetched: 0<br>remote blocks read: 72<br>data size total (min, med, max (stageId: taskId))<br>15.3 KiB (432.0 B, 640.0 B, 768.0 B (stage 51513.0: task 137801))<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>24 ms (0 ms, 0 ms, 1 ms (stage 51513.0: task 137778))<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 51514.0: task 138053))<br>remote bytes read total (min, med, max (stageId: taskId))<br>6.1 KiB (193.0 B, 334.0 B, 411.0 B (stage 51514.0: task 138080))<br>number of partitions: 20<br>remote reqs duration total (min, med, max (stageId: taskId))<br>3 ms (0 ms, 0 ms, 1 ms (stage 51514.0: task 138053))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>36.7 KiB (1259.0 B, 1490.0 B, 1741.0 B (stage 51513.0: task 137801))" tooltip="Exchange hashpartitioning(worklistShardItemId#658167L, 20), REPARTITION_BY_NUM, [plan_id=268944]"];
subgraph cluster43 {
isCluster="true";
id="cluster43";
label="WholeStageCodegen (7)\n \nduration: total (min, med, max (stageId: taskId))\n2.1 s (72 ms, 81 ms, 108 ms (stage 51513.0: task 137801))";
tooltip="WholeStageCodegen (7)";
44 [id="node44" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [worklistShardItemId#658167L]"];
45 [id="node45" labelType="html" label="<b>Filter</b><br><br>number of output rows: 980" tooltip="Filter isnotnull(worklistShardItemId#658167L)"];
46 [id="node46" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 980<br>number of input batches: 25" tooltip="ColumnarToRow"];
}
47 [id="node47" 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.0 s (70 ms, 78 ms, 104 ms (stage 51513.0: task 137801))<br>dynamic partition pruning time: 0 ms<br>metadata time: 0 ms<br>size of files read: 674.1 KiB<br>number of output rows: 980<br>number of partitions read: 1" tooltip="FileScan parquet [worklistShardItemId#658167L,shardId#658188,sequenceId#658166] Batched: true, DataFilters: [isnotnull(worklistShardItemId#658167L)], Format: Parquet, Location: PreparedDeltaFileIndex(1 paths)[hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20...., PartitionFilters: [isnotnull(shardId#658188), isnotnull(sequenceId#658166), (shardId#658188 = 0_1_10000002106), (se..., PushedFilters: [IsNotNull(worklistShardItemId)], ReadSchema: struct<worklistShardItemId:bigint>"];
subgraph cluster48 {
isCluster="true";
id="cluster48";
label="WholeStageCodegen (17)\n \nduration: total (min, med, max (stageId: taskId))\n345 ms (4 ms, 5 ms, 54 ms (stage 51790.0: task 138505))";
tooltip="WholeStageCodegen (17)";
49 [id="node49" labelType="html" label="<br><b>LocalLimit</b><br><br>" tooltip="LocalLimit 1"];
50 [id="node50" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project"];
}
51 [id="node51" labelType="html" label="<b>BroadcastNestedLoopJoin</b><br><br>number of output rows: 0" tooltip="BroadcastNestedLoopJoin BuildRight, Cross, ((CASE WHEN (isnull(element_at(filter(prodLocSpecificKpis#647201, lambdafunction((lambda x_1708#658200.label = OutOfStockProbability), lambda x_1708#658200, false)), 1, None, false).value) OR isnull(cast(element_at(filter(_extract_settings#660184, lambdafunction((lambda x_1709#658201.name = OOS_PROBABILITY_THRESHOLD), lambda x_1709#658201, false)), 1, None, false).value as double))) THEN false ELSE (element_at(filter(prodLocSpecificKpis#647201, lambdafunction((lambda x_1708#658202.label = OutOfStockProbability), lambda x_1708#658202, false)), 1, None, false).value >= cast(element_at(filter(_extract_settings#660184, lambdafunction((lambda x_1709#658203.name = OOS_PROBABILITY_THRESHOLD), lambda x_1709#658203, false)), 1, None, false).value as double)) END AND CASE WHEN isnull(element_at(filter(prodLocSpecificKpis#647201, lambdafunction((lambda x_1710#658204.label = InitialStockQty), lambda x_1710#658204, false)), 1, None, false).value) THEN false ELSE (element_at(filter(prodLocSpecificKpis#647201, lambdafunction((lambda x_1710#658206.label = InitialStockQty), lambda x_1710#658206, false)), 1, None, false).value > CASE WHEN cast(element_at(filter(_extract_settings#660184, lambdafunction((lambda x_1711#658207.name = CURRENT_STOCK_ABOVE_ZERO), lambda x_1711#658207, false)), 1, None, false).value as boolean) THEN 0.0 ELSE -Infinity END) END) AND CASE WHEN (CASE WHEN isnull(orderDateTime#658449) THEN true ELSE isnull((cast((unix_timestamp(orderDateTime#658449, yyyy-MM-dd HH:mm:ss, Some(UTC), false) - 1786354206) as double) / 3600.0)) END OR isnull(cast(element_at(filter(_extract_settings#660184, lambdafunction((lambda x_1712#658208.name = OFFSET_CURRENT_ORDER_DATE), lambda x_1712#658208, false)), 1, None, false).value as double))) THEN false ELSE (CASE WHEN isnull(orderDateTime#658449) THEN null ELSE (cast((unix_timestamp(orderDateTime#658449, yyyy-MM-dd HH:mm:ss, Some(UTC), false) - 1786354206) as double) / 3600.0) END >= cast(element_at(filter(_extract_settings#660184, lambdafunction((lambda x_1712#658209.name = OFFSET_CURRENT_ORDER_DATE), lambda x_1712#658209, false)), 1, None, false).value as double)) END)"];
subgraph cluster52 {
isCluster="true";
id="cluster52";
label="WholeStageCodegen (15)\n \nduration: total (min, med, max (stageId: taskId))\n592 ms (5 ms, 6 ms, 101 ms (stage 51790.0: task 138505))";
tooltip="WholeStageCodegen (15)";
53 [id="node53" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [orderDateTime#658449, coalesce(prodLocSpecificKpis#647200, []) AS prodLocSpecificKpis#647201]"];
54 [id="node54" labelType="html" label="<b>SortMergeJoin</b><br><br>number of output rows: 980<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 51790.0: task 138505))" tooltip="SortMergeJoin [shardId#658383, worklistShardItemId#658391L], [shardId#647194, worklistShardItemId#647195L], LeftOuter"];
}
subgraph cluster55 {
isCluster="true";
id="cluster55";
label="WholeStageCodegen (12)\n \nduration: total (min, med, max (stageId: taskId))\n1.1 s (6 ms, 7 ms, 192 ms (stage 51790.0: task 138505))";
tooltip="WholeStageCodegen (12)";
56 [id="node56" labelType="html" label="<b>Sort</b><br><br>sort time total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 51790.0: task 138505))<br>peak memory total (min, med, max (stageId: taskId))<br>41.3 MiB (2.1 MiB, 2.1 MiB, 2.1 MiB (stage 51790.0: task 138505))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 51790.0: task 138505))" tooltip="Sort [shardId#658383 ASC NULLS FIRST, worklistShardItemId#658391L ASC NULLS FIRST], false, 0"];
}
57 [id="node57" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 980<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 980<br>local bytes read total (min, med, max (stageId: taskId))<br>37.1 KiB (1389.0 B, 1929.0 B, 2.3 KiB (stage 51790.0: task 138519))<br>merged fetch fallback count: 0<br>local blocks read: 290<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size total (min, med, max (stageId: taskId))<br>45.9 KiB (48.0 B, 2.2 KiB, 6.6 KiB (stage 51787.0: task 138439))<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>19 ms (0 ms, 0 ms, 1 ms (stage 51787.0: task 138454))<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 51790.0: task 138505))<br>remote bytes read: 0.0 B<br>number of partitions: 20<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>37.1 KiB (104.0 B, 2043.0 B, 3.2 KiB (stage 51787.0: task 138439))" tooltip="Exchange hashpartitioning(shardId#658383, worklistShardItemId#658391L, 20), ENSURE_REQUIREMENTS, [plan_id=268966]"];
subgraph cluster58 {
isCluster="true";
id="cluster58";
label="WholeStageCodegen (11)\n \nduration: total (min, med, max (stageId: taskId))\n230 ms (0 ms, 10 ms, 40 ms (stage 51787.0: task 138324))";
tooltip="WholeStageCodegen (11)";
59 [id="node59" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#658383, worklistShardItemId#658391L, orderDateTime#658449]"];
60 [id="node60" labelType="html" label="<b>Filter</b><br><br>number of output rows: 980" tooltip="Filter NOT (isFallbackOrderOnly#658456 <=> true)"];
61 [id="node61" labelType="html" label="<b>BroadcastHashJoin</b><br><br>number of output rows: 980" tooltip="BroadcastHashJoin [worklistShardItemId#658391L], [worklistShardItemId#658462L], LeftOuter, BuildRight, (shardId#658383 = 0_1_10000002106), false"];
62 [id="node62" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#658383, item#658390L AS worklistShardItemId#658391L]"];
63 [id="node63" labelType="html" label="<b>Generate</b><br><br>number of output rows: 980" tooltip="Generate explode(_extract_worklistShardItemId#660183), [shardId#658383], false, [item#658390L]"];
64 [id="node64" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#658383, items#658385.worklistShardItemId AS _extract_worklistShardItemId#660183]"];
65 [id="node65" labelType="html" label="<b>Filter</b><br><br>number of output rows: 59" tooltip="Filter ((isnotnull(shardId#658383) AND (shardId#658383 = 0_1_10000002106)) AND ((size(items#658385.worklistShardItemId, true) > 0) AND isnotnull(items#658385.worklistShardItemId)))"];
66 [id="node66" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 59" tooltip="Scan ExistingRDD[shardId#658383,orderProposalId#658384L,items#658385,optimizationGroups#658386,isOptimal#658387,lastModified#658388,optimizationInsights#658389]"];
}
67 [id="node67" labelType="html" label="<b>BroadcastExchange</b><br><br>time to broadcast: 0 ms<br>time to build: 0 ms<br>time to collect: 1.6 s<br>number of output rows: 980<br>data size: 1056.0 KiB" tooltip="BroadcastExchange HashedRelationBroadcastMode(List(input[0, bigint, true]),false), [plan_id=268960]"];
subgraph cluster68 {
isCluster="true";
id="cluster68";
label="WholeStageCodegen (10)\n \nduration: total (min, med, max (stageId: taskId))\n45 ms (2 ms, 2 ms, 3 ms (stage 51525.0: task 138220))";
tooltip="WholeStageCodegen (10)";
69 [id="node69" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [worklistShardItemId#658462L, orderDateTime#658449, isFallbackOrderOnly#658456]"];
}
70 [id="node70" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 980<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 980<br>local bytes read total (min, med, max (stageId: taskId))<br>21.5 KiB (609.0 B, 1276.0 B, 1613.0 B (stage 51525.0: task 138225))<br>merged fetch fallback count: 0<br>local blocks read: 220<br>remote merged chunks fetched: 0<br>remote blocks read: 216<br>data size total (min, med, max (stageId: taskId))<br>30.6 KiB (864.0 B, 1280.0 B, 1536.0 B (stage 51524.0: task 138027))<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>25 ms (0 ms, 0 ms, 1 ms (stage 51524.0: task 138133))<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 51525.0: task 138220))<br>remote bytes read total (min, med, max (stageId: taskId))<br>20.9 KiB (680.0 B, 1065.0 B, 1561.0 B (stage 51525.0: task 138221))<br>number of partitions: 20<br>remote reqs duration total (min, med, max (stageId: taskId))<br>20 ms (1 ms, 1 ms, 1 ms (stage 51525.0: task 138220))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>42.4 KiB (1477.0 B, 1723.0 B, 1994.0 B (stage 51524.0: task 138027))" tooltip="Exchange hashpartitioning(worklistShardItemId#658462L, 20), REPARTITION_BY_NUM, [plan_id=268956]"];
subgraph cluster71 {
isCluster="true";
id="cluster71";
label="WholeStageCodegen (9)\n \nduration: total (min, med, max (stageId: taskId))\n2.2 s (77 ms, 89 ms, 113 ms (stage 51524.0: task 138068))";
tooltip="WholeStageCodegen (9)";
72 [id="node72" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [orderDateTime#658449, isFallbackOrderOnly#658456, worklistShardItemId#658462L]"];
73 [id="node73" labelType="html" label="<b>Filter</b><br><br>number of output rows: 980" tooltip="Filter isnotnull(worklistShardItemId#658462L)"];
74 [id="node74" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 980<br>number of input batches: 25" tooltip="ColumnarToRow"];
}
75 [id="node75" 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.2 s (75 ms, 86 ms, 110 ms (stage 51524.0: task 138068))<br>dynamic partition pruning time: 0 ms<br>metadata time: 589 ms<br>size of files read: 674.1 KiB<br>number of output rows: 980<br>number of partitions read: 1" tooltip="FileScan parquet [orderDateTime#658449,isFallbackOrderOnly#658456,worklistShardItemId#658462L,shardId#658483,sequenceId#658461] Batched: true, DataFilters: [isnotnull(worklistShardItemId#658462L)], Format: Parquet, Location: PreparedDeltaFileIndex(1 paths)[hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20...., PartitionFilters: [isnotnull(shardId#658483), isnotnull(sequenceId#658461), (shardId#658483 = 0_1_10000002106), (se..., PushedFilters: [IsNotNull(worklistShardItemId)], ReadSchema: struct<orderDateTime:timestamp,isFallbackOrderOnly:boolean,worklistShardItemId:bigint>"];
subgraph cluster76 {
isCluster="true";
id="cluster76";
label="WholeStageCodegen (14)\n \nduration: total (min, med, max (stageId: taskId))\n760 ms (5 ms, 6 ms, 134 ms (stage 51790.0: task 138505))";
tooltip="WholeStageCodegen (14)";
77 [id="node77" labelType="html" label="<b>Sort</b><br><br>sort time total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 51790.0: task 138505))<br>peak memory total (min, med, max (stageId: taskId))<br>41.3 MiB (2.1 MiB, 2.1 MiB, 2.1 MiB (stage 51790.0: task 138505))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 51790.0: task 138505))" tooltip="Sort [shardId#647194 ASC NULLS FIRST, worklistShardItemId#647195L ASC NULLS FIRST], false, 0"];
}
78 [id="node78" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 980<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 980<br>local bytes read total (min, med, max (stageId: taskId))<br>136.2 KiB (5.9 KiB, 6.8 KiB, 8.9 KiB (stage 51790.0: task 138530))<br>merged fetch fallback count: 0<br>local blocks read: 179<br>remote merged chunks fetched: 0<br>remote blocks read: 195<br>data size total (min, med, max (stageId: taskId))<br>1025.9 KiB (45.0 KiB, 51.3 KiB, 59.7 KiB (stage 51784.0: task 138440))<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>23 ms (0 ms, 1 ms, 1 ms (stage 51784.0: task 138405))<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 51790.0: task 138505))<br>remote bytes read total (min, med, max (stageId: taskId))<br>144.2 KiB (5.9 KiB, 7.2 KiB, 8.7 KiB (stage 51790.0: task 138524))<br>number of partitions: 20<br>remote reqs duration total (min, med, max (stageId: taskId))<br>15 ms (0 ms, 1 ms, 1 ms (stage 51790.0: task 138505))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>280.4 KiB (12.9 KiB, 14.1 KiB, 15.1 KiB (stage 51784.0: task 138425))" tooltip="Exchange hashpartitioning(shardId#647194, worklistShardItemId#647195L, 20), ENSURE_REQUIREMENTS, [plan_id=268972]"];
subgraph cluster79 {
isCluster="true";
id="cluster79";
label="WholeStageCodegen (13)\n \nduration: total (min, med, max (stageId: taskId))\n208 ms (6 ms, 8 ms, 59 ms (stage 51784.0: task 138321))";
tooltip="WholeStageCodegen (13)";
80 [id="node80" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#647194, worklistShardItemId#647195L, coalesce(kpis#647199, []) AS prodLocSpecificKpis#647200]"];
81 [id="node81" labelType="html" label="<b>Filter</b><br><br>number of output rows: 980" tooltip="Filter (((isnull(qty#647196) AND isnull(demandChannel#647197)) AND isnull(demandStream#647198)) AND (((shardId#647194 = 0_1_10000002106) AND isnotnull(shardId#647194)) AND isnotnull(worklistShardItemId#647195L)))"];
82 [id="node82" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 4,129" tooltip="Scan ExistingRDD[shardId#647194,worklistShardItemId#647195L,qty#647196,demandChannel#647197,demandStream#647198,kpis#647199]"];
}
83 [id="node83" labelType="html" label="<b>BroadcastExchange</b><br><br>time to broadcast: 0 ms<br>time to build: 0 ms<br>time to collect: 302 ms<br>number of output rows: 0<br>data size: 0.0 B" tooltip="BroadcastExchange IdentityBroadcastMode, [plan_id=268986]"];
84 [id="node84" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 0<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 0<br>local bytes read: 0.0 B<br>merged fetch fallback count: 0<br>local blocks read: 0<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 0.0 B<br>local merged bytes read: 0.0 B<br>local merged chunks fetched: 0<br>shuffle write time: 0 ms<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: 0.0 B<br>number of partitions: 20<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written: 0.0 B" tooltip="Exchange RoundRobinPartitioning(20), REPARTITION_BY_NUM, [plan_id=268985]"];
subgraph cluster85 {
isCluster="true";
id="cluster85";
label="WholeStageCodegen (16)\n \nduration: 87 ms";
tooltip="WholeStageCodegen (16)";
86 [id="node86" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [insightConfigurations#658195[POTENTIAL_OOS_STOCK_PERIOD].settings AS _extract_settings#660184]"];
87 [id="node87" labelType="html" label="<b>Filter</b><br><br>number of output rows: 0" tooltip="Filter (isnotnull(insightConfigurations#658195) AND isnotnull(insightConfigurations#658195[POTENTIAL_OOS_STOCK_PERIOD]))"];
88 [id="node88" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 1<br>number of input batches: 1" tooltip="ColumnarToRow"];
}
89 [id="node89" labelType="html" label="<b>Scan parquet </b><br><br>number of files read: 1<br>scan time: 85 ms<br>dynamic partition pruning time: 0 ms<br>metadata time: 0 ms<br>size of files read: 4.6 KiB<br>number of output rows: 1<br>number of partitions read: 1" tooltip="FileScan parquet [insightConfigurations#658195,shardId#658196] Batched: true, DataFilters: [isnotnull(insightConfigurations#658195), isnotnull(insightConfigurations#658195[POTENTIAL_OOS_ST..., Format: Parquet, Location: PreparedDeltaFileIndex(1 paths)[hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20...., PartitionFilters: [isnotnull(shardId#658196), (shardId#658196 = 0_1_10000002106)], PushedFilters: [IsNotNull(insightConfigurations)], ReadSchema: struct<insightConfigurations:map<string,struct<configurationVersion:string,name:string,settings:a..."];
subgraph cluster90 {
isCluster="true";
id="cluster90";
label="WholeStageCodegen (29)\n \nduration: total (min, med, max (stageId: taskId))\n378 ms (3 ms, 4 ms, 65 ms (stage 51790.0: task 138509))";
tooltip="WholeStageCodegen (29)";
91 [id="node91" labelType="html" label="<br><b>LocalLimit</b><br><br>" tooltip="LocalLimit 1"];
92 [id="node92" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project"];
}
93 [id="node93" labelType="html" label="<b>BroadcastNestedLoopJoin</b><br><br>number of output rows: 0" tooltip="BroadcastNestedLoopJoin BuildRight, Cross, CASE WHEN (isnull(element_at(filter(element_at(quantityKpis#658372, qty#658256, None, false), lambdafunction((lambda x_1714#658226.label = OutOfStockProbability), lambda x_1714#658226, false)), 1, None, false).value) OR isnull(cast(element_at(filter(_extract_settings#660186, lambdafunction((lambda x_1715#658227.name = OOS_PROBABILITY_THRESHOLD), lambda x_1715#658227, false)), 1, None, false).value as double))) THEN false ELSE (element_at(filter(element_at(quantityKpis#658372, qty#658256, None, false), lambdafunction((lambda x_1714#658228.label = OutOfStockProbability), lambda x_1714#658228, false)), 1, None, false).value >= cast(element_at(filter(_extract_settings#660186, lambdafunction((lambda x_1715#658229.name = OOS_PROBABILITY_THRESHOLD), lambda x_1715#658229, false)), 1, None, false).value as double)) END"];
subgraph cluster94 {
isCluster="true";
id="cluster94";
label="WholeStageCodegen (27)\n \nduration: total (min, med, max (stageId: taskId))\n620 ms (4 ms, 5 ms, 111 ms (stage 51790.0: task 138509))";
tooltip="WholeStageCodegen (27)";
95 [id="node95" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [qty#658256, coalesce(quantityKpis#658371, map(keys: [], values: [])) AS quantityKpis#658372]"];
96 [id="node96" labelType="html" label="<b>SortMergeJoin</b><br><br>number of output rows: 980<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 51790.0: task 138509))" tooltip="SortMergeJoin [shardId#658246, worklistShardItemId#658254L], [shardId#658365, worklistShardItemId#658366L], LeftOuter"];
}
subgraph cluster97 {
isCluster="true";
id="cluster97";
label="WholeStageCodegen (24)\n \nduration: total (min, med, max (stageId: taskId))\n1.0 s (7 ms, 9 ms, 176 ms (stage 51790.0: task 138509))";
tooltip="WholeStageCodegen (24)";
98 [id="node98" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#658246, worklistShardItemId#658254L, qty#658256]"];
99 [id="node99" labelType="html" label="<b>SortMergeJoin</b><br><br>number of output rows: 980<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 51790.0: task 138509))" tooltip="SortMergeJoin [shardId#658246, worklistShardItemId#658254L], [shardId#658349, worklistShardItemId#658350L], LeftOuter"];
}
subgraph cluster100 {
isCluster="true";
id="cluster100";
label="WholeStageCodegen (21)\n \nduration: total (min, med, max (stageId: taskId))\n1.3 s (8 ms, 10 ms, 239 ms (stage 51790.0: task 138509))";
tooltip="WholeStageCodegen (21)";
101 [id="node101" labelType="html" label="<b>Sort</b><br><br>sort time total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 51790.0: task 138509))<br>peak memory total (min, med, max (stageId: taskId))<br>41.3 MiB (2.1 MiB, 2.1 MiB, 2.1 MiB (stage 51790.0: task 138509))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 51790.0: task 138509))" tooltip="Sort [shardId#658246 ASC NULLS FIRST, worklistShardItemId#658254L ASC NULLS FIRST], false, 0"];
}
102 [id="node102" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 980<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 980<br>local bytes read total (min, med, max (stageId: taskId))<br>32.9 KiB (1352.0 B, 1714.0 B, 2034.0 B (stage 51790.0: task 138534))<br>merged fetch fallback count: 0<br>local blocks read: 264<br>remote merged chunks fetched: 0<br>remote blocks read: 26<br>data size total (min, med, max (stageId: taskId))<br>45.9 KiB (48.0 B, 2.2 KiB, 6.6 KiB (stage 51788.0: task 138441))<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>17 ms (0 ms, 0 ms, 1 ms (stage 51788.0: task 138458))<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 51790.0: task 138509))<br>remote bytes read total (min, med, max (stageId: taskId))<br>2.9 KiB (100.0 B, 212.0 B, 247.0 B (stage 51790.0: task 138509))<br>number of partitions: 20<br>remote reqs duration total (min, med, max (stageId: taskId))<br>5 ms (0 ms, 0 ms, 1 ms (stage 51790.0: task 138504))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>35.8 KiB (100.0 B, 1968.0 B, 3.2 KiB (stage 51788.0: task 138441))" tooltip="Exchange hashpartitioning(shardId#658246, worklistShardItemId#658254L, 20), ENSURE_REQUIREMENTS, [plan_id=269007]"];
subgraph cluster103 {
isCluster="true";
id="cluster103";
label="WholeStageCodegen (20)\n \nduration: total (min, med, max (stageId: taskId))\n199 ms (0 ms, 10 ms, 17 ms (stage 51788.0: task 138326))";
tooltip="WholeStageCodegen (20)";
104 [id="node104" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#658246, worklistShardItemId#658254L, qty#658256]"];
105 [id="node105" labelType="html" label="<b>Filter</b><br><br>number of output rows: 980" tooltip="Filter NOT (isFallbackOrderOnly#658319 <=> true)"];
106 [id="node106" labelType="html" label="<b>BroadcastHashJoin</b><br><br>number of output rows: 980" tooltip="BroadcastHashJoin [worklistShardItemId#658254L], [worklistShardItemId#658325L], LeftOuter, BuildRight, (shardId#658246 = 0_1_10000002106), false"];
107 [id="node107" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#658246, item#658253.worklistShardItemId AS worklistShardItemId#658254L, item#658253.qty AS qty#658256]"];
108 [id="node108" labelType="html" label="<b>Generate</b><br><br>number of output rows: 980" tooltip="Generate explode(items#658248), [shardId#658246], false, [item#658253]"];
109 [id="node109" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#658246, items#658248]"];
110 [id="node110" labelType="html" label="<b>Filter</b><br><br>number of output rows: 59" tooltip="Filter ((isnotnull(shardId#658246) AND (shardId#658246 = 0_1_10000002106)) AND ((size(items#658248, true) > 0) AND isnotnull(items#658248)))"];
111 [id="node111" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 59" tooltip="Scan ExistingRDD[shardId#658246,orderProposalId#658247L,items#658248,optimizationGroups#658249,isOptimal#658250,lastModified#658251,optimizationInsights#658252]"];
}
112 [id="node112" labelType="html" label="<b>BroadcastExchange</b><br><br>time to broadcast: 0 ms<br>time to build: 0 ms<br>time to collect: 1.7 s<br>number of output rows: 980<br>data size: 1056.0 KiB" tooltip="BroadcastExchange HashedRelationBroadcastMode(List(input[0, bigint, true]),false), [plan_id=269001]"];
subgraph cluster113 {
isCluster="true";
id="cluster113";
label="WholeStageCodegen (19)\n \nduration: total (min, med, max (stageId: taskId))\n46 ms (1 ms, 2 ms, 3 ms (stage 51527.0: task 138247))";
tooltip="WholeStageCodegen (19)";
114 [id="node114" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [worklistShardItemId#658325L, isFallbackOrderOnly#658319]"];
}
115 [id="node115" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 980<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 980<br>local bytes read total (min, med, max (stageId: taskId))<br>14.9 KiB (477.0 B, 668.0 B, 1225.0 B (stage 51527.0: task 138245))<br>merged fetch fallback count: 0<br>local blocks read: 183<br>remote merged chunks fetched: 0<br>remote blocks read: 253<br>data size total (min, med, max (stageId: taskId))<br>23.0 KiB (648.0 B, 960.0 B, 1152.0 B (stage 51526.0: task 138047))<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>24 ms (0 ms, 0 ms, 1 ms (stage 51526.0: task 138216))<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 51527.0: task 138239))<br>remote bytes read total (min, med, max (stageId: taskId))<br>20.8 KiB (486.0 B, 1173.0 B, 1328.0 B (stage 51527.0: task 138246))<br>number of partitions: 20<br>remote reqs duration total (min, med, max (stageId: taskId))<br>23 ms (1 ms, 1 ms, 2 ms (stage 51527.0: task 138242))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>35.7 KiB (1242.0 B, 1474.0 B, 1688.0 B (stage 51526.0: task 138045))" tooltip="Exchange hashpartitioning(worklistShardItemId#658325L, 20), REPARTITION_BY_NUM, [plan_id=268997]"];
subgraph cluster116 {
isCluster="true";
id="cluster116";
label="WholeStageCodegen (18)\n \nduration: total (min, med, max (stageId: taskId))\n2.2 s (78 ms, 88 ms, 115 ms (stage 51526.0: task 138030))";
tooltip="WholeStageCodegen (18)";
117 [id="node117" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [isFallbackOrderOnly#658319, worklistShardItemId#658325L]"];
118 [id="node118" labelType="html" label="<b>Filter</b><br><br>number of output rows: 980" tooltip="Filter isnotnull(worklistShardItemId#658325L)"];
119 [id="node119" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 980<br>number of input batches: 25" tooltip="ColumnarToRow"];
}
120 [id="node120" 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.2 s (76 ms, 86 ms, 110 ms (stage 51526.0: task 138030))<br>dynamic partition pruning time: 0 ms<br>metadata time: 681 ms<br>size of files read: 674.1 KiB<br>number of output rows: 980<br>number of partitions read: 1" tooltip="FileScan parquet [isFallbackOrderOnly#658319,worklistShardItemId#658325L,shardId#658346,sequenceId#658324] Batched: true, DataFilters: [isnotnull(worklistShardItemId#658325L)], Format: Parquet, Location: PreparedDeltaFileIndex(1 paths)[hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20...., PartitionFilters: [isnotnull(shardId#658346), isnotnull(sequenceId#658324), (shardId#658346 = 0_1_10000002106), (se..., PushedFilters: [IsNotNull(worklistShardItemId)], ReadSchema: struct<isFallbackOrderOnly:boolean,worklistShardItemId:bigint>"];
subgraph cluster121 {
isCluster="true";
id="cluster121";
label="WholeStageCodegen (23)\n \nduration: total (min, med, max (stageId: taskId))\n1.2 s (7 ms, 9 ms, 208 ms (stage 51790.0: task 138509))";
tooltip="WholeStageCodegen (23)";
122 [id="node122" labelType="html" label="<b>Sort</b><br><br>sort time total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 51790.0: task 138509))<br>peak memory total (min, med, max (stageId: taskId))<br>41.3 MiB (2.1 MiB, 2.1 MiB, 2.1 MiB (stage 51790.0: task 138509))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 51790.0: task 138509))" tooltip="Sort [shardId#658349 ASC NULLS FIRST, worklistShardItemId#658350L ASC NULLS FIRST], false, 0"];
}
123 [id="node123" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 980<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 980<br>local bytes read total (min, med, max (stageId: taskId))<br>19.6 KiB (882.0 B, 1029.0 B, 1118.0 B (stage 51790.0: task 138547))<br>merged fetch fallback count: 0<br>local blocks read: 173<br>remote merged chunks fetched: 0<br>remote blocks read: 201<br>data size total (min, med, max (stageId: taskId))<br>38.3 KiB (1720.0 B, 1960.0 B, 2.2 KiB (stage 51786.0: task 138464))<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>23 ms (0 ms, 1 ms, 1 ms (stage 51786.0: task 138471))<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 51790.0: task 138509))<br>remote bytes read total (min, med, max (stageId: taskId))<br>22.7 KiB (1010.0 B, 1202.0 B, 1291.0 B (stage 51790.0: task 138504))<br>number of partitions: 20<br>remote reqs duration total (min, med, max (stageId: taskId))<br>16 ms (0 ms, 1 ms, 1 ms (stage 51790.0: task 138509))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>42.3 KiB (1937.0 B, 2.1 KiB, 2.3 KiB (stage 51786.0: task 138423))" tooltip="Exchange hashpartitioning(shardId#658349, worklistShardItemId#658350L, 20), ENSURE_REQUIREMENTS, [plan_id=269013]"];
subgraph cluster124 {
isCluster="true";
id="cluster124";
label="WholeStageCodegen (22)\n \nduration: total (min, med, max (stageId: taskId))\n229 ms (6 ms, 9 ms, 67 ms (stage 51786.0: task 138323))";
tooltip="WholeStageCodegen (22)";
125 [id="node125" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#658349, worklistShardItemId#658350L]"];
126 [id="node126" labelType="html" label="<b>Filter</b><br><br>number of output rows: 980" tooltip="Filter (((isnull(qty#658351) AND isnull(demandChannel#658352)) AND isnull(demandStream#658353)) AND (((shardId#658349 = 0_1_10000002106) AND isnotnull(shardId#658349)) AND isnotnull(worklistShardItemId#658350L)))"];
127 [id="node127" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 4,129" tooltip="Scan ExistingRDD[shardId#658349,worklistShardItemId#658350L,qty#658351,demandChannel#658352,demandStream#658353,kpis#658354]"];
}
subgraph cluster128 {
isCluster="true";
id="cluster128";
label="WholeStageCodegen (26)\n \nduration: total (min, med, max (stageId: taskId))\n805 ms (4 ms, 5 ms, 147 ms (stage 51790.0: task 138509))";
tooltip="WholeStageCodegen (26)";
129 [id="node129" labelType="html" label="<b>Sort</b><br><br>sort time total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 51790.0: task 138509))<br>peak memory total (min, med, max (stageId: taskId))<br>41.3 MiB (2.1 MiB, 2.1 MiB, 2.1 MiB (stage 51790.0: task 138509))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 51790.0: task 138509))" tooltip="Sort [shardId#658365 ASC NULLS FIRST, worklistShardItemId#658366L ASC NULLS FIRST], false, 0"];
}
130 [id="node130" labelType="html" label="<b>ObjectHashAggregate</b><br><br>number of output rows: 980<br>time in aggregation build total (min, med, max (stageId: taskId))<br>55 ms (2 ms, 3 ms, 4 ms (stage 51790.0: task 138509))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 51790.0: task 138509))<br>number of sort fallback tasks: 0" tooltip="ObjectHashAggregate(keys=[shardId#658365, worklistShardItemId#658366L], functions=[collect_list(struct(qty, qty#658367, kpis, kpis#658370), 0, 0)])"];
131 [id="node131" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 2,091<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 2,091<br>local bytes read total (min, med, max (stageId: taskId))<br>269.7 KiB (11.8 KiB, 13.4 KiB, 14.8 KiB (stage 51790.0: task 138542))<br>merged fetch fallback count: 0<br>local blocks read: 397<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size total (min, med, max (stageId: taskId))<br>1357.2 KiB (60.5 KiB, 69.1 KiB, 72.7 KiB (stage 51783.0: task 138362))<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>24 ms (0 ms, 1 ms, 1 ms (stage 51783.0: task 138334))<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 51790.0: task 138509))<br>remote bytes read: 0.0 B<br>number of partitions: 20<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>269.7 KiB (12.6 KiB, 13.5 KiB, 14.2 KiB (stage 51783.0: task 138320))" tooltip="Exchange hashpartitioning(shardId#658365, worklistShardItemId#658366L, 20), ENSURE_REQUIREMENTS, [plan_id=269024]"];
132 [id="node132" labelType="html" label="<b>ObjectHashAggregate</b><br><br>number of output rows: 2,091<br>time in aggregation build total (min, med, max (stageId: taskId))<br>117 ms (4 ms, 6 ms, 9 ms (stage 51783.0: task 138316))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 51783.0: task 138320))<br>number of sort fallback tasks: 0" tooltip="ObjectHashAggregate(keys=[shardId#658365, worklistShardItemId#658366L], functions=[partial_collect_list(struct(qty, qty#658367, kpis, kpis#658370), 0, 0)])"];
subgraph cluster133 {
isCluster="true";
id="cluster133";
label="WholeStageCodegen (25)\n \nduration: total (min, med, max (stageId: taskId))\n117 ms (4 ms, 6 ms, 9 ms (stage 51783.0: task 138316))";
tooltip="WholeStageCodegen (25)";
134 [id="node134" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#658365, worklistShardItemId#658366L, qty#658367, kpis#658370]"];
135 [id="node135" labelType="html" label="<b>Filter</b><br><br>number of output rows: 2,183" tooltip="Filter ((isnotnull(qty#658367) AND isnotnull(kpis#658370)) AND (((shardId#658365 = 0_1_10000002106) AND isnotnull(shardId#658365)) AND isnotnull(worklistShardItemId#658366L)))"];
136 [id="node136" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 4,129" tooltip="Scan ExistingRDD[shardId#658365,worklistShardItemId#658366L,qty#658367,demandChannel#658368,demandStream#658369,kpis#658370]"];
}
137 [id="node137" labelType="html" label="<b>BroadcastExchange</b><br><br>time to broadcast: 0 ms<br>time to build: 0 ms<br>time to collect: 296 ms<br>number of output rows: 0<br>data size: 0.0 B" tooltip="BroadcastExchange IdentityBroadcastMode, [plan_id=269039]"];
138 [id="node138" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 0<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 0<br>local bytes read: 0.0 B<br>merged fetch fallback count: 0<br>local blocks read: 0<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 0.0 B<br>local merged bytes read: 0.0 B<br>local merged chunks fetched: 0<br>shuffle write time: 0 ms<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: 0.0 B<br>number of partitions: 20<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written: 0.0 B" tooltip="Exchange RoundRobinPartitioning(20), REPARTITION_BY_NUM, [plan_id=269038]"];
subgraph cluster139 {
isCluster="true";
id="cluster139";
label="WholeStageCodegen (28)\n \nduration: 84 ms";
tooltip="WholeStageCodegen (28)";
140 [id="node140" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [insightConfigurations#658377[POTENTIAL_OOS_DEMAND_PERIOD].settings AS _extract_settings#660186]"];
141 [id="node141" labelType="html" label="<b>Filter</b><br><br>number of output rows: 0" tooltip="Filter (isnotnull(insightConfigurations#658377) AND isnotnull(insightConfigurations#658377[POTENTIAL_OOS_DEMAND_PERIOD]))"];
142 [id="node142" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 1<br>number of input batches: 1" tooltip="ColumnarToRow"];
}
143 [id="node143" labelType="html" label="<b>Scan parquet </b><br><br>number of files read: 1<br>scan time: 81 ms<br>dynamic partition pruning time: 0 ms<br>metadata time: 0 ms<br>size of files read: 4.6 KiB<br>number of output rows: 1<br>number of partitions read: 1" tooltip="FileScan parquet [insightConfigurations#658377,shardId#658378] Batched: true, DataFilters: [isnotnull(insightConfigurations#658377), isnotnull(insightConfigurations#658377[POTENTIAL_OOS_DE..., Format: Parquet, Location: PreparedDeltaFileIndex(1 paths)[hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20...., PartitionFilters: [isnotnull(shardId#658378), (shardId#658378 = 0_1_10000002106)], PushedFilters: [IsNotNull(insightConfigurations)], ReadSchema: struct<insightConfigurations:map<string,struct<configurationVersion:string,name:string,settings:a..."];
1->0;
3->1;
4->3;
5->4;
6->5;
7->6;
8->7;
9->8;
10->9;
11->10;
13->11;
14->13;
16->14;
17->16;
18->17;
20->11;
21->20;
22->21;
24->22;
25->24;
26->25;
27->26;
28->27;
29->28;
30->29;
31->30;
32->26;
34->32;
35->34;
37->35;
38->37;
39->38;
40->39;
41->5;
42->41;
44->42;
45->44;
46->45;
47->46;
49->1;
50->49;
51->50;
53->51;
54->53;
56->54;
57->56;
59->57;
60->59;
61->60;
62->61;
63->62;
64->63;
65->64;
66->65;
67->61;
69->67;
70->69;
72->70;
73->72;
74->73;
75->74;
77->54;
78->77;
80->78;
81->80;
82->81;
83->51;
84->83;
86->84;
87->86;
88->87;
89->88;
91->1;
92->91;
93->92;
95->93;
96->95;
98->96;
99->98;
101->99;
102->101;
104->102;
105->104;
106->105;
107->106;
108->107;
109->108;
110->109;
111->110;
112->106;
114->112;
115->114;
117->115;
118->117;
119->118;
120->119;
122->99;
123->122;
125->123;
126->125;
127->126;
129->96;
130->129;
131->130;
132->131;
134->132;
135->134;
136->135;
137->93;
138->137;
140->138;
141->140;
142->141;
143->142;
}