digraph G {
subgraph cluster0 {
isCluster="true";
id="cluster0";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n1.2 s (6 ms, 89 ms, 119 ms (stage 79202.0: task 195045))";
tooltip="WholeStageCodegen (3)";
1 [id="node1" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#958036, product#958758, plant#958753, orderDateTime#958759, deliveryDateTime#958754, availabilityDateTime#958760, qty#958550 AS orderQuantityInBaseUnit#959001, orderProposalId#958749L]"];
2 [id="node2" labelType="html" label="<b>BroadcastHashJoin</b><br><br>number of output rows: 8" tooltip="BroadcastHashJoin [worklistShardItemId#958548L], [worklistShardItemId#958772L], LeftOuter, BuildRight, (shardId#958036 = 0_1_10000002110), false"];
3 [id="node3" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#958036, item#958547.worklistShardItemId AS worklistShardItemId#958548L, item#958547.qty AS qty#958550]"];
4 [id="node4" labelType="html" label="<b>Generate</b><br><br>number of output rows: 8" tooltip="Generate explode(items#958038), [shardId#958036], false, [item#958547]"];
5 [id="node5" labelType="html" label="<b>Filter</b><br><br>number of output rows: 5" tooltip="Filter (((isnotnull(shardId#958036) AND (shardId#958036 = 0_1_10000002110)) AND (size(items#958038, true) > 0)) AND isnotnull(items#958038))"];
}
6 [id="node6" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 5" tooltip="InMemoryTableScan [shardId#958036, items#958038], [isnotnull(shardId#958036), (shardId#958036 = 0_1_10000002110), (size(items#958038, true) > 0), isnotnull(items#958038)]"];
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#958036) AND (shardId#958036 = 0_1_10000002110))"];
}
9 [id="node9" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 0" tooltip="InMemoryTableScan [shardId#958036, orderProposalId#958037L, items#958038, optimizationGroups#958039, isOptimal#958040, optimizationInsights#958042], [isnotnull(shardId#958036), (shardId#958036 = 0_1_10000002110)]"];
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#958036) AND (shardId#958036 = 0_1_10000002110))"];
12 [id="node12" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 0" tooltip="Scan ExistingRDD[shardId#958036,orderProposalId#958037L,items#958038,optimizationGroups#958039,isOptimal#958040,lastModified#958041,optimizationInsights#958042]"];
}
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: 282 ms<br>number of output rows: 8<br>data size: 1024.2 KiB" tooltip="BroadcastExchange HashedRelationBroadcastMode(List(input[0, bigint, true]),false), [plan_id=375024]"];
subgraph cluster14 {
isCluster="true";
id="cluster14";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n4 ms (0 ms, 0 ms, 1 ms (stage 79145.0: task 195025))";
tooltip="WholeStageCodegen (2)";
15 [id="node15" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [worklistShardItemId#958772L, orderProposalId#958749L, product#958758, plant#958753, orderDateTime#958759, deliveryDateTime#958754, availabilityDateTime#958760]"];
}
16 [id="node16" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 8<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 8<br>local bytes read total (min, med, max (stageId: taskId))<br>1246.0 B (178.0 B, 178.0 B, 178.0 B (stage 79145.0: task 195026))<br>merged fetch fallback count: 0<br>local blocks read: 7<br>remote merged chunks fetched: 0<br>remote blocks read: 1<br>data size total (min, med, max (stageId: taskId))<br>1024.0 B (128.0 B, 128.0 B, 256.0 B (stage 79144.0: task 195016))<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>2 ms (0 ms, 0 ms, 0 ms (stage 79144.0: task 195016))<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 79145.0: task 195026))<br>remote bytes read: 178.0 B<br>number of partitions: 20<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>1424.0 B (178.0 B, 178.0 B, 356.0 B (stage 79144.0: task 195016))" tooltip="Exchange hashpartitioning(worklistShardItemId#958772L, 20), REPARTITION_BY_NUM, [plan_id=375020]"];
subgraph cluster17 {
isCluster="true";
id="cluster17";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n991 ms (114 ms, 176 ms, 196 ms (stage 79144.0: task 195018))";
tooltip="WholeStageCodegen (1)";
18 [id="node18" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [orderProposalId#958749L, plant#958753, deliveryDateTime#958754, product#958758, orderDateTime#958759, availabilityDateTime#958760, worklistShardItemId#958772L]"];
19 [id="node19" labelType="html" label="<b>Filter</b><br><br>number of output rows: 8" tooltip="Filter isnotnull(worklistShardItemId#958772L)"];
20 [id="node20" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 8<br>number of input batches: 6" tooltip="ColumnarToRow"];
}
21 [id="node21" labelType="html" label="<b>Scan parquet </b><br><br>number of files read: 6<br>scan time total (min, med, max (stageId: taskId))<br>815 ms (85 ms, 148 ms, 168 ms (stage 79144.0: task 195018))<br>dynamic partition pruning time: 0 ms<br>metadata time: 0 ms<br>size of files read: 113.9 KiB<br>number of output rows: 8<br>number of partitions read: 1" tooltip="FileScan parquet [orderProposalId#958749L,plant#958753,deliveryDateTime#958754,product#958758,orderDateTime#958759,availabilityDateTime#958760,worklistShardItemId#958772L,shardId#958793,sequenceId#958771] Batched: true, DataFilters: [isnotnull(worklistShardItemId#958772L)], Format: Parquet, Location: PreparedDeltaFileIndex(1 paths)[hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20...., PartitionFilters: [isnotnull(shardId#958793), isnotnull(sequenceId#958771), (shardId#958793 = 0_1_10000002110), (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#958036, items#958038]
Arguments: [shardId#958036, items#958038], [isnotnull(shardId#958036), (shardId#958036 = 0_1_10000002110), (size(items#958038, true) > 0), isnotnull(items#958038)]
(2) InMemoryRelation
Arguments: [shardId#958036, orderProposalId#958037L, items#958038, optimizationGroups#958039, isOptimal#958040, optimizationInsights#958042], StorageLevel(disk, memory, 2 replicas)
(3) InMemoryTableScan
Output [6]: [shardId#958036, orderProposalId#958037L, items#958038, optimizationGroups#958039, isOptimal#958040, optimizationInsights#958042]
Arguments: [shardId#958036, orderProposalId#958037L, items#958038, optimizationGroups#958039, isOptimal#958040, optimizationInsights#958042], [isnotnull(shardId#958036), (shardId#958036 = 0_1_10000002110)]
(4) InMemoryRelation
Arguments: [shardId#958036, orderProposalId#958037L, items#958038, optimizationGroups#958039, isOptimal#958040, lastModified#958041, optimizationInsights#958042], StorageLevel(disk, memory, 2 replicas)
(5) Scan ExistingRDD [codegen id : 1]
Output [7]: [shardId#958036, orderProposalId#958037L, items#958038, optimizationGroups#958039, isOptimal#958040, lastModified#958041, optimizationInsights#958042]
Arguments: [shardId#958036, orderProposalId#958037L, items#958038, optimizationGroups#958039, isOptimal#958040, lastModified#958041, optimizationInsights#958042], MapPartitionsRDD[44956] at start at FileStorageAdapterImpl.java:592, ExistingRDD, UnknownPartitioning(0)
(6) Filter [codegen id : 1]
Input [7]: [shardId#958036, orderProposalId#958037L, items#958038, optimizationGroups#958039, isOptimal#958040, lastModified#958041, optimizationInsights#958042]
Condition : (isnotnull(shardId#958036) AND (shardId#958036 = 0_1_10000002110))
(7) Filter [codegen id : 1]
Input [6]: [shardId#958036, orderProposalId#958037L, items#958038, optimizationGroups#958039, isOptimal#958040, optimizationInsights#958042]
Condition : (isnotnull(shardId#958036) AND (shardId#958036 = 0_1_10000002110))
(8) Filter [codegen id : 3]
Input [2]: [shardId#958036, items#958038]
Condition : (((isnotnull(shardId#958036) AND (shardId#958036 = 0_1_10000002110)) AND (size(items#958038, true) > 0)) AND isnotnull(items#958038))
(9) Generate [codegen id : 3]
Input [2]: [shardId#958036, items#958038]
Arguments: explode(items#958038), [shardId#958036], false, [item#958547]
(10) Project [codegen id : 3]
Output [3]: [shardId#958036, item#958547.worklistShardItemId AS worklistShardItemId#958548L, item#958547.qty AS qty#958550]
Input [2]: [shardId#958036, item#958547]
(11) Scan parquet
Output [9]: [orderProposalId#958749L, plant#958753, deliveryDateTime#958754, product#958758, orderDateTime#958759, availabilityDateTime#958760, worklistShardItemId#958772L, shardId#958793, sequenceId#958771]
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/10000002110]
PartitionFilters: [isnotnull(shardId#958793), isnotnull(sequenceId#958771), (shardId#958793 = 0_1_10000002110), (sequenceId#958771 = 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#958749L, plant#958753, deliveryDateTime#958754, product#958758, orderDateTime#958759, availabilityDateTime#958760, worklistShardItemId#958772L, shardId#958793, sequenceId#958771]
(13) Filter [codegen id : 1]
Input [9]: [orderProposalId#958749L, plant#958753, deliveryDateTime#958754, product#958758, orderDateTime#958759, availabilityDateTime#958760, worklistShardItemId#958772L, shardId#958793, sequenceId#958771]
Condition : isnotnull(worklistShardItemId#958772L)
(14) Project [codegen id : 1]
Output [7]: [orderProposalId#958749L, plant#958753, deliveryDateTime#958754, product#958758, orderDateTime#958759, availabilityDateTime#958760, worklistShardItemId#958772L]
Input [9]: [orderProposalId#958749L, plant#958753, deliveryDateTime#958754, product#958758, orderDateTime#958759, availabilityDateTime#958760, worklistShardItemId#958772L, shardId#958793, sequenceId#958771]
(15) Exchange
Input [7]: [orderProposalId#958749L, plant#958753, deliveryDateTime#958754, product#958758, orderDateTime#958759, availabilityDateTime#958760, worklistShardItemId#958772L]
Arguments: hashpartitioning(worklistShardItemId#958772L, 20), REPARTITION_BY_NUM, [plan_id=375020]
(16) Project [codegen id : 2]
Output [7]: [worklistShardItemId#958772L, orderProposalId#958749L, product#958758, plant#958753, orderDateTime#958759, deliveryDateTime#958754, availabilityDateTime#958760]
Input [7]: [orderProposalId#958749L, plant#958753, deliveryDateTime#958754, product#958758, orderDateTime#958759, availabilityDateTime#958760, worklistShardItemId#958772L]
(17) BroadcastExchange
Input [7]: [worklistShardItemId#958772L, orderProposalId#958749L, product#958758, plant#958753, orderDateTime#958759, deliveryDateTime#958754, availabilityDateTime#958760]
Arguments: HashedRelationBroadcastMode(List(input[0, bigint, true]),false), [plan_id=375024]
(18) BroadcastHashJoin [codegen id : 3]
Left keys [1]: [worklistShardItemId#958548L]
Right keys [1]: [worklistShardItemId#958772L]
Join type: LeftOuter
Join condition: (shardId#958036 = 0_1_10000002110)
(19) Project [codegen id : 3]
Output [8]: [shardId#958036, product#958758, plant#958753, orderDateTime#958759, deliveryDateTime#958754, availabilityDateTime#958760, qty#958550 AS orderQuantityInBaseUnit#959001, orderProposalId#958749L]
Input [10]: [shardId#958036, worklistShardItemId#958548L, qty#958550, worklistShardItemId#958772L, orderProposalId#958749L, product#958758, plant#958753, orderDateTime#958759, deliveryDateTime#958754, availabilityDateTime#958760]