digraph G {
subgraph cluster0 {
isCluster="true";
id="cluster0";
label="WholeStageCodegen (5)\n \nduration: total (min, med, max (stageId: taskId))\n1.9 s (39 ms, 50 ms, 207 ms (stage 335734.0: task 939713))";
tooltip="WholeStageCodegen (5)";
1 [id="node1" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#3579932, product#3581496, plant#3581491, orderDateTime#3581497, deliveryDateTime#3581492, availabilityDateTime#3581498, qty#3581121 AS orderQuantityInBaseUnit#3584729, orderProposalId#3581487L]"];
2 [id="node2" labelType="html" label="<b>SortMergeJoin</b><br><br>number of output rows: 39,968<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 335734.0: task 939721))" tooltip="SortMergeJoin [worklistShardItemId#3581119L], [worklistShardItemId#3581510L], LeftOuter, (shardId#3579932 = 0_7_10000000532)"];
}
subgraph cluster3 {
isCluster="true";
id="cluster3";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n2.3 s (40 ms, 51 ms, 459 ms (stage 335734.0: task 939713))";
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 335734.0: task 939721))<br>peak memory total (min, med, max (stageId: taskId))<br>61.9 MiB (2.1 MiB, 2.1 MiB, 2.1 MiB (stage 335734.0: task 939721))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 335734.0: task 939721))" tooltip="Sort [worklistShardItemId#3581119L ASC NULLS FIRST], false, 0"];
}
5 [id="node5" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 39,968<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 39,968<br>local bytes read total (min, med, max (stageId: taskId))<br>162.7 KiB (2.5 KiB, 2.9 KiB, 9.6 KiB (stage 335734.0: task 939821))<br>merged fetch fallback count: 0<br>local blocks read: 402<br>remote merged chunks fetched: 0<br>remote blocks read: 498<br>data size total (min, med, max (stageId: taskId))<br>1873.5 KiB (54.3 KiB, 62.6 KiB, 69.3 KiB (stage 335733.0: task 939503))<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>64 ms (1 ms, 1 ms, 21 ms (stage 335733.0: task 939498))<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>25 ms (0 ms, 0 ms, 25 ms (stage 335734.0: task 939796))<br>remote bytes read total (min, med, max (stageId: taskId))<br>203.4 KiB (2.6 KiB, 9.3 KiB, 9.9 KiB (stage 335734.0: task 939777))<br>number of partitions: 30<br>remote reqs duration total (min, med, max (stageId: taskId))<br>65 ms (1 ms, 1 ms, 28 ms (stage 335734.0: task 939796))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>366.1 KiB (11.1 KiB, 12.3 KiB, 13.2 KiB (stage 335733.0: task 939503))" tooltip="Exchange hashpartitioning(worklistShardItemId#3581119L, 30), ENSURE_REQUIREMENTS, [plan_id=1028257]"];
subgraph cluster6 {
isCluster="true";
id="cluster6";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n194 ms (3 ms, 3 ms, 49 ms (stage 335733.0: task 939492))";
tooltip="WholeStageCodegen (1)";
7 [id="node7" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#3579932, item#3581118.worklistShardItemId AS worklistShardItemId#3581119L, item#3581118.qty AS qty#3581121]"];
8 [id="node8" labelType="html" label="<b>Generate</b><br><br>number of output rows: 39,968" tooltip="Generate explode(items#3579934), [shardId#3579932], false, [item#3581118]"];
9 [id="node9" labelType="html" label="<b>Filter</b><br><br>number of output rows: 792" tooltip="Filter (((isnotnull(shardId#3579932) AND (shardId#3579932 = 0_7_10000000532)) AND (size(items#3579934, true) > 0)) AND isnotnull(items#3579934))"];
}
10 [id="node10" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 792" tooltip="InMemoryTableScan [shardId#3579932, items#3579934], [isnotnull(shardId#3579932), (shardId#3579932 = 0_7_10000000532), (size(items#3579934, true) > 0), isnotnull(items#3579934)]"];
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#3579932) AND (shardId#3579932 = 0_7_10000000532))"];
}
13 [id="node13" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 0" tooltip="InMemoryTableScan [shardId#3579932, orderProposalId#3579933L, items#3579934, optimizationGroups#3579935, isOptimal#3579936, optimizationInsights#3579938], [isnotnull(shardId#3579932), (shardId#3579932 = 0_7_10000000532)]"];
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#3579932) AND (shardId#3579932 = 0_7_10000000532))"];
16 [id="node16" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 0" tooltip="Scan ExistingRDD[shardId#3579932,orderProposalId#3579933L,items#3579934,optimizationGroups#3579935,isOptimal#3579936,lastModified#3579937,optimizationInsights#3579938]"];
}
subgraph cluster17 {
isCluster="true";
id="cluster17";
label="WholeStageCodegen (4)\n \nduration: total (min, med, max (stageId: taskId))\n2.1 s (40 ms, 50 ms, 334 ms (stage 335734.0: task 939713))";
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 335734.0: task 939721))<br>peak memory total (min, med, max (stageId: taskId))<br>61.9 MiB (2.1 MiB, 2.1 MiB, 2.1 MiB (stage 335734.0: task 939721))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 335734.0: task 939721))" tooltip="Sort [worklistShardItemId#3581510L ASC NULLS FIRST], false, 0"];
19 [id="node19" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [worklistShardItemId#3581510L, orderProposalId#3581487L, product#3581496, plant#3581491, orderDateTime#3581497, deliveryDateTime#3581492, availabilityDateTime#3581498]"];
}
20 [id="node20" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 39,968<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 39,968<br>local bytes read total (min, med, max (stageId: taskId))<br>1514.8 KiB (4.0 KiB, 79.7 KiB, 84.5 KiB (stage 335734.0: task 939777))<br>merged fetch fallback count: 0<br>local blocks read: 654<br>remote merged chunks fetched: 0<br>remote blocks read: 456<br>data size total (min, med, max (stageId: taskId))<br>4.9 MiB (128.6 KiB, 134.9 KiB, 142.5 KiB (stage 335732.0: task 939529))<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, 2 ms (stage 335732.0: task 939520))<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>7 ms (0 ms, 0 ms, 7 ms (stage 335734.0: task 939811))<br>remote bytes read total (min, med, max (stageId: taskId))<br>1064.0 KiB (3.7 KiB, 5.3 KiB, 84.8 KiB (stage 335734.0: task 939795))<br>number of partitions: 30<br>remote reqs duration total (min, med, max (stageId: taskId))<br>75 ms (0 ms, 1 ms, 28 ms (stage 335734.0: task 939796))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>2.5 MiB (66.4 KiB, 69.8 KiB, 73.2 KiB (stage 335732.0: task 939529))" tooltip="Exchange hashpartitioning(worklistShardItemId#3581510L, 30), REPARTITION_BY_NUM, [plan_id=1028267]"];
subgraph cluster21 {
isCluster="true";
id="cluster21";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n4.4 s (98 ms, 113 ms, 190 ms (stage 335732.0: task 939571))";
tooltip="WholeStageCodegen (3)";
22 [id="node22" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [orderProposalId#3581487L, plant#3581491, deliveryDateTime#3581492, product#3581496, orderDateTime#3581497, availabilityDateTime#3581498, worklistShardItemId#3581510L]"];
23 [id="node23" labelType="html" label="<b>Filter</b><br><br>number of output rows: 39,968" tooltip="Filter isnotnull(worklistShardItemId#3581510L)"];
24 [id="node24" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 39,968<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.2 s (93 ms, 108 ms, 185 ms (stage 335732.0: task 939571))<br>dynamic partition pruning time: 0 ms<br>metadata time: 0 ms<br>size of files read: 5.9 MiB<br>number of output rows: 39,968<br>number of partitions read: 1" tooltip="FileScan parquet [orderProposalId#3581487L,plant#3581491,deliveryDateTime#3581492,product#3581496,orderDateTime#3581497,availabilityDateTime#3581498,worklistShardItemId#3581510L,shardId#3581531,sequenceId#3581509] Batched: true, DataFilters: [isnotnull(worklistShardItemId#3581510L)], Format: Parquet, Location: PreparedDeltaFileIndex(1 paths)[hdlfs://7da5304c-1f57-47fa-b75a-0f0b4349c280.files.hdl.prod-eu20...., PartitionFilters: [isnotnull(shardId#3581531), isnotnull(sequenceId#3581509), (shardId#3581531 = 0_7_10000000532), ..., 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#3579932, items#3579934]
Arguments: [shardId#3579932, items#3579934], [isnotnull(shardId#3579932), (shardId#3579932 = 0_7_10000000532), (size(items#3579934, true) > 0), isnotnull(items#3579934)]
(2) InMemoryRelation
Arguments: [shardId#3579932, orderProposalId#3579933L, items#3579934, optimizationGroups#3579935, isOptimal#3579936, optimizationInsights#3579938], StorageLevel(disk, memory, 2 replicas)
(3) InMemoryTableScan
Output [6]: [shardId#3579932, orderProposalId#3579933L, items#3579934, optimizationGroups#3579935, isOptimal#3579936, optimizationInsights#3579938]
Arguments: [shardId#3579932, orderProposalId#3579933L, items#3579934, optimizationGroups#3579935, isOptimal#3579936, optimizationInsights#3579938], [isnotnull(shardId#3579932), (shardId#3579932 = 0_7_10000000532)]
(4) InMemoryRelation
Arguments: [shardId#3579932, orderProposalId#3579933L, items#3579934, optimizationGroups#3579935, isOptimal#3579936, lastModified#3579937, optimizationInsights#3579938], StorageLevel(disk, memory, 2 replicas)
(5) Scan ExistingRDD [codegen id : 1]
Output [7]: [shardId#3579932, orderProposalId#3579933L, items#3579934, optimizationGroups#3579935, isOptimal#3579936, lastModified#3579937, optimizationInsights#3579938]
Arguments: [shardId#3579932, orderProposalId#3579933L, items#3579934, optimizationGroups#3579935, isOptimal#3579936, lastModified#3579937, optimizationInsights#3579938], MapPartitionsRDD[152542] at start at FileStorageAdapterImpl.java:596, ExistingRDD, UnknownPartitioning(0)
(6) Filter [codegen id : 1]
Input [7]: [shardId#3579932, orderProposalId#3579933L, items#3579934, optimizationGroups#3579935, isOptimal#3579936, lastModified#3579937, optimizationInsights#3579938]
Condition : (isnotnull(shardId#3579932) AND (shardId#3579932 = 0_7_10000000532))
(7) Filter [codegen id : 1]
Input [6]: [shardId#3579932, orderProposalId#3579933L, items#3579934, optimizationGroups#3579935, isOptimal#3579936, optimizationInsights#3579938]
Condition : (isnotnull(shardId#3579932) AND (shardId#3579932 = 0_7_10000000532))
(8) Filter [codegen id : 1]
Input [2]: [shardId#3579932, items#3579934]
Condition : (((isnotnull(shardId#3579932) AND (shardId#3579932 = 0_7_10000000532)) AND (size(items#3579934, true) > 0)) AND isnotnull(items#3579934))
(9) Generate [codegen id : 1]
Input [2]: [shardId#3579932, items#3579934]
Arguments: explode(items#3579934), [shardId#3579932], false, [item#3581118]
(10) Project [codegen id : 1]
Output [3]: [shardId#3579932, item#3581118.worklistShardItemId AS worklistShardItemId#3581119L, item#3581118.qty AS qty#3581121]
Input [2]: [shardId#3579932, item#3581118]
(11) Exchange
Input [3]: [shardId#3579932, worklistShardItemId#3581119L, qty#3581121]
Arguments: hashpartitioning(worklistShardItemId#3581119L, 30), ENSURE_REQUIREMENTS, [plan_id=1028257]
(12) Sort [codegen id : 2]
Input [3]: [shardId#3579932, worklistShardItemId#3581119L, qty#3581121]
Arguments: [worklistShardItemId#3581119L ASC NULLS FIRST], false, 0
(13) Scan parquet
Output [9]: [orderProposalId#3581487L, plant#3581491, deliveryDateTime#3581492, product#3581496, orderDateTime#3581497, availabilityDateTime#3581498, worklistShardItemId#3581510L, shardId#3581531, sequenceId#3581509]
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/10000000532]
PartitionFilters: [isnotnull(shardId#3581531), isnotnull(sequenceId#3581509), (shardId#3581531 = 0_7_10000000532), (sequenceId#3581509 = 6)]
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#3581487L, plant#3581491, deliveryDateTime#3581492, product#3581496, orderDateTime#3581497, availabilityDateTime#3581498, worklistShardItemId#3581510L, shardId#3581531, sequenceId#3581509]
(15) Filter [codegen id : 3]
Input [9]: [orderProposalId#3581487L, plant#3581491, deliveryDateTime#3581492, product#3581496, orderDateTime#3581497, availabilityDateTime#3581498, worklistShardItemId#3581510L, shardId#3581531, sequenceId#3581509]
Condition : isnotnull(worklistShardItemId#3581510L)
(16) Project [codegen id : 3]
Output [7]: [orderProposalId#3581487L, plant#3581491, deliveryDateTime#3581492, product#3581496, orderDateTime#3581497, availabilityDateTime#3581498, worklistShardItemId#3581510L]
Input [9]: [orderProposalId#3581487L, plant#3581491, deliveryDateTime#3581492, product#3581496, orderDateTime#3581497, availabilityDateTime#3581498, worklistShardItemId#3581510L, shardId#3581531, sequenceId#3581509]
(17) Exchange
Input [7]: [orderProposalId#3581487L, plant#3581491, deliveryDateTime#3581492, product#3581496, orderDateTime#3581497, availabilityDateTime#3581498, worklistShardItemId#3581510L]
Arguments: hashpartitioning(worklistShardItemId#3581510L, 30), REPARTITION_BY_NUM, [plan_id=1028267]
(18) Project [codegen id : 4]
Output [7]: [worklistShardItemId#3581510L, orderProposalId#3581487L, product#3581496, plant#3581491, orderDateTime#3581497, deliveryDateTime#3581492, availabilityDateTime#3581498]
Input [7]: [orderProposalId#3581487L, plant#3581491, deliveryDateTime#3581492, product#3581496, orderDateTime#3581497, availabilityDateTime#3581498, worklistShardItemId#3581510L]
(19) Sort [codegen id : 4]
Input [7]: [worklistShardItemId#3581510L, orderProposalId#3581487L, product#3581496, plant#3581491, orderDateTime#3581497, deliveryDateTime#3581492, availabilityDateTime#3581498]
Arguments: [worklistShardItemId#3581510L ASC NULLS FIRST], false, 0
(20) SortMergeJoin [codegen id : 5]
Left keys [1]: [worklistShardItemId#3581119L]
Right keys [1]: [worklistShardItemId#3581510L]
Join type: LeftOuter
Join condition: (shardId#3579932 = 0_7_10000000532)
(21) Project [codegen id : 5]
Output [8]: [shardId#3579932, product#3581496, plant#3581491, orderDateTime#3581497, deliveryDateTime#3581492, availabilityDateTime#3581498, qty#3581121 AS orderQuantityInBaseUnit#3584729, orderProposalId#3581487L]
Input [10]: [shardId#3579932, worklistShardItemId#3581119L, qty#3581121, worklistShardItemId#3581510L, orderProposalId#3581487L, product#3581496, plant#3581491, orderDateTime#3581497, deliveryDateTime#3581492, availabilityDateTime#3581498]