digraph G {
subgraph cluster0 {
isCluster="true";
id="cluster0";
label="WholeStageCodegen (5)\n \nduration: total (min, med, max (stageId: taskId))\n5.5 s (49 ms, 284 ms, 324 ms (stage 1656903.0: task 4361618))";
tooltip="WholeStageCodegen (5)";
1 [id="node1" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#16695828, product#16696550, plant#16696545, orderDateTime#16696551, deliveryDateTime#16696546, availabilityDateTime#16696552, qty#16696342 AS orderQuantityInBaseUnit#16696616, orderProposalId#16696541L]"];
2 [id="node2" labelType="html" label="<b>SortMergeJoin</b><br><br>number of output rows: 35,084<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 1656903.0: task 4361628))" tooltip="SortMergeJoin [worklistShardItemId#16696340L], [worklistShardItemId#16696564L], LeftOuter, (shardId#16695828 = 0_3_10000000548)"];
}
subgraph cluster3 {
isCluster="true";
id="cluster3";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n8.2 s (49 ms, 464 ms, 504 ms (stage 1656903.0: task 4361618))";
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 1656903.0: task 4361628))<br>peak memory total (min, med, max (stageId: taskId))<br>61.9 MiB (2.1 MiB, 2.1 MiB, 2.1 MiB (stage 1656903.0: task 4361628))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 1656903.0: task 4361628))" tooltip="Sort [worklistShardItemId#16696340L ASC NULLS FIRST], false, 0"];
}
5 [id="node5" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 35,084<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 35,084<br>local bytes read total (min, med, max (stageId: taskId))<br>108.5 KiB (2.8 KiB, 3.2 KiB, 4.9 KiB (stage 1656903.0: task 4361614))<br>merged fetch fallback count: 0<br>local blocks read: 300<br>remote merged chunks fetched: 0<br>remote blocks read: 600<br>data size total (min, med, max (stageId: taskId))<br>1644.6 KiB (40.6 KiB, 55.0 KiB, 62.2 KiB (stage 1656902.0: task 4361567))<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>50 ms (1 ms, 1 ms, 2 ms (stage 1656902.0: task 4361584))<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>3 ms (0 ms, 0 ms, 3 ms (stage 1656903.0: task 4361636))<br>remote bytes read total (min, med, max (stageId: taskId))<br>217.4 KiB (5.9 KiB, 7.7 KiB, 8.1 KiB (stage 1656903.0: task 4361643))<br>number of partitions: 30<br>remote reqs duration total (min, med, max (stageId: taskId))<br>84 ms (1 ms, 3 ms, 7 ms (stage 1656903.0: task 4361636))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>325.9 KiB (9.2 KiB, 10.9 KiB, 12.0 KiB (stage 1656902.0: task 4361594))" tooltip="Exchange hashpartitioning(worklistShardItemId#16696340L, 30), ENSURE_REQUIREMENTS, [plan_id=4964921]"];
subgraph cluster6 {
isCluster="true";
id="cluster6";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n121 ms (3 ms, 4 ms, 6 ms (stage 1656902.0: task 4361566))";
tooltip="WholeStageCodegen (1)";
7 [id="node7" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#16695828, item#16696339.worklistShardItemId AS worklistShardItemId#16696340L, item#16696339.qty AS qty#16696342]"];
8 [id="node8" labelType="html" label="<b>Generate</b><br><br>number of output rows: 35,084" tooltip="Generate explode(items#16695830), [shardId#16695828], false, [item#16696339]"];
9 [id="node9" labelType="html" label="<b>Filter</b><br><br>number of output rows: 692" tooltip="Filter (((isnotnull(shardId#16695828) AND (shardId#16695828 = 0_3_10000000548)) AND (size(items#16695830, true) > 0)) AND isnotnull(items#16695830))"];
}
10 [id="node10" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 692" tooltip="InMemoryTableScan [shardId#16695828, items#16695830], [isnotnull(shardId#16695828), (shardId#16695828 = 0_3_10000000548), (size(items#16695830, true) > 0), isnotnull(items#16695830)]"];
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#16695828) AND (shardId#16695828 = 0_3_10000000548))"];
}
13 [id="node13" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 0" tooltip="InMemoryTableScan [shardId#16695828, orderProposalId#16695829L, items#16695830, optimizationGroups#16695831, isOptimal#16695832, optimizationInsights#16695834], [isnotnull(shardId#16695828), (shardId#16695828 = 0_3_10000000548)]"];
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#16695828) AND (shardId#16695828 = 0_3_10000000548))"];
16 [id="node16" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 0" tooltip="Scan ExistingRDD[shardId#16695828,orderProposalId#16695829L,items#16695830,optimizationGroups#16695831,isOptimal#16695832,lastModified#16695833,optimizationInsights#16695834]"];
}
subgraph cluster17 {
isCluster="true";
id="cluster17";
label="WholeStageCodegen (4)\n \nduration: total (min, med, max (stageId: taskId))\n6.8 s (49 ms, 372 ms, 414 ms (stage 1656903.0: task 4361618))";
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 1656903.0: task 4361628))<br>peak memory total (min, med, max (stageId: taskId))<br>61.9 MiB (2.1 MiB, 2.1 MiB, 2.1 MiB (stage 1656903.0: task 4361628))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 1656903.0: task 4361628))" tooltip="Sort [worklistShardItemId#16696564L ASC NULLS FIRST], false, 0"];
19 [id="node19" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [worklistShardItemId#16696564L, orderProposalId#16696541L, product#16696550, plant#16696545, orderDateTime#16696551, deliveryDateTime#16696546, availabilityDateTime#16696552]"];
}
20 [id="node20" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 35,084<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 35,084<br>local bytes read total (min, med, max (stageId: taskId))<br>722.3 KiB (19.8 KiB, 24.9 KiB, 26.7 KiB (stage 1656903.0: task 4361628))<br>merged fetch fallback count: 0<br>local blocks read: 370<br>remote merged chunks fetched: 0<br>remote blocks read: 740<br>data size total (min, med, max (stageId: taskId))<br>4.3 MiB (110.8 KiB, 119.1 KiB, 125.1 KiB (stage 1656851.0: task 4361547))<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>66 ms (1 ms, 1 ms, 6 ms (stage 1656851.0: task 4361555))<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 1656903.0: task 4361628))<br>remote bytes read total (min, med, max (stageId: taskId))<br>1452.2 KiB (44.9 KiB, 47.8 KiB, 53.1 KiB (stage 1656903.0: task 4361643))<br>number of partitions: 30<br>remote reqs duration total (min, med, max (stageId: taskId))<br>84 ms (2 ms, 3 ms, 7 ms (stage 1656903.0: task 4361636))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>2.1 MiB (55.5 KiB, 59.0 KiB, 61.6 KiB (stage 1656851.0: task 4361547))" tooltip="Exchange hashpartitioning(worklistShardItemId#16696564L, 30), REPARTITION_BY_NUM, [plan_id=4964931]"];
subgraph cluster21 {
isCluster="true";
id="cluster21";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n6.3 s (92 ms, 134 ms, 291 ms (stage 1656851.0: task 4361557))";
tooltip="WholeStageCodegen (3)";
22 [id="node22" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [orderProposalId#16696541L, plant#16696545, deliveryDateTime#16696546, product#16696550, orderDateTime#16696551, availabilityDateTime#16696552, worklistShardItemId#16696564L]"];
23 [id="node23" labelType="html" label="<b>Filter</b><br><br>number of output rows: 35,084" tooltip="Filter isnotnull(worklistShardItemId#16696564L)"];
24 [id="node24" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 35,084<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>4.9 s (89 ms, 130 ms, 202 ms (stage 1656851.0: task 4361557))<br>dynamic partition pruning time: 0 ms<br>metadata time: 0 ms<br>size of files read: 5.2 MiB<br>number of output rows: 35,084<br>number of partitions read: 1" tooltip="FileScan parquet [orderProposalId#16696541L,plant#16696545,deliveryDateTime#16696546,product#16696550,orderDateTime#16696551,availabilityDateTime#16696552,worklistShardItemId#16696564L,shardId#16696585,sequenceId#16696563] Batched: true, DataFilters: [isnotnull(worklistShardItemId#16696564L)], Format: Parquet, Location: PreparedDeltaFileIndex(1 paths)[hdlfs://7da5304c-1f57-47fa-b75a-0f0b4349c280.files.hdl.prod-eu20...., PartitionFilters: [isnotnull(shardId#16696585), isnotnull(sequenceId#16696563), (shardId#16696585 = 0_3_10000000548..., 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#16695828, items#16695830]
Arguments: [shardId#16695828, items#16695830], [isnotnull(shardId#16695828), (shardId#16695828 = 0_3_10000000548), (size(items#16695830, true) > 0), isnotnull(items#16695830)]
(2) InMemoryRelation
Arguments: [shardId#16695828, orderProposalId#16695829L, items#16695830, optimizationGroups#16695831, isOptimal#16695832, optimizationInsights#16695834], StorageLevel(disk, memory, 2 replicas)
(3) InMemoryTableScan
Output [6]: [shardId#16695828, orderProposalId#16695829L, items#16695830, optimizationGroups#16695831, isOptimal#16695832, optimizationInsights#16695834]
Arguments: [shardId#16695828, orderProposalId#16695829L, items#16695830, optimizationGroups#16695831, isOptimal#16695832, optimizationInsights#16695834], [isnotnull(shardId#16695828), (shardId#16695828 = 0_3_10000000548)]
(4) InMemoryRelation
Arguments: [shardId#16695828, orderProposalId#16695829L, items#16695830, optimizationGroups#16695831, isOptimal#16695832, lastModified#16695833, optimizationInsights#16695834], StorageLevel(disk, memory, 2 replicas)
(5) Scan ExistingRDD [codegen id : 1]
Output [7]: [shardId#16695828, orderProposalId#16695829L, items#16695830, optimizationGroups#16695831, isOptimal#16695832, lastModified#16695833, optimizationInsights#16695834]
Arguments: [shardId#16695828, orderProposalId#16695829L, items#16695830, optimizationGroups#16695831, isOptimal#16695832, lastModified#16695833, optimizationInsights#16695834], MapPartitionsRDD[710108] at start at FileStorageAdapterImpl.java:596, ExistingRDD, UnknownPartitioning(0)
(6) Filter [codegen id : 1]
Input [7]: [shardId#16695828, orderProposalId#16695829L, items#16695830, optimizationGroups#16695831, isOptimal#16695832, lastModified#16695833, optimizationInsights#16695834]
Condition : (isnotnull(shardId#16695828) AND (shardId#16695828 = 0_3_10000000548))
(7) Filter [codegen id : 1]
Input [6]: [shardId#16695828, orderProposalId#16695829L, items#16695830, optimizationGroups#16695831, isOptimal#16695832, optimizationInsights#16695834]
Condition : (isnotnull(shardId#16695828) AND (shardId#16695828 = 0_3_10000000548))
(8) Filter [codegen id : 1]
Input [2]: [shardId#16695828, items#16695830]
Condition : (((isnotnull(shardId#16695828) AND (shardId#16695828 = 0_3_10000000548)) AND (size(items#16695830, true) > 0)) AND isnotnull(items#16695830))
(9) Generate [codegen id : 1]
Input [2]: [shardId#16695828, items#16695830]
Arguments: explode(items#16695830), [shardId#16695828], false, [item#16696339]
(10) Project [codegen id : 1]
Output [3]: [shardId#16695828, item#16696339.worklistShardItemId AS worklistShardItemId#16696340L, item#16696339.qty AS qty#16696342]
Input [2]: [shardId#16695828, item#16696339]
(11) Exchange
Input [3]: [shardId#16695828, worklistShardItemId#16696340L, qty#16696342]
Arguments: hashpartitioning(worklistShardItemId#16696340L, 30), ENSURE_REQUIREMENTS, [plan_id=4964921]
(12) Sort [codegen id : 2]
Input [3]: [shardId#16695828, worklistShardItemId#16696340L, qty#16696342]
Arguments: [worklistShardItemId#16696340L ASC NULLS FIRST], false, 0
(13) Scan parquet
Output [9]: [orderProposalId#16696541L, plant#16696545, deliveryDateTime#16696546, product#16696550, orderDateTime#16696551, availabilityDateTime#16696552, worklistShardItemId#16696564L, shardId#16696585, sequenceId#16696563]
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/10000000548]
PartitionFilters: [isnotnull(shardId#16696585), isnotnull(sequenceId#16696563), (shardId#16696585 = 0_3_10000000548), (sequenceId#16696563 = 25)]
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#16696541L, plant#16696545, deliveryDateTime#16696546, product#16696550, orderDateTime#16696551, availabilityDateTime#16696552, worklistShardItemId#16696564L, shardId#16696585, sequenceId#16696563]
(15) Filter [codegen id : 3]
Input [9]: [orderProposalId#16696541L, plant#16696545, deliveryDateTime#16696546, product#16696550, orderDateTime#16696551, availabilityDateTime#16696552, worklistShardItemId#16696564L, shardId#16696585, sequenceId#16696563]
Condition : isnotnull(worklistShardItemId#16696564L)
(16) Project [codegen id : 3]
Output [7]: [orderProposalId#16696541L, plant#16696545, deliveryDateTime#16696546, product#16696550, orderDateTime#16696551, availabilityDateTime#16696552, worklistShardItemId#16696564L]
Input [9]: [orderProposalId#16696541L, plant#16696545, deliveryDateTime#16696546, product#16696550, orderDateTime#16696551, availabilityDateTime#16696552, worklistShardItemId#16696564L, shardId#16696585, sequenceId#16696563]
(17) Exchange
Input [7]: [orderProposalId#16696541L, plant#16696545, deliveryDateTime#16696546, product#16696550, orderDateTime#16696551, availabilityDateTime#16696552, worklistShardItemId#16696564L]
Arguments: hashpartitioning(worklistShardItemId#16696564L, 30), REPARTITION_BY_NUM, [plan_id=4964931]
(18) Project [codegen id : 4]
Output [7]: [worklistShardItemId#16696564L, orderProposalId#16696541L, product#16696550, plant#16696545, orderDateTime#16696551, deliveryDateTime#16696546, availabilityDateTime#16696552]
Input [7]: [orderProposalId#16696541L, plant#16696545, deliveryDateTime#16696546, product#16696550, orderDateTime#16696551, availabilityDateTime#16696552, worklistShardItemId#16696564L]
(19) Sort [codegen id : 4]
Input [7]: [worklistShardItemId#16696564L, orderProposalId#16696541L, product#16696550, plant#16696545, orderDateTime#16696551, deliveryDateTime#16696546, availabilityDateTime#16696552]
Arguments: [worklistShardItemId#16696564L ASC NULLS FIRST], false, 0
(20) SortMergeJoin [codegen id : 5]
Left keys [1]: [worklistShardItemId#16696340L]
Right keys [1]: [worklistShardItemId#16696564L]
Join type: LeftOuter
Join condition: (shardId#16695828 = 0_3_10000000548)
(21) Project [codegen id : 5]
Output [8]: [shardId#16695828, product#16696550, plant#16696545, orderDateTime#16696551, deliveryDateTime#16696546, availabilityDateTime#16696552, qty#16696342 AS orderQuantityInBaseUnit#16696616, orderProposalId#16696541L]
Input [10]: [shardId#16695828, worklistShardItemId#16696340L, qty#16696342, worklistShardItemId#16696564L, orderProposalId#16696541L, product#16696550, plant#16696545, orderDateTime#16696551, deliveryDateTime#16696546, availabilityDateTime#16696552]