digraph G {
subgraph cluster0 {
isCluster="true";
id="cluster0";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n2.7 s (6 ms, 64 ms, 229 ms (stage 3727179.0: task 6725947))";
tooltip="WholeStageCodegen (3)";
1 [id="node1" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#15070782, product#15071504, plant#15071499, orderDateTime#15071505, deliveryDateTime#15071500, availabilityDateTime#15071506, qty#15071296 AS orderQuantityInBaseUnit#15071571, orderProposalId#15071495L]"];
2 [id="node2" labelType="html" label="<b>BroadcastHashJoin</b><br><br>number of output rows: 29" tooltip="BroadcastHashJoin [worklistShardItemId#15071294L], [worklistShardItemId#15071518L], LeftOuter, BuildRight, (shardId#15070782 = 0_1_10000001452), false"];
3 [id="node3" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#15070782, item#15071293.worklistShardItemId AS worklistShardItemId#15071294L, item#15071293.qty AS qty#15071296]"];
4 [id="node4" labelType="html" label="<b>Generate</b><br><br>number of output rows: 29" tooltip="Generate explode(items#15070784), [shardId#15070782], false, [item#15071293]"];
5 [id="node5" labelType="html" label="<b>Filter</b><br><br>number of output rows: 2" tooltip="Filter (((isnotnull(shardId#15070782) AND (shardId#15070782 = 0_1_10000001452)) AND (size(items#15070784, true) > 0)) AND isnotnull(items#15070784))"];
}
6 [id="node6" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 2" tooltip="InMemoryTableScan [shardId#15070782, items#15070784], [isnotnull(shardId#15070782), (shardId#15070782 = 0_1_10000001452), (size(items#15070784, true) > 0), isnotnull(items#15070784)]"];
subgraph cluster7 {
isCluster="true";
id="cluster7";
label="WholeStageCodegen (1)\n \nduration: 0 ms";
tooltip="WholeStageCodegen (1)";
8 [id="node8" labelType="html" label="<b>Filter</b><br><br>number of output rows: 0" tooltip="Filter (isnotnull(shardId#15070782) AND (shardId#15070782 = 0_1_10000001452))"];
}
9 [id="node9" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 0" tooltip="InMemoryTableScan [shardId#15070782, orderProposalId#15070783L, items#15070784, optimizationGroups#15070785, isOptimal#15070786, optimizationInsights#15070788], [isnotnull(shardId#15070782), (shardId#15070782 = 0_1_10000001452)]"];
subgraph cluster10 {
isCluster="true";
id="cluster10";
label="WholeStageCodegen (1)\n \nduration: 0 ms";
tooltip="WholeStageCodegen (1)";
11 [id="node11" labelType="html" label="<b>Filter</b><br><br>number of output rows: 0" tooltip="Filter (isnotnull(shardId#15070782) AND (shardId#15070782 = 0_1_10000001452))"];
12 [id="node12" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 0" tooltip="Scan ExistingRDD[shardId#15070782,orderProposalId#15070783L,items#15070784,optimizationGroups#15070785,isOptimal#15070786,lastModified#15070787,optimizationInsights#15070788]"];
}
13 [id="node13" labelType="html" label="<b>BroadcastExchange</b><br><br>time to broadcast: 0 ms<br>time to build: 0 ms<br>time to collect: 380 ms<br>number of output rows: 29<br>data size: 1028.4 KiB" tooltip="BroadcastExchange HashedRelationBroadcastMode(List(input[0, bigint, true]),false), [plan_id=7843270]"];
subgraph cluster14 {
isCluster="true";
id="cluster14";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n15 ms (0 ms, 0 ms, 3 ms (stage 3727068.0: task 6725921))";
tooltip="WholeStageCodegen (2)";
15 [id="node15" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [worklistShardItemId#15071518L, orderProposalId#15071495L, product#15071504, plant#15071499, orderDateTime#15071505, deliveryDateTime#15071500, availabilityDateTime#15071506]"];
}
16 [id="node16" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 29<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 29<br>local bytes read total (min, med, max (stageId: taskId))<br>3.7 KiB (178.0 B, 178.0 B, 356.0 B (stage 3727068.0: task 6725904))<br>merged fetch fallback count: 0<br>local blocks read: 21<br>remote merged chunks fetched: 0<br>remote blocks read: 8<br>data size total (min, med, max (stageId: taskId))<br>3.6 KiB (128.0 B, 256.0 B, 384.0 B (stage 3727067.0: task 6725890))<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>8 ms (0 ms, 0 ms, 0 ms (stage 3727067.0: task 6725894))<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>2 ms (0 ms, 0 ms, 2 ms (stage 3727068.0: task 6725921))<br>remote bytes read total (min, med, max (stageId: taskId))<br>1424.0 B (178.0 B, 178.0 B, 356.0 B (stage 3727068.0: task 6725921))<br>number of partitions: 30<br>remote reqs duration total (min, med, max (stageId: taskId))<br>14 ms (0 ms, 2 ms, 5 ms (stage 3727068.0: task 6725921))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>5.0 KiB (178.0 B, 356.0 B, 534.0 B (stage 3727067.0: task 6725890))" tooltip="Exchange hashpartitioning(worklistShardItemId#15071518L, 30), REPARTITION_BY_NUM, [plan_id=7843266]"];
subgraph cluster17 {
isCluster="true";
id="cluster17";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n2.5 s (70 ms, 168 ms, 217 ms (stage 3727067.0: task 6725894))";
tooltip="WholeStageCodegen (1)";
18 [id="node18" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [orderProposalId#15071495L, plant#15071499, deliveryDateTime#15071500, product#15071504, orderDateTime#15071505, availabilityDateTime#15071506, worklistShardItemId#15071518L]"];
19 [id="node19" labelType="html" label="<b>Filter</b><br><br>number of output rows: 29" tooltip="Filter isnotnull(worklistShardItemId#15071518L)"];
20 [id="node20" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 29<br>number of input batches: 17" tooltip="ColumnarToRow"];
}
21 [id="node21" labelType="html" label="<b>Scan parquet </b><br><br>number of files read: 17<br>scan time total (min, med, max (stageId: taskId))<br>1.6 s (69 ms, 93 ms, 132 ms (stage 3727067.0: task 6725894))<br>dynamic partition pruning time: 0 ms<br>metadata time: 0 ms<br>size of files read: 319.0 KiB<br>number of output rows: 29<br>number of partitions read: 1" tooltip="FileScan parquet [orderProposalId#15071495L,plant#15071499,deliveryDateTime#15071500,product#15071504,orderDateTime#15071505,availabilityDateTime#15071506,worklistShardItemId#15071518L,shardId#15071539,sequenceId#15071517] Batched: true, DataFilters: [isnotnull(worklistShardItemId#15071518L)], Format: Parquet, Location: PreparedDeltaFileIndex(1 paths)[hdlfs://332d7051-0d16-44f5-ae76-bf2dcf30365f.files.hdl.prod-eu20...., PartitionFilters: [isnotnull(shardId#15071539), isnotnull(sequenceId#15071517), (shardId#15071539 = 0_1_10000001452..., PushedFilters: [IsNotNull(worklistShardItemId)], ReadSchema: struct<orderProposalId:bigint,plant:string,deliveryDateTime:timestamp,product:string,orderDateTim..."];
2->1;
3->2;
4->3;
5->4;
6->5;
8->6;
9->8;
11->9;
12->11;
13->2;
15->13;
16->15;
18->16;
19->18;
20->19;
21->20;
}
== Physical Plan ==
* Project (19)
+- * BroadcastHashJoin LeftOuter BuildRight (18)
:- * Project (10)
: +- * Generate (9)
: +- * Filter (8)
: +- InMemoryTableScan (1)
: +- InMemoryRelation (2)
: +- * Filter (7)
: +- InMemoryTableScan (3)
: +- InMemoryRelation (4)
: +- * Filter (6)
: +- * Scan ExistingRDD (5)
+- BroadcastExchange (17)
+- * Project (16)
+- Exchange (15)
+- * Project (14)
+- * Filter (13)
+- * ColumnarToRow (12)
+- Scan parquet (11)
(1) InMemoryTableScan
Output [2]: [shardId#15070782, items#15070784]
Arguments: [shardId#15070782, items#15070784], [isnotnull(shardId#15070782), (shardId#15070782 = 0_1_10000001452), (size(items#15070784, true) > 0), isnotnull(items#15070784)]
(2) InMemoryRelation
Arguments: [shardId#15070782, orderProposalId#15070783L, items#15070784, optimizationGroups#15070785, isOptimal#15070786, optimizationInsights#15070788], StorageLevel(disk, memory, 2 replicas)
(3) InMemoryTableScan
Output [6]: [shardId#15070782, orderProposalId#15070783L, items#15070784, optimizationGroups#15070785, isOptimal#15070786, optimizationInsights#15070788]
Arguments: [shardId#15070782, orderProposalId#15070783L, items#15070784, optimizationGroups#15070785, isOptimal#15070786, optimizationInsights#15070788], [isnotnull(shardId#15070782), (shardId#15070782 = 0_1_10000001452)]
(4) InMemoryRelation
Arguments: [shardId#15070782, orderProposalId#15070783L, items#15070784, optimizationGroups#15070785, isOptimal#15070786, lastModified#15070787, optimizationInsights#15070788], StorageLevel(disk, memory, 2 replicas)
(5) Scan ExistingRDD [codegen id : 1]
Output [7]: [shardId#15070782, orderProposalId#15070783L, items#15070784, optimizationGroups#15070785, isOptimal#15070786, lastModified#15070787, optimizationInsights#15070788]
Arguments: [shardId#15070782, orderProposalId#15070783L, items#15070784, optimizationGroups#15070785, isOptimal#15070786, lastModified#15070787, optimizationInsights#15070788], MapPartitionsRDD[1062227] at start at FileStorageAdapterImpl.java:598, ExistingRDD, UnknownPartitioning(0)
(6) Filter [codegen id : 1]
Input [7]: [shardId#15070782, orderProposalId#15070783L, items#15070784, optimizationGroups#15070785, isOptimal#15070786, lastModified#15070787, optimizationInsights#15070788]
Condition : (isnotnull(shardId#15070782) AND (shardId#15070782 = 0_1_10000001452))
(7) Filter [codegen id : 1]
Input [6]: [shardId#15070782, orderProposalId#15070783L, items#15070784, optimizationGroups#15070785, isOptimal#15070786, optimizationInsights#15070788]
Condition : (isnotnull(shardId#15070782) AND (shardId#15070782 = 0_1_10000001452))
(8) Filter [codegen id : 3]
Input [2]: [shardId#15070782, items#15070784]
Condition : (((isnotnull(shardId#15070782) AND (shardId#15070782 = 0_1_10000001452)) AND (size(items#15070784, true) > 0)) AND isnotnull(items#15070784))
(9) Generate [codegen id : 3]
Input [2]: [shardId#15070782, items#15070784]
Arguments: explode(items#15070784), [shardId#15070782], false, [item#15071293]
(10) Project [codegen id : 3]
Output [3]: [shardId#15070782, item#15071293.worklistShardItemId AS worklistShardItemId#15071294L, item#15071293.qty AS qty#15071296]
Input [2]: [shardId#15070782, item#15071293]
(11) Scan parquet
Output [9]: [orderProposalId#15071495L, plant#15071499, deliveryDateTime#15071500, product#15071504, orderDateTime#15071505, availabilityDateTime#15071506, worklistShardItemId#15071518L, shardId#15071539, sequenceId#15071517]
Batched: true
Location: PreparedDeltaFileIndex [hdlfs://332d7051-0d16-44f5-ae76-bf2dcf30365f.files.hdl.prod-eu20.hanacloud.ondemand.com:443/crp-order-qty-opt-service/internal/prod-plant-snapshot/10000001452]
PartitionFilters: [isnotnull(shardId#15071539), isnotnull(sequenceId#15071517), (shardId#15071539 = 0_1_10000001452), (sequenceId#15071517 = 5)]
PushedFilters: [IsNotNull(worklistShardItemId)]
ReadSchema: struct<orderProposalId:bigint,plant:string,deliveryDateTime:timestamp,product:string,orderDateTime:timestamp,availabilityDateTime:timestamp,worklistShardItemId:bigint>
(12) ColumnarToRow [codegen id : 1]
Input [9]: [orderProposalId#15071495L, plant#15071499, deliveryDateTime#15071500, product#15071504, orderDateTime#15071505, availabilityDateTime#15071506, worklistShardItemId#15071518L, shardId#15071539, sequenceId#15071517]
(13) Filter [codegen id : 1]
Input [9]: [orderProposalId#15071495L, plant#15071499, deliveryDateTime#15071500, product#15071504, orderDateTime#15071505, availabilityDateTime#15071506, worklistShardItemId#15071518L, shardId#15071539, sequenceId#15071517]
Condition : isnotnull(worklistShardItemId#15071518L)
(14) Project [codegen id : 1]
Output [7]: [orderProposalId#15071495L, plant#15071499, deliveryDateTime#15071500, product#15071504, orderDateTime#15071505, availabilityDateTime#15071506, worklistShardItemId#15071518L]
Input [9]: [orderProposalId#15071495L, plant#15071499, deliveryDateTime#15071500, product#15071504, orderDateTime#15071505, availabilityDateTime#15071506, worklistShardItemId#15071518L, shardId#15071539, sequenceId#15071517]
(15) Exchange
Input [7]: [orderProposalId#15071495L, plant#15071499, deliveryDateTime#15071500, product#15071504, orderDateTime#15071505, availabilityDateTime#15071506, worklistShardItemId#15071518L]
Arguments: hashpartitioning(worklistShardItemId#15071518L, 30), REPARTITION_BY_NUM, [plan_id=7843266]
(16) Project [codegen id : 2]
Output [7]: [worklistShardItemId#15071518L, orderProposalId#15071495L, product#15071504, plant#15071499, orderDateTime#15071505, deliveryDateTime#15071500, availabilityDateTime#15071506]
Input [7]: [orderProposalId#15071495L, plant#15071499, deliveryDateTime#15071500, product#15071504, orderDateTime#15071505, availabilityDateTime#15071506, worklistShardItemId#15071518L]
(17) BroadcastExchange
Input [7]: [worklistShardItemId#15071518L, orderProposalId#15071495L, product#15071504, plant#15071499, orderDateTime#15071505, deliveryDateTime#15071500, availabilityDateTime#15071506]
Arguments: HashedRelationBroadcastMode(List(input[0, bigint, true]),false), [plan_id=7843270]
(18) BroadcastHashJoin [codegen id : 3]
Left keys [1]: [worklistShardItemId#15071294L]
Right keys [1]: [worklistShardItemId#15071518L]
Join type: LeftOuter
Join condition: (shardId#15070782 = 0_1_10000001452)
(19) Project [codegen id : 3]
Output [8]: [shardId#15070782, product#15071504, plant#15071499, orderDateTime#15071505, deliveryDateTime#15071500, availabilityDateTime#15071506, qty#15071296 AS orderQuantityInBaseUnit#15071571, orderProposalId#15071495L]
Input [10]: [shardId#15070782, worklistShardItemId#15071294L, qty#15071296, worklistShardItemId#15071518L, orderProposalId#15071495L, product#15071504, plant#15071499, orderDateTime#15071505, deliveryDateTime#15071500, availabilityDateTime#15071506]