digraph G {
subgraph cluster0 {
isCluster="true";
id="cluster0";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n1.5 s (28 ms, 110 ms, 117 ms (stage 64495.0: task 161193))";
tooltip="WholeStageCodegen (3)";
1 [id="node1" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#777607, product#778329, plant#778324, orderDateTime#778330, deliveryDateTime#778325, availabilityDateTime#778331, qty#778121 AS orderQuantityInBaseUnit#778572, orderProposalId#778320L]"];
2 [id="node2" labelType="html" label="<b>BroadcastHashJoin</b><br><br>number of output rows: 980" tooltip="BroadcastHashJoin [worklistShardItemId#778119L], [worklistShardItemId#778343L], LeftOuter, BuildRight, (shardId#777607 = 0_1_10000002108), false"];
3 [id="node3" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#777607, item#778118.worklistShardItemId AS worklistShardItemId#778119L, item#778118.qty AS qty#778121]"];
4 [id="node4" labelType="html" label="<b>Generate</b><br><br>number of output rows: 980" tooltip="Generate explode(items#777609), [shardId#777607], false, [item#778118]"];
5 [id="node5" labelType="html" label="<b>Filter</b><br><br>number of output rows: 59" tooltip="Filter (((isnotnull(shardId#777607) AND (shardId#777607 = 0_1_10000002108)) AND (size(items#777609, true) > 0)) AND isnotnull(items#777609))"];
}
6 [id="node6" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 59" tooltip="InMemoryTableScan [shardId#777607, items#777609], [isnotnull(shardId#777607), (shardId#777607 = 0_1_10000002108), (size(items#777609, true) > 0), isnotnull(items#777609)]"];
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#777607) AND (shardId#777607 = 0_1_10000002108))"];
}
9 [id="node9" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 0" tooltip="InMemoryTableScan [shardId#777607, orderProposalId#777608L, items#777609, optimizationGroups#777610, isOptimal#777611, optimizationInsights#777613], [isnotnull(shardId#777607), (shardId#777607 = 0_1_10000002108)]"];
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#777607) AND (shardId#777607 = 0_1_10000002108))"];
12 [id="node12" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 0" tooltip="Scan ExistingRDD[shardId#777607,orderProposalId#777608L,items#777609,optimizationGroups#777610,isOptimal#777611,lastModified#777612,optimizationInsights#777613]"];
}
13 [id="node13" labelType="html" label="<b>BroadcastExchange</b><br><br>time to broadcast: 0 ms<br>time to build: 1 ms<br>time to collect: 472 ms<br>number of output rows: 980<br>data size: 1047.0 KiB" tooltip="BroadcastExchange HashedRelationBroadcastMode(List(input[0, bigint, true]),false), [plan_id=308622]"];
subgraph cluster14 {
isCluster="true";
id="cluster14";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n47 ms (2 ms, 2 ms, 3 ms (stage 64438.0: task 161172))";
tooltip="WholeStageCodegen (2)";
15 [id="node15" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [worklistShardItemId#778343L, orderProposalId#778320L, product#778329, plant#778324, orderDateTime#778330, deliveryDateTime#778325, availabilityDateTime#778331]"];
}
16 [id="node16" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 980<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 980<br>local bytes read total (min, med, max (stageId: taskId))<br>62.6 KiB (1945.0 B, 3.3 KiB, 4.4 KiB (stage 64438.0: task 161171))<br>merged fetch fallback count: 0<br>local blocks read: 211<br>remote merged chunks fetched: 0<br>remote blocks read: 214<br>data size total (min, med, max (stageId: taskId))<br>122.5 KiB (3.4 KiB, 5.0 KiB, 6.0 KiB (stage 64437.0: task 161147))<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>21 ms (0 ms, 0 ms, 1 ms (stage 64437.0: task 161146))<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 64438.0: task 161170))<br>remote bytes read total (min, med, max (stageId: taskId))<br>61.0 KiB (2.2 KiB, 3.1 KiB, 4.1 KiB (stage 64438.0: task 161185))<br>number of partitions: 20<br>remote reqs duration total (min, med, max (stageId: taskId))<br>21 ms (0 ms, 1 ms, 2 ms (stage 64438.0: task 161176))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>123.6 KiB (3.6 KiB, 5.0 KiB, 6.0 KiB (stage 64437.0: task 161145))" tooltip="Exchange hashpartitioning(worklistShardItemId#778343L, 20), REPARTITION_BY_NUM, [plan_id=308618]"];
subgraph cluster17 {
isCluster="true";
id="cluster17";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n3.2 s (75 ms, 99 ms, 196 ms (stage 64437.0: task 161152))";
tooltip="WholeStageCodegen (1)";
18 [id="node18" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [orderProposalId#778320L, plant#778324, deliveryDateTime#778325, product#778329, orderDateTime#778330, availabilityDateTime#778331, worklistShardItemId#778343L]"];
19 [id="node19" labelType="html" label="<b>Filter</b><br><br>number of output rows: 980" tooltip="Filter isnotnull(worklistShardItemId#778343L)"];
20 [id="node20" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 980<br>number of input batches: 25" tooltip="ColumnarToRow"];
}
21 [id="node21" labelType="html" label="<b>Scan parquet </b><br><br>number of files read: 25<br>scan time total (min, med, max (stageId: taskId))<br>2.8 s (73 ms, 97 ms, 165 ms (stage 64437.0: task 161152))<br>dynamic partition pruning time: 0 ms<br>metadata time: 0 ms<br>size of files read: 674.0 KiB<br>number of output rows: 980<br>number of partitions read: 1" tooltip="FileScan parquet [orderProposalId#778320L,plant#778324,deliveryDateTime#778325,product#778329,orderDateTime#778330,availabilityDateTime#778331,worklistShardItemId#778343L,shardId#778364,sequenceId#778342] Batched: true, DataFilters: [isnotnull(worklistShardItemId#778343L)], Format: Parquet, Location: PreparedDeltaFileIndex(1 paths)[hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20...., PartitionFilters: [isnotnull(shardId#778364), isnotnull(sequenceId#778342), (shardId#778364 = 0_1_10000002108), (se..., 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#777607, items#777609]
Arguments: [shardId#777607, items#777609], [isnotnull(shardId#777607), (shardId#777607 = 0_1_10000002108), (size(items#777609, true) > 0), isnotnull(items#777609)]
(2) InMemoryRelation
Arguments: [shardId#777607, orderProposalId#777608L, items#777609, optimizationGroups#777610, isOptimal#777611, optimizationInsights#777613], StorageLevel(disk, memory, 2 replicas)
(3) InMemoryTableScan
Output [6]: [shardId#777607, orderProposalId#777608L, items#777609, optimizationGroups#777610, isOptimal#777611, optimizationInsights#777613]
Arguments: [shardId#777607, orderProposalId#777608L, items#777609, optimizationGroups#777610, isOptimal#777611, optimizationInsights#777613], [isnotnull(shardId#777607), (shardId#777607 = 0_1_10000002108)]
(4) InMemoryRelation
Arguments: [shardId#777607, orderProposalId#777608L, items#777609, optimizationGroups#777610, isOptimal#777611, lastModified#777612, optimizationInsights#777613], StorageLevel(disk, memory, 2 replicas)
(5) Scan ExistingRDD [codegen id : 1]
Output [7]: [shardId#777607, orderProposalId#777608L, items#777609, optimizationGroups#777610, isOptimal#777611, lastModified#777612, optimizationInsights#777613]
Arguments: [shardId#777607, orderProposalId#777608L, items#777609, optimizationGroups#777610, isOptimal#777611, lastModified#777612, optimizationInsights#777613], MapPartitionsRDD[36570] at start at FileStorageAdapterImpl.java:592, ExistingRDD, UnknownPartitioning(0)
(6) Filter [codegen id : 1]
Input [7]: [shardId#777607, orderProposalId#777608L, items#777609, optimizationGroups#777610, isOptimal#777611, lastModified#777612, optimizationInsights#777613]
Condition : (isnotnull(shardId#777607) AND (shardId#777607 = 0_1_10000002108))
(7) Filter [codegen id : 1]
Input [6]: [shardId#777607, orderProposalId#777608L, items#777609, optimizationGroups#777610, isOptimal#777611, optimizationInsights#777613]
Condition : (isnotnull(shardId#777607) AND (shardId#777607 = 0_1_10000002108))
(8) Filter [codegen id : 3]
Input [2]: [shardId#777607, items#777609]
Condition : (((isnotnull(shardId#777607) AND (shardId#777607 = 0_1_10000002108)) AND (size(items#777609, true) > 0)) AND isnotnull(items#777609))
(9) Generate [codegen id : 3]
Input [2]: [shardId#777607, items#777609]
Arguments: explode(items#777609), [shardId#777607], false, [item#778118]
(10) Project [codegen id : 3]
Output [3]: [shardId#777607, item#778118.worklistShardItemId AS worklistShardItemId#778119L, item#778118.qty AS qty#778121]
Input [2]: [shardId#777607, item#778118]
(11) Scan parquet
Output [9]: [orderProposalId#778320L, plant#778324, deliveryDateTime#778325, product#778329, orderDateTime#778330, availabilityDateTime#778331, worklistShardItemId#778343L, shardId#778364, sequenceId#778342]
Batched: true
Location: PreparedDeltaFileIndex [hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20.hanacloud.ondemand.com:443/crp-order-qty-opt-service/internal/prod-plant-snapshot/10000002108]
PartitionFilters: [isnotnull(shardId#778364), isnotnull(sequenceId#778342), (shardId#778364 = 0_1_10000002108), (sequenceId#778342 = 1)]
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#778320L, plant#778324, deliveryDateTime#778325, product#778329, orderDateTime#778330, availabilityDateTime#778331, worklistShardItemId#778343L, shardId#778364, sequenceId#778342]
(13) Filter [codegen id : 1]
Input [9]: [orderProposalId#778320L, plant#778324, deliveryDateTime#778325, product#778329, orderDateTime#778330, availabilityDateTime#778331, worklistShardItemId#778343L, shardId#778364, sequenceId#778342]
Condition : isnotnull(worklistShardItemId#778343L)
(14) Project [codegen id : 1]
Output [7]: [orderProposalId#778320L, plant#778324, deliveryDateTime#778325, product#778329, orderDateTime#778330, availabilityDateTime#778331, worklistShardItemId#778343L]
Input [9]: [orderProposalId#778320L, plant#778324, deliveryDateTime#778325, product#778329, orderDateTime#778330, availabilityDateTime#778331, worklistShardItemId#778343L, shardId#778364, sequenceId#778342]
(15) Exchange
Input [7]: [orderProposalId#778320L, plant#778324, deliveryDateTime#778325, product#778329, orderDateTime#778330, availabilityDateTime#778331, worklistShardItemId#778343L]
Arguments: hashpartitioning(worklistShardItemId#778343L, 20), REPARTITION_BY_NUM, [plan_id=308618]
(16) Project [codegen id : 2]
Output [7]: [worklistShardItemId#778343L, orderProposalId#778320L, product#778329, plant#778324, orderDateTime#778330, deliveryDateTime#778325, availabilityDateTime#778331]
Input [7]: [orderProposalId#778320L, plant#778324, deliveryDateTime#778325, product#778329, orderDateTime#778330, availabilityDateTime#778331, worklistShardItemId#778343L]
(17) BroadcastExchange
Input [7]: [worklistShardItemId#778343L, orderProposalId#778320L, product#778329, plant#778324, orderDateTime#778330, deliveryDateTime#778325, availabilityDateTime#778331]
Arguments: HashedRelationBroadcastMode(List(input[0, bigint, true]),false), [plan_id=308622]
(18) BroadcastHashJoin [codegen id : 3]
Left keys [1]: [worklistShardItemId#778119L]
Right keys [1]: [worklistShardItemId#778343L]
Join type: LeftOuter
Join condition: (shardId#777607 = 0_1_10000002108)
(19) Project [codegen id : 3]
Output [8]: [shardId#777607, product#778329, plant#778324, orderDateTime#778330, deliveryDateTime#778325, availabilityDateTime#778331, qty#778121 AS orderQuantityInBaseUnit#778572, orderProposalId#778320L]
Input [10]: [shardId#777607, worklistShardItemId#778119L, qty#778121, worklistShardItemId#778343L, orderProposalId#778320L, product#778329, plant#778324, orderDateTime#778330, deliveryDateTime#778325, availabilityDateTime#778331]