digraph G {
subgraph cluster0 {
isCluster="true";
id="cluster0";
label="WholeStageCodegen (5)\n \nduration: total (min, med, max (stageId: taskId))\n2.5 s (42 ms, 50 ms, 178 ms (stage 307523.0: task 888388))";
tooltip="WholeStageCodegen (5)";
1 [id="node1" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#3394574, product#3395985, plant#3395980, orderDateTime#3395986, deliveryDateTime#3395981, availabilityDateTime#3395987, qty#3395329 AS orderQuantityInBaseUnit#3397273, orderProposalId#3395976L]"];
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 307523.0: task 888390))" tooltip="SortMergeJoin [worklistShardItemId#3395327L], [worklistShardItemId#3395999L], LeftOuter, (shardId#3394574 = 0_7_10000000532)"];
}
subgraph cluster3 {
isCluster="true";
id="cluster3";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n3.9 s (43 ms, 51 ms, 331 ms (stage 307523.0: task 888375))";
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 307523.0: task 888390))<br>peak memory total (min, med, max (stageId: taskId))<br>61.9 MiB (2.1 MiB, 2.1 MiB, 2.1 MiB (stage 307523.0: task 888390))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 307523.0: task 888390))" tooltip="Sort [worklistShardItemId#3395327L 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>190.8 KiB (3.1 KiB, 8.1 KiB, 8.5 KiB (stage 307523.0: task 888426))<br>merged fetch fallback count: 0<br>local blocks read: 468<br>remote merged chunks fetched: 0<br>remote blocks read: 432<br>data size total (min, med, max (stageId: taskId))<br>1873.5 KiB (59.3 KiB, 62.2 KiB, 66.9 KiB (stage 307522.0: task 888244))<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>51 ms (1 ms, 1 ms, 1 ms (stage 307522.0: task 888294))<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 307523.0: task 888390))<br>remote bytes read total (min, med, max (stageId: taskId))<br>176.1 KiB (3.8 KiB, 4.2 KiB, 9.3 KiB (stage 307523.0: task 888377))<br>number of partitions: 30<br>remote reqs duration total (min, med, max (stageId: taskId))<br>119 ms (3 ms, 4 ms, 5 ms (stage 307523.0: task 888377))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>366.9 KiB (11.8 KiB, 12.2 KiB, 12.9 KiB (stage 307522.0: task 888290))" tooltip="Exchange hashpartitioning(worklistShardItemId#3395327L, 30), ENSURE_REQUIREMENTS, [plan_id=978804]"];
subgraph cluster6 {
isCluster="true";
id="cluster6";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n468 ms (3 ms, 4 ms, 121 ms (stage 307522.0: task 888234))";
tooltip="WholeStageCodegen (1)";
7 [id="node7" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#3394574, item#3395326.worklistShardItemId AS worklistShardItemId#3395327L, item#3395326.qty AS qty#3395329]"];
8 [id="node8" labelType="html" label="<b>Generate</b><br><br>number of output rows: 39,968" tooltip="Generate explode(items#3394576), [shardId#3394574], false, [item#3395326]"];
9 [id="node9" labelType="html" label="<b>Filter</b><br><br>number of output rows: 792" tooltip="Filter (((isnotnull(shardId#3394574) AND (shardId#3394574 = 0_7_10000000532)) AND (size(items#3394576, true) > 0)) AND isnotnull(items#3394576))"];
}
10 [id="node10" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 792" tooltip="InMemoryTableScan [shardId#3394574, items#3394576], [isnotnull(shardId#3394574), (shardId#3394574 = 0_7_10000000532), (size(items#3394576, true) > 0), isnotnull(items#3394576)]"];
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#3394574) AND (shardId#3394574 = 0_7_10000000532))"];
}
13 [id="node13" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 0" tooltip="InMemoryTableScan [shardId#3394574, orderProposalId#3394575L, items#3394576, optimizationGroups#3394577, isOptimal#3394578, optimizationInsights#3394580], [isnotnull(shardId#3394574), (shardId#3394574 = 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#3394574) AND (shardId#3394574 = 0_7_10000000532))"];
16 [id="node16" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 0" tooltip="Scan ExistingRDD[shardId#3394574,orderProposalId#3394575L,items#3394576,optimizationGroups#3394577,isOptimal#3394578,lastModified#3394579,optimizationInsights#3394580]"];
}
subgraph cluster17 {
isCluster="true";
id="cluster17";
label="WholeStageCodegen (4)\n \nduration: total (min, med, max (stageId: taskId))\n3.4 s (42 ms, 50 ms, 270 ms (stage 307523.0: task 888375))";
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 307523.0: task 888390))<br>peak memory total (min, med, max (stageId: taskId))<br>61.9 MiB (2.1 MiB, 2.1 MiB, 2.1 MiB (stage 307523.0: task 888390))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 307523.0: task 888390))" tooltip="Sort [worklistShardItemId#3395999L ASC NULLS FIRST], false, 0"];
19 [id="node19" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [worklistShardItemId#3395999L, orderProposalId#3395976L, product#3395985, plant#3395980, orderDateTime#3395986, deliveryDateTime#3395981, availabilityDateTime#3395987]"];
}
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>1048.9 KiB (32.9 KiB, 35.0 KiB, 37.3 KiB (stage 307523.0: task 888445))<br>merged fetch fallback count: 0<br>local blocks read: 450<br>remote merged chunks fetched: 0<br>remote blocks read: 660<br>data size total (min, med, max (stageId: taskId))<br>4.9 MiB (128.6 KiB, 134.9 KiB, 142.5 KiB (stage 307521.0: task 888235))<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, 2 ms (stage 307521.0: task 888307))<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 307523.0: task 888390))<br>remote bytes read total (min, med, max (stageId: taskId))<br>1529.9 KiB (48.0 KiB, 51.0 KiB, 53.9 KiB (stage 307523.0: task 888430))<br>number of partitions: 30<br>remote reqs duration total (min, med, max (stageId: taskId))<br>131 ms (4 ms, 4 ms, 5 ms (stage 307523.0: task 888389))<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 307521.0: task 888235))" tooltip="Exchange hashpartitioning(worklistShardItemId#3395999L, 30), REPARTITION_BY_NUM, [plan_id=978818]"];
subgraph cluster21 {
isCluster="true";
id="cluster21";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n5.1 s (90 ms, 117 ms, 332 ms (stage 307521.0: task 888228))";
tooltip="WholeStageCodegen (3)";
22 [id="node22" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [orderProposalId#3395976L, plant#3395980, deliveryDateTime#3395981, product#3395985, orderDateTime#3395986, availabilityDateTime#3395987, worklistShardItemId#3395999L]"];
23 [id="node23" labelType="html" label="<b>Filter</b><br><br>number of output rows: 39,968" tooltip="Filter isnotnull(worklistShardItemId#3395999L)"];
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.3 s (84 ms, 113 ms, 196 ms (stage 307521.0: task 888231))<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#3395976L,plant#3395980,deliveryDateTime#3395981,product#3395985,orderDateTime#3395986,availabilityDateTime#3395987,worklistShardItemId#3395999L,shardId#3396020,sequenceId#3395998] Batched: true, DataFilters: [isnotnull(worklistShardItemId#3395999L)], Format: Parquet, Location: PreparedDeltaFileIndex(1 paths)[hdlfs://7da5304c-1f57-47fa-b75a-0f0b4349c280.files.hdl.prod-eu20...., PartitionFilters: [isnotnull(shardId#3396020), isnotnull(sequenceId#3395998), (shardId#3396020 = 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#3394574, items#3394576]
Arguments: [shardId#3394574, items#3394576], [isnotnull(shardId#3394574), (shardId#3394574 = 0_7_10000000532), (size(items#3394576, true) > 0), isnotnull(items#3394576)]
(2) InMemoryRelation
Arguments: [shardId#3394574, orderProposalId#3394575L, items#3394576, optimizationGroups#3394577, isOptimal#3394578, optimizationInsights#3394580], StorageLevel(disk, memory, 2 replicas)
(3) InMemoryTableScan
Output [6]: [shardId#3394574, orderProposalId#3394575L, items#3394576, optimizationGroups#3394577, isOptimal#3394578, optimizationInsights#3394580]
Arguments: [shardId#3394574, orderProposalId#3394575L, items#3394576, optimizationGroups#3394577, isOptimal#3394578, optimizationInsights#3394580], [isnotnull(shardId#3394574), (shardId#3394574 = 0_7_10000000532)]
(4) InMemoryRelation
Arguments: [shardId#3394574, orderProposalId#3394575L, items#3394576, optimizationGroups#3394577, isOptimal#3394578, lastModified#3394579, optimizationInsights#3394580], StorageLevel(disk, memory, 2 replicas)
(5) Scan ExistingRDD [codegen id : 1]
Output [7]: [shardId#3394574, orderProposalId#3394575L, items#3394576, optimizationGroups#3394577, isOptimal#3394578, lastModified#3394579, optimizationInsights#3394580]
Arguments: [shardId#3394574, orderProposalId#3394575L, items#3394576, optimizationGroups#3394577, isOptimal#3394578, lastModified#3394579, optimizationInsights#3394580], MapPartitionsRDD[144316] at start at FileStorageAdapterImpl.java:596, ExistingRDD, UnknownPartitioning(0)
(6) Filter [codegen id : 1]
Input [7]: [shardId#3394574, orderProposalId#3394575L, items#3394576, optimizationGroups#3394577, isOptimal#3394578, lastModified#3394579, optimizationInsights#3394580]
Condition : (isnotnull(shardId#3394574) AND (shardId#3394574 = 0_7_10000000532))
(7) Filter [codegen id : 1]
Input [6]: [shardId#3394574, orderProposalId#3394575L, items#3394576, optimizationGroups#3394577, isOptimal#3394578, optimizationInsights#3394580]
Condition : (isnotnull(shardId#3394574) AND (shardId#3394574 = 0_7_10000000532))
(8) Filter [codegen id : 1]
Input [2]: [shardId#3394574, items#3394576]
Condition : (((isnotnull(shardId#3394574) AND (shardId#3394574 = 0_7_10000000532)) AND (size(items#3394576, true) > 0)) AND isnotnull(items#3394576))
(9) Generate [codegen id : 1]
Input [2]: [shardId#3394574, items#3394576]
Arguments: explode(items#3394576), [shardId#3394574], false, [item#3395326]
(10) Project [codegen id : 1]
Output [3]: [shardId#3394574, item#3395326.worklistShardItemId AS worklistShardItemId#3395327L, item#3395326.qty AS qty#3395329]
Input [2]: [shardId#3394574, item#3395326]
(11) Exchange
Input [3]: [shardId#3394574, worklistShardItemId#3395327L, qty#3395329]
Arguments: hashpartitioning(worklistShardItemId#3395327L, 30), ENSURE_REQUIREMENTS, [plan_id=978804]
(12) Sort [codegen id : 2]
Input [3]: [shardId#3394574, worklistShardItemId#3395327L, qty#3395329]
Arguments: [worklistShardItemId#3395327L ASC NULLS FIRST], false, 0
(13) Scan parquet
Output [9]: [orderProposalId#3395976L, plant#3395980, deliveryDateTime#3395981, product#3395985, orderDateTime#3395986, availabilityDateTime#3395987, worklistShardItemId#3395999L, shardId#3396020, sequenceId#3395998]
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#3396020), isnotnull(sequenceId#3395998), (shardId#3396020 = 0_7_10000000532), (sequenceId#3395998 = 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#3395976L, plant#3395980, deliveryDateTime#3395981, product#3395985, orderDateTime#3395986, availabilityDateTime#3395987, worklistShardItemId#3395999L, shardId#3396020, sequenceId#3395998]
(15) Filter [codegen id : 3]
Input [9]: [orderProposalId#3395976L, plant#3395980, deliveryDateTime#3395981, product#3395985, orderDateTime#3395986, availabilityDateTime#3395987, worklistShardItemId#3395999L, shardId#3396020, sequenceId#3395998]
Condition : isnotnull(worklistShardItemId#3395999L)
(16) Project [codegen id : 3]
Output [7]: [orderProposalId#3395976L, plant#3395980, deliveryDateTime#3395981, product#3395985, orderDateTime#3395986, availabilityDateTime#3395987, worklistShardItemId#3395999L]
Input [9]: [orderProposalId#3395976L, plant#3395980, deliveryDateTime#3395981, product#3395985, orderDateTime#3395986, availabilityDateTime#3395987, worklistShardItemId#3395999L, shardId#3396020, sequenceId#3395998]
(17) Exchange
Input [7]: [orderProposalId#3395976L, plant#3395980, deliveryDateTime#3395981, product#3395985, orderDateTime#3395986, availabilityDateTime#3395987, worklistShardItemId#3395999L]
Arguments: hashpartitioning(worklistShardItemId#3395999L, 30), REPARTITION_BY_NUM, [plan_id=978818]
(18) Project [codegen id : 4]
Output [7]: [worklistShardItemId#3395999L, orderProposalId#3395976L, product#3395985, plant#3395980, orderDateTime#3395986, deliveryDateTime#3395981, availabilityDateTime#3395987]
Input [7]: [orderProposalId#3395976L, plant#3395980, deliveryDateTime#3395981, product#3395985, orderDateTime#3395986, availabilityDateTime#3395987, worklistShardItemId#3395999L]
(19) Sort [codegen id : 4]
Input [7]: [worklistShardItemId#3395999L, orderProposalId#3395976L, product#3395985, plant#3395980, orderDateTime#3395986, deliveryDateTime#3395981, availabilityDateTime#3395987]
Arguments: [worklistShardItemId#3395999L ASC NULLS FIRST], false, 0
(20) SortMergeJoin [codegen id : 5]
Left keys [1]: [worklistShardItemId#3395327L]
Right keys [1]: [worklistShardItemId#3395999L]
Join type: LeftOuter
Join condition: (shardId#3394574 = 0_7_10000000532)
(21) Project [codegen id : 5]
Output [8]: [shardId#3394574, product#3395985, plant#3395980, orderDateTime#3395986, deliveryDateTime#3395981, availabilityDateTime#3395987, qty#3395329 AS orderQuantityInBaseUnit#3397273, orderProposalId#3395976L]
Input [10]: [shardId#3394574, worklistShardItemId#3395327L, qty#3395329, worklistShardItemId#3395999L, orderProposalId#3395976L, product#3395985, plant#3395980, orderDateTime#3395986, deliveryDateTime#3395981, availabilityDateTime#3395987]