digraph G {
subgraph cluster0 {
isCluster="true";
id="cluster0";
label="WholeStageCodegen (5)\n \nduration: total (min, med, max (stageId: taskId))\n5.3 s (120 ms, 143 ms, 306 ms (stage 2135186.0: task 5794900))";
tooltip="WholeStageCodegen (5)";
1 [id="node1" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#22197470, product#22198192, plant#22198187, orderDateTime#22198193, deliveryDateTime#22198188, availabilityDateTime#22198194, qty#22197984 AS orderQuantityInBaseUnit#22198258, orderProposalId#22198183L]"];
2 [id="node2" labelType="html" label="<b>SortMergeJoin</b><br><br>number of output rows: 51,793<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 2135186.0: task 5794909))" tooltip="SortMergeJoin [worklistShardItemId#22197982L], [worklistShardItemId#22198206L], LeftOuter, (shardId#22197470 = 0_7_10000000553)"];
}
subgraph cluster3 {
isCluster="true";
id="cluster3";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n13.2 s (167 ms, 309 ms, 900 ms (stage 2135186.0: task 5794900))";
tooltip="WholeStageCodegen (2)";
4 [id="node4" 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 2135186.0: task 5794909))<br>peak memory total (min, med, max (stageId: taskId))<br>61.9 MiB (2.1 MiB, 2.1 MiB, 2.1 MiB (stage 2135186.0: task 5794909))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 2135186.0: task 5794909))" tooltip="Sort [worklistShardItemId#22197982L ASC NULLS FIRST], false, 0"];
}
5 [id="node5" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 51,793<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 51,793<br>local bytes read total (min, med, max (stageId: taskId))<br>39.7 KiB (933.0 B, 1345.0 B, 1841.0 B (stage 2135186.0: task 5794894))<br>merged fetch fallback count: 0<br>local blocks read: 90<br>remote merged chunks fetched: 0<br>remote blocks read: 810<br>data size total (min, med, max (stageId: taskId))<br>2.4 MiB (75.4 KiB, 80.4 KiB, 88.5 KiB (stage 2135184.0: task 5794847))<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>54 ms (1 ms, 1 ms, 2 ms (stage 2135184.0: task 5794821))<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 2135186.0: task 5794909))<br>remote bytes read total (min, med, max (stageId: taskId))<br>355.8 KiB (11.3 KiB, 11.9 KiB, 12.4 KiB (stage 2135186.0: task 5794917))<br>number of partitions: 30<br>remote reqs duration total (min, med, max (stageId: taskId))<br>615 ms (13 ms, 22 ms, 27 ms (stage 2135186.0: task 5794898))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>395.5 KiB (12.6 KiB, 13.2 KiB, 14.1 KiB (stage 2135184.0: task 5794830))" tooltip="Exchange hashpartitioning(worklistShardItemId#22197982L, 30), ENSURE_REQUIREMENTS, [plan_id=6644989]"];
subgraph cluster6 {
isCluster="true";
id="cluster6";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n308 ms (6 ms, 9 ms, 19 ms (stage 2135184.0: task 5794837))";
tooltip="WholeStageCodegen (1)";
7 [id="node7" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#22197470, item#22197981.worklistShardItemId AS worklistShardItemId#22197982L, item#22197981.qty AS qty#22197984]"];
8 [id="node8" labelType="html" label="<b>Generate</b><br><br>number of output rows: 51,793" tooltip="Generate explode(items#22197472), [shardId#22197470], false, [item#22197981]"];
9 [id="node9" labelType="html" label="<b>Filter</b><br><br>number of output rows: 1,023" tooltip="Filter (((isnotnull(shardId#22197470) AND (shardId#22197470 = 0_7_10000000553)) AND (size(items#22197472, true) > 0)) AND isnotnull(items#22197472))"];
}
10 [id="node10" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 1,023" tooltip="InMemoryTableScan [shardId#22197470, items#22197472], [isnotnull(shardId#22197470), (shardId#22197470 = 0_7_10000000553), (size(items#22197472, true) > 0), isnotnull(items#22197472)]"];
subgraph cluster11 {
isCluster="true";
id="cluster11";
label="WholeStageCodegen (1)\n \nduration: 0 ms";
tooltip="WholeStageCodegen (1)";
12 [id="node12" labelType="html" label="<b>Filter</b><br><br>number of output rows: 0" tooltip="Filter (isnotnull(shardId#22197470) AND (shardId#22197470 = 0_7_10000000553))"];
}
13 [id="node13" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 0" tooltip="InMemoryTableScan [shardId#22197470, orderProposalId#22197471L, items#22197472, optimizationGroups#22197473, isOptimal#22197474, optimizationInsights#22197476], [isnotnull(shardId#22197470), (shardId#22197470 = 0_7_10000000553)]"];
subgraph cluster14 {
isCluster="true";
id="cluster14";
label="WholeStageCodegen (1)\n \nduration: 0 ms";
tooltip="WholeStageCodegen (1)";
15 [id="node15" labelType="html" label="<b>Filter</b><br><br>number of output rows: 0" tooltip="Filter (isnotnull(shardId#22197470) AND (shardId#22197470 = 0_7_10000000553))"];
16 [id="node16" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 0" tooltip="Scan ExistingRDD[shardId#22197470,orderProposalId#22197471L,items#22197472,optimizationGroups#22197473,isOptimal#22197474,lastModified#22197475,optimizationInsights#22197476]"];
}
subgraph cluster17 {
isCluster="true";
id="cluster17";
label="WholeStageCodegen (4)\n \nduration: total (min, med, max (stageId: taskId))\n9.2 s (143 ms, 221 ms, 604 ms (stage 2135186.0: task 5794900))";
tooltip="WholeStageCodegen (4)";
18 [id="node18" 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 2135186.0: task 5794909))<br>peak memory total (min, med, max (stageId: taskId))<br>61.9 MiB (2.1 MiB, 2.1 MiB, 2.1 MiB (stage 2135186.0: task 5794909))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 2135186.0: task 5794909))" tooltip="Sort [worklistShardItemId#22198206L ASC NULLS FIRST], false, 0"];
19 [id="node19" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [worklistShardItemId#22198206L, orderProposalId#22198183L, product#22198192, plant#22198187, orderDateTime#22198193, deliveryDateTime#22198188, availabilityDateTime#22198194]"];
}
20 [id="node20" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 51,793<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 51,793<br>local bytes read total (min, med, max (stageId: taskId))<br>306.7 KiB (2.6 KiB, 13.2 KiB, 15.4 KiB (stage 2135186.0: task 5794889))<br>merged fetch fallback count: 0<br>local blocks read: 111<br>remote merged chunks fetched: 0<br>remote blocks read: 999<br>data size total (min, med, max (stageId: taskId))<br>6.3 MiB (164.8 KiB, 175.9 KiB, 184.6 KiB (stage 2135185.0: task 5794852))<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, 2 ms (stage 2135185.0: task 5794883))<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 2135186.0: task 5794909))<br>remote bytes read total (min, med, max (stageId: taskId))<br>2.7 MiB (82.7 KiB, 90.5 KiB, 99.9 KiB (stage 2135186.0: task 5794894))<br>number of partitions: 30<br>remote reqs duration total (min, med, max (stageId: taskId))<br>732 ms (15 ms, 24 ms, 39 ms (stage 2135186.0: task 5794898))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>3.0 MiB (78.0 KiB, 82.5 KiB, 86.2 KiB (stage 2135185.0: task 5794852))" tooltip="Exchange hashpartitioning(worklistShardItemId#22198206L, 30), REPARTITION_BY_NUM, [plan_id=6644999]"];
subgraph cluster21 {
isCluster="true";
id="cluster21";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n6.7 s (122 ms, 169 ms, 277 ms (stage 2135185.0: task 5794864))";
tooltip="WholeStageCodegen (3)";
22 [id="node22" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [orderProposalId#22198183L, plant#22198187, deliveryDateTime#22198188, product#22198192, orderDateTime#22198193, availabilityDateTime#22198194, worklistShardItemId#22198206L]"];
23 [id="node23" labelType="html" label="<b>Filter</b><br><br>number of output rows: 51,793" tooltip="Filter isnotnull(worklistShardItemId#22198206L)"];
24 [id="node24" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 51,793<br>number of input batches: 37" tooltip="ColumnarToRow"];
}
25 [id="node25" labelType="html" label="<b>Scan parquet </b><br><br>number of files read: 37<br>scan time total (min, med, max (stageId: taskId))<br>5.3 s (114 ms, 137 ms, 236 ms (stage 2135185.0: task 5794851))<br>dynamic partition pruning time: 0 ms<br>metadata time: 0 ms<br>size of files read: 7.4 MiB<br>number of output rows: 51,793<br>number of partitions read: 1" tooltip="FileScan parquet [orderProposalId#22198183L,plant#22198187,deliveryDateTime#22198188,product#22198192,orderDateTime#22198193,availabilityDateTime#22198194,worklistShardItemId#22198206L,shardId#22198227,sequenceId#22198205] Batched: true, DataFilters: [isnotnull(worklistShardItemId#22198206L)], Format: Parquet, Location: PreparedDeltaFileIndex(1 paths)[hdlfs://7da5304c-1f57-47fa-b75a-0f0b4349c280.files.hdl.prod-eu20...., PartitionFilters: [isnotnull(shardId#22198227), isnotnull(sequenceId#22198205), (shardId#22198227 = 0_7_10000000553..., PushedFilters: [IsNotNull(worklistShardItemId)], ReadSchema: struct<orderProposalId:bigint,plant:string,deliveryDateTime:timestamp,product:string,orderDateTim..."];
2->1;
4->2;
5->4;
7->5;
8->7;
9->8;
10->9;
12->10;
13->12;
15->13;
16->15;
18->2;
19->18;
20->19;
22->20;
23->22;
24->23;
25->24;
}
== Physical Plan ==
* Project (21)
+- * SortMergeJoin LeftOuter (20)
:- * Sort (12)
: +- Exchange (11)
: +- * Project (10)
: +- * Generate (9)
: +- * Filter (8)
: +- InMemoryTableScan (1)
: +- InMemoryRelation (2)
: +- * Filter (7)
: +- InMemoryTableScan (3)
: +- InMemoryRelation (4)
: +- * Filter (6)
: +- * Scan ExistingRDD (5)
+- * Sort (19)
+- * Project (18)
+- Exchange (17)
+- * Project (16)
+- * Filter (15)
+- * ColumnarToRow (14)
+- Scan parquet (13)
(1) InMemoryTableScan
Output [2]: [shardId#22197470, items#22197472]
Arguments: [shardId#22197470, items#22197472], [isnotnull(shardId#22197470), (shardId#22197470 = 0_7_10000000553), (size(items#22197472, true) > 0), isnotnull(items#22197472)]
(2) InMemoryRelation
Arguments: [shardId#22197470, orderProposalId#22197471L, items#22197472, optimizationGroups#22197473, isOptimal#22197474, optimizationInsights#22197476], StorageLevel(disk, memory, 2 replicas)
(3) InMemoryTableScan
Output [6]: [shardId#22197470, orderProposalId#22197471L, items#22197472, optimizationGroups#22197473, isOptimal#22197474, optimizationInsights#22197476]
Arguments: [shardId#22197470, orderProposalId#22197471L, items#22197472, optimizationGroups#22197473, isOptimal#22197474, optimizationInsights#22197476], [isnotnull(shardId#22197470), (shardId#22197470 = 0_7_10000000553)]
(4) InMemoryRelation
Arguments: [shardId#22197470, orderProposalId#22197471L, items#22197472, optimizationGroups#22197473, isOptimal#22197474, lastModified#22197475, optimizationInsights#22197476], StorageLevel(disk, memory, 2 replicas)
(5) Scan ExistingRDD [codegen id : 1]
Output [7]: [shardId#22197470, orderProposalId#22197471L, items#22197472, optimizationGroups#22197473, isOptimal#22197474, lastModified#22197475, optimizationInsights#22197476]
Arguments: [shardId#22197470, orderProposalId#22197471L, items#22197472, optimizationGroups#22197473, isOptimal#22197474, lastModified#22197475, optimizationInsights#22197476], MapPartitionsRDD[943168] at start at FileStorageAdapterImpl.java:596, ExistingRDD, UnknownPartitioning(0)
(6) Filter [codegen id : 1]
Input [7]: [shardId#22197470, orderProposalId#22197471L, items#22197472, optimizationGroups#22197473, isOptimal#22197474, lastModified#22197475, optimizationInsights#22197476]
Condition : (isnotnull(shardId#22197470) AND (shardId#22197470 = 0_7_10000000553))
(7) Filter [codegen id : 1]
Input [6]: [shardId#22197470, orderProposalId#22197471L, items#22197472, optimizationGroups#22197473, isOptimal#22197474, optimizationInsights#22197476]
Condition : (isnotnull(shardId#22197470) AND (shardId#22197470 = 0_7_10000000553))
(8) Filter [codegen id : 1]
Input [2]: [shardId#22197470, items#22197472]
Condition : (((isnotnull(shardId#22197470) AND (shardId#22197470 = 0_7_10000000553)) AND (size(items#22197472, true) > 0)) AND isnotnull(items#22197472))
(9) Generate [codegen id : 1]
Input [2]: [shardId#22197470, items#22197472]
Arguments: explode(items#22197472), [shardId#22197470], false, [item#22197981]
(10) Project [codegen id : 1]
Output [3]: [shardId#22197470, item#22197981.worklistShardItemId AS worklistShardItemId#22197982L, item#22197981.qty AS qty#22197984]
Input [2]: [shardId#22197470, item#22197981]
(11) Exchange
Input [3]: [shardId#22197470, worklistShardItemId#22197982L, qty#22197984]
Arguments: hashpartitioning(worklistShardItemId#22197982L, 30), ENSURE_REQUIREMENTS, [plan_id=6644989]
(12) Sort [codegen id : 2]
Input [3]: [shardId#22197470, worklistShardItemId#22197982L, qty#22197984]
Arguments: [worklistShardItemId#22197982L ASC NULLS FIRST], false, 0
(13) Scan parquet
Output [9]: [orderProposalId#22198183L, plant#22198187, deliveryDateTime#22198188, product#22198192, orderDateTime#22198193, availabilityDateTime#22198194, worklistShardItemId#22198206L, shardId#22198227, sequenceId#22198205]
Batched: true
Location: PreparedDeltaFileIndex [hdlfs://7da5304c-1f57-47fa-b75a-0f0b4349c280.files.hdl.prod-eu20.hanacloud.ondemand.com:443/crp-order-qty-opt-service/internal/prod-plant-snapshot/10000000553]
PartitionFilters: [isnotnull(shardId#22198227), isnotnull(sequenceId#22198205), (shardId#22198227 = 0_7_10000000553), (sequenceId#22198205 = 4)]
PushedFilters: [IsNotNull(worklistShardItemId)]
ReadSchema: struct<orderProposalId:bigint,plant:string,deliveryDateTime:timestamp,product:string,orderDateTime:timestamp,availabilityDateTime:timestamp,worklistShardItemId:bigint>
(14) ColumnarToRow [codegen id : 3]
Input [9]: [orderProposalId#22198183L, plant#22198187, deliveryDateTime#22198188, product#22198192, orderDateTime#22198193, availabilityDateTime#22198194, worklistShardItemId#22198206L, shardId#22198227, sequenceId#22198205]
(15) Filter [codegen id : 3]
Input [9]: [orderProposalId#22198183L, plant#22198187, deliveryDateTime#22198188, product#22198192, orderDateTime#22198193, availabilityDateTime#22198194, worklistShardItemId#22198206L, shardId#22198227, sequenceId#22198205]
Condition : isnotnull(worklistShardItemId#22198206L)
(16) Project [codegen id : 3]
Output [7]: [orderProposalId#22198183L, plant#22198187, deliveryDateTime#22198188, product#22198192, orderDateTime#22198193, availabilityDateTime#22198194, worklistShardItemId#22198206L]
Input [9]: [orderProposalId#22198183L, plant#22198187, deliveryDateTime#22198188, product#22198192, orderDateTime#22198193, availabilityDateTime#22198194, worklistShardItemId#22198206L, shardId#22198227, sequenceId#22198205]
(17) Exchange
Input [7]: [orderProposalId#22198183L, plant#22198187, deliveryDateTime#22198188, product#22198192, orderDateTime#22198193, availabilityDateTime#22198194, worklistShardItemId#22198206L]
Arguments: hashpartitioning(worklistShardItemId#22198206L, 30), REPARTITION_BY_NUM, [plan_id=6644999]
(18) Project [codegen id : 4]
Output [7]: [worklistShardItemId#22198206L, orderProposalId#22198183L, product#22198192, plant#22198187, orderDateTime#22198193, deliveryDateTime#22198188, availabilityDateTime#22198194]
Input [7]: [orderProposalId#22198183L, plant#22198187, deliveryDateTime#22198188, product#22198192, orderDateTime#22198193, availabilityDateTime#22198194, worklistShardItemId#22198206L]
(19) Sort [codegen id : 4]
Input [7]: [worklistShardItemId#22198206L, orderProposalId#22198183L, product#22198192, plant#22198187, orderDateTime#22198193, deliveryDateTime#22198188, availabilityDateTime#22198194]
Arguments: [worklistShardItemId#22198206L ASC NULLS FIRST], false, 0
(20) SortMergeJoin [codegen id : 5]
Left keys [1]: [worklistShardItemId#22197982L]
Right keys [1]: [worklistShardItemId#22198206L]
Join type: LeftOuter
Join condition: (shardId#22197470 = 0_7_10000000553)
(21) Project [codegen id : 5]
Output [8]: [shardId#22197470, product#22198192, plant#22198187, orderDateTime#22198193, deliveryDateTime#22198188, availabilityDateTime#22198194, qty#22197984 AS orderQuantityInBaseUnit#22198258, orderProposalId#22198183L]
Input [10]: [shardId#22197470, worklistShardItemId#22197982L, qty#22197984, worklistShardItemId#22198206L, orderProposalId#22198183L, product#22198192, plant#22198187, orderDateTime#22198193, deliveryDateTime#22198188, availabilityDateTime#22198194]