digraph G {
subgraph cluster0 {
isCluster="true";
id="cluster0";
label="WholeStageCodegen (5)\n \nduration: total (min, med, max (stageId: taskId))\n2.9 s (57 ms, 71 ms, 164 ms (stage 1034432.0: task 2668997))";
tooltip="WholeStageCodegen (5)";
1 [id="node1" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#10214802, product#10215524, plant#10215519, orderDateTime#10215525, deliveryDateTime#10215520, availabilityDateTime#10215526, qty#10215316 AS orderQuantityInBaseUnit#10215797, orderProposalId#10215515L]"];
2 [id="node2" labelType="html" label="<b>SortMergeJoin</b><br><br>number of output rows: 119,954<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 1034432.0: task 2668994))" tooltip="SortMergeJoin [worklistShardItemId#10215314L], [worklistShardItemId#10215538L], LeftOuter, (shardId#10214802 = 0_3_10000000540)"];
}
subgraph cluster3 {
isCluster="true";
id="cluster3";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n3.4 s (58 ms, 71 ms, 222 ms (stage 1034432.0: task 2668997))";
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 1034432.0: task 2668994))<br>peak memory total (min, med, max (stageId: taskId))<br>63.9 MiB (2.1 MiB, 2.1 MiB, 2.3 MiB (stage 1034432.0: task 2669003))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 1034432.0: task 2668994))" tooltip="Sort [worklistShardItemId#10215314L ASC NULLS FIRST], false, 0"];
}
5 [id="node5" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 119,954<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 119,954<br>local bytes read total (min, med, max (stageId: taskId))<br>421.5 KiB (10.2 KiB, 17.1 KiB, 17.8 KiB (stage 1034432.0: task 2668990))<br>merged fetch fallback count: 0<br>local blocks read: 435<br>remote merged chunks fetched: 0<br>remote blocks read: 465<br>data size total (min, med, max (stageId: taskId))<br>5.5 MiB (167.3 KiB, 193.6 KiB, 200.8 KiB (stage 1034431.0: task 2668961))<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>47 ms (1 ms, 1 ms, 2 ms (stage 1034431.0: task 2668958))<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 1034432.0: task 2668994))<br>remote bytes read total (min, med, max (stageId: taskId))<br>453.5 KiB (11.4 KiB, 18.0 KiB, 18.9 KiB (stage 1034432.0: task 2669013))<br>number of partitions: 30<br>remote reqs duration total (min, med, max (stageId: taskId))<br>126 ms (3 ms, 4 ms, 6 ms (stage 1034432.0: task 2669011))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>875.0 KiB (26.4 KiB, 30.0 KiB, 31.3 KiB (stage 1034431.0: task 2668971))" tooltip="Exchange hashpartitioning(worklistShardItemId#10215314L, 30), ENSURE_REQUIREMENTS, [plan_id=3020282]"];
subgraph cluster6 {
isCluster="true";
id="cluster6";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n152 ms (3 ms, 4 ms, 11 ms (stage 1034431.0: task 2668981))";
tooltip="WholeStageCodegen (1)";
7 [id="node7" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#10214802, item#10215313.worklistShardItemId AS worklistShardItemId#10215314L, item#10215313.qty AS qty#10215316]"];
8 [id="node8" labelType="html" label="<b>Generate</b><br><br>number of output rows: 119,954" tooltip="Generate explode(items#10214804), [shardId#10214802], false, [item#10215313]"];
9 [id="node9" labelType="html" label="<b>Filter</b><br><br>number of output rows: 2,354" tooltip="Filter (((isnotnull(shardId#10214802) AND (shardId#10214802 = 0_3_10000000540)) AND (size(items#10214804, true) > 0)) AND isnotnull(items#10214804))"];
}
10 [id="node10" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 2,354" tooltip="InMemoryTableScan [shardId#10214802, items#10214804], [isnotnull(shardId#10214802), (shardId#10214802 = 0_3_10000000540), (size(items#10214804, true) > 0), isnotnull(items#10214804)]"];
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#10214802) AND (shardId#10214802 = 0_3_10000000540))"];
}
13 [id="node13" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 0" tooltip="InMemoryTableScan [shardId#10214802, orderProposalId#10214803L, items#10214804, optimizationGroups#10214805, isOptimal#10214806, optimizationInsights#10214808], [isnotnull(shardId#10214802), (shardId#10214802 = 0_3_10000000540)]"];
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#10214802) AND (shardId#10214802 = 0_3_10000000540))"];
16 [id="node16" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 0" tooltip="Scan ExistingRDD[shardId#10214802,orderProposalId#10214803L,items#10214804,optimizationGroups#10214805,isOptimal#10214806,lastModified#10214807,optimizationInsights#10214808]"];
}
subgraph cluster17 {
isCluster="true";
id="cluster17";
label="WholeStageCodegen (4)\n \nduration: total (min, med, max (stageId: taskId))\n3.1 s (58 ms, 71 ms, 191 ms (stage 1034432.0: task 2668997))";
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 1034432.0: task 2668994))<br>peak memory total (min, med, max (stageId: taskId))<br>63.9 MiB (2.1 MiB, 2.1 MiB, 2.3 MiB (stage 1034432.0: task 2669003))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 1034432.0: task 2668994))" tooltip="Sort [worklistShardItemId#10215538L ASC NULLS FIRST], false, 0"];
19 [id="node19" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [worklistShardItemId#10215538L, orderProposalId#10215515L, product#10215524, plant#10215519, orderDateTime#10215525, deliveryDateTime#10215520, availabilityDateTime#10215526]"];
}
20 [id="node20" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 119,954<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 119,954<br>local bytes read total (min, med, max (stageId: taskId))<br>1822.7 KiB (57.2 KiB, 60.8 KiB, 63.7 KiB (stage 1034432.0: task 2668996))<br>merged fetch fallback count: 0<br>local blocks read: 300<br>remote merged chunks fetched: 0<br>remote blocks read: 810<br>data size total (min, med, max (stageId: taskId))<br>14.6 MiB (390.9 KiB, 406.1 KiB, 422.4 KiB (stage 1034275.0: task 2668922))<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>68 ms (1 ms, 1 ms, 2 ms (stage 1034275.0: task 2668979))<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 1034432.0: task 2668994))<br>remote bytes read total (min, med, max (stageId: taskId))<br>4.9 MiB (159.4 KiB, 166.1 KiB, 171.7 KiB (stage 1034432.0: task 2669003))<br>number of partitions: 30<br>remote reqs duration total (min, med, max (stageId: taskId))<br>260 ms (6 ms, 7 ms, 17 ms (stage 1034432.0: task 2668994))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>6.6 MiB (177.3 KiB, 183.8 KiB, 190.7 KiB (stage 1034275.0: task 2668922))" tooltip="Exchange hashpartitioning(worklistShardItemId#10215538L, 30), REPARTITION_BY_NUM, [plan_id=3020292]"];
subgraph cluster21 {
isCluster="true";
id="cluster21";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n7.1 s (125 ms, 188 ms, 305 ms (stage 1034275.0: task 2668939))";
tooltip="WholeStageCodegen (3)";
22 [id="node22" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [orderProposalId#10215515L, plant#10215519, deliveryDateTime#10215520, product#10215524, orderDateTime#10215525, availabilityDateTime#10215526, worklistShardItemId#10215538L]"];
23 [id="node23" labelType="html" label="<b>Filter</b><br><br>number of output rows: 119,954" tooltip="Filter isnotnull(worklistShardItemId#10215538L)"];
24 [id="node24" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 119,954<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.9 s (117 ms, 157 ms, 219 ms (stage 1034275.0: task 2668939))<br>dynamic partition pruning time: 0 ms<br>metadata time: 0 ms<br>size of files read: 15.5 MiB<br>number of output rows: 119,954<br>number of partitions read: 1" tooltip="FileScan parquet [orderProposalId#10215515L,plant#10215519,deliveryDateTime#10215520,product#10215524,orderDateTime#10215525,availabilityDateTime#10215526,worklistShardItemId#10215538L,shardId#10215559,sequenceId#10215537] Batched: true, DataFilters: [isnotnull(worklistShardItemId#10215538L)], Format: Parquet, Location: PreparedDeltaFileIndex(1 paths)[hdlfs://7da5304c-1f57-47fa-b75a-0f0b4349c280.files.hdl.prod-eu20...., PartitionFilters: [isnotnull(shardId#10215559), isnotnull(sequenceId#10215537), (shardId#10215559 = 0_3_10000000540..., 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#10214802, items#10214804]
Arguments: [shardId#10214802, items#10214804], [isnotnull(shardId#10214802), (shardId#10214802 = 0_3_10000000540), (size(items#10214804, true) > 0), isnotnull(items#10214804)]
(2) InMemoryRelation
Arguments: [shardId#10214802, orderProposalId#10214803L, items#10214804, optimizationGroups#10214805, isOptimal#10214806, optimizationInsights#10214808], StorageLevel(disk, memory, 2 replicas)
(3) InMemoryTableScan
Output [6]: [shardId#10214802, orderProposalId#10214803L, items#10214804, optimizationGroups#10214805, isOptimal#10214806, optimizationInsights#10214808]
Arguments: [shardId#10214802, orderProposalId#10214803L, items#10214804, optimizationGroups#10214805, isOptimal#10214806, optimizationInsights#10214808], [isnotnull(shardId#10214802), (shardId#10214802 = 0_3_10000000540)]
(4) InMemoryRelation
Arguments: [shardId#10214802, orderProposalId#10214803L, items#10214804, optimizationGroups#10214805, isOptimal#10214806, lastModified#10214807, optimizationInsights#10214808], StorageLevel(disk, memory, 2 replicas)
(5) Scan ExistingRDD [codegen id : 1]
Output [7]: [shardId#10214802, orderProposalId#10214803L, items#10214804, optimizationGroups#10214805, isOptimal#10214806, lastModified#10214807, optimizationInsights#10214808]
Arguments: [shardId#10214802, orderProposalId#10214803L, items#10214804, optimizationGroups#10214805, isOptimal#10214806, lastModified#10214807, optimizationInsights#10214808], MapPartitionsRDD[434374] at start at FileStorageAdapterImpl.java:596, ExistingRDD, UnknownPartitioning(0)
(6) Filter [codegen id : 1]
Input [7]: [shardId#10214802, orderProposalId#10214803L, items#10214804, optimizationGroups#10214805, isOptimal#10214806, lastModified#10214807, optimizationInsights#10214808]
Condition : (isnotnull(shardId#10214802) AND (shardId#10214802 = 0_3_10000000540))
(7) Filter [codegen id : 1]
Input [6]: [shardId#10214802, orderProposalId#10214803L, items#10214804, optimizationGroups#10214805, isOptimal#10214806, optimizationInsights#10214808]
Condition : (isnotnull(shardId#10214802) AND (shardId#10214802 = 0_3_10000000540))
(8) Filter [codegen id : 1]
Input [2]: [shardId#10214802, items#10214804]
Condition : (((isnotnull(shardId#10214802) AND (shardId#10214802 = 0_3_10000000540)) AND (size(items#10214804, true) > 0)) AND isnotnull(items#10214804))
(9) Generate [codegen id : 1]
Input [2]: [shardId#10214802, items#10214804]
Arguments: explode(items#10214804), [shardId#10214802], false, [item#10215313]
(10) Project [codegen id : 1]
Output [3]: [shardId#10214802, item#10215313.worklistShardItemId AS worklistShardItemId#10215314L, item#10215313.qty AS qty#10215316]
Input [2]: [shardId#10214802, item#10215313]
(11) Exchange
Input [3]: [shardId#10214802, worklistShardItemId#10215314L, qty#10215316]
Arguments: hashpartitioning(worklistShardItemId#10215314L, 30), ENSURE_REQUIREMENTS, [plan_id=3020282]
(12) Sort [codegen id : 2]
Input [3]: [shardId#10214802, worklistShardItemId#10215314L, qty#10215316]
Arguments: [worklistShardItemId#10215314L ASC NULLS FIRST], false, 0
(13) Scan parquet
Output [9]: [orderProposalId#10215515L, plant#10215519, deliveryDateTime#10215520, product#10215524, orderDateTime#10215525, availabilityDateTime#10215526, worklistShardItemId#10215538L, shardId#10215559, sequenceId#10215537]
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/10000000540]
PartitionFilters: [isnotnull(shardId#10215559), isnotnull(sequenceId#10215537), (shardId#10215559 = 0_3_10000000540), (sequenceId#10215537 = 12)]
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#10215515L, plant#10215519, deliveryDateTime#10215520, product#10215524, orderDateTime#10215525, availabilityDateTime#10215526, worklistShardItemId#10215538L, shardId#10215559, sequenceId#10215537]
(15) Filter [codegen id : 3]
Input [9]: [orderProposalId#10215515L, plant#10215519, deliveryDateTime#10215520, product#10215524, orderDateTime#10215525, availabilityDateTime#10215526, worklistShardItemId#10215538L, shardId#10215559, sequenceId#10215537]
Condition : isnotnull(worklistShardItemId#10215538L)
(16) Project [codegen id : 3]
Output [7]: [orderProposalId#10215515L, plant#10215519, deliveryDateTime#10215520, product#10215524, orderDateTime#10215525, availabilityDateTime#10215526, worklistShardItemId#10215538L]
Input [9]: [orderProposalId#10215515L, plant#10215519, deliveryDateTime#10215520, product#10215524, orderDateTime#10215525, availabilityDateTime#10215526, worklistShardItemId#10215538L, shardId#10215559, sequenceId#10215537]
(17) Exchange
Input [7]: [orderProposalId#10215515L, plant#10215519, deliveryDateTime#10215520, product#10215524, orderDateTime#10215525, availabilityDateTime#10215526, worklistShardItemId#10215538L]
Arguments: hashpartitioning(worklistShardItemId#10215538L, 30), REPARTITION_BY_NUM, [plan_id=3020292]
(18) Project [codegen id : 4]
Output [7]: [worklistShardItemId#10215538L, orderProposalId#10215515L, product#10215524, plant#10215519, orderDateTime#10215525, deliveryDateTime#10215520, availabilityDateTime#10215526]
Input [7]: [orderProposalId#10215515L, plant#10215519, deliveryDateTime#10215520, product#10215524, orderDateTime#10215525, availabilityDateTime#10215526, worklistShardItemId#10215538L]
(19) Sort [codegen id : 4]
Input [7]: [worklistShardItemId#10215538L, orderProposalId#10215515L, product#10215524, plant#10215519, orderDateTime#10215525, deliveryDateTime#10215520, availabilityDateTime#10215526]
Arguments: [worklistShardItemId#10215538L ASC NULLS FIRST], false, 0
(20) SortMergeJoin [codegen id : 5]
Left keys [1]: [worklistShardItemId#10215314L]
Right keys [1]: [worklistShardItemId#10215538L]
Join type: LeftOuter
Join condition: (shardId#10214802 = 0_3_10000000540)
(21) Project [codegen id : 5]
Output [8]: [shardId#10214802, product#10215524, plant#10215519, orderDateTime#10215525, deliveryDateTime#10215520, availabilityDateTime#10215526, qty#10215316 AS orderQuantityInBaseUnit#10215797, orderProposalId#10215515L]
Input [10]: [shardId#10214802, worklistShardItemId#10215314L, qty#10215316, worklistShardItemId#10215538L, orderProposalId#10215515L, product#10215524, plant#10215519, orderDateTime#10215525, deliveryDateTime#10215520, availabilityDateTime#10215526]