digraph G {
subgraph cluster0 {
isCluster="true";
id="cluster0";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n2.4 s (7 ms, 75 ms, 245 ms (stage 1575450.0: task 2944245))";
tooltip="WholeStageCodegen (3)";
1 [id="node1" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#6608407, product#6609129, plant#6609124, orderDateTime#6609130, deliveryDateTime#6609125, availabilityDateTime#6609131, qty#6608921 AS orderQuantityInBaseUnit#6609196, orderProposalId#6609120L]"];
2 [id="node2" labelType="html" label="<b>BroadcastHashJoin</b><br><br>number of output rows: 415" tooltip="BroadcastHashJoin [worklistShardItemId#6608919L], [worklistShardItemId#6609143L], LeftOuter, BuildRight, (shardId#6608407 = 0_1_10000002290), false"];
3 [id="node3" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#6608407, item#6608918.worklistShardItemId AS worklistShardItemId#6608919L, item#6608918.qty AS qty#6608921]"];
4 [id="node4" labelType="html" label="<b>Generate</b><br><br>number of output rows: 415" tooltip="Generate explode(items#6608409), [shardId#6608407], false, [item#6608918]"];
5 [id="node5" labelType="html" label="<b>Filter</b><br><br>number of output rows: 22" tooltip="Filter (((isnotnull(shardId#6608407) AND (shardId#6608407 = 0_1_10000002290)) AND (size(items#6608409, true) > 0)) AND isnotnull(items#6608409))"];
}
6 [id="node6" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 22" tooltip="InMemoryTableScan [shardId#6608407, items#6608409], [isnotnull(shardId#6608407), (shardId#6608407 = 0_1_10000002290), (size(items#6608409, true) > 0), isnotnull(items#6608409)]"];
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#6608407) AND (shardId#6608407 = 0_1_10000002290))"];
}
9 [id="node9" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 0" tooltip="InMemoryTableScan [shardId#6608407, orderProposalId#6608408L, items#6608409, optimizationGroups#6608410, isOptimal#6608411, optimizationInsights#6608413], [isnotnull(shardId#6608407), (shardId#6608407 = 0_1_10000002290)]"];
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#6608407) AND (shardId#6608407 = 0_1_10000002290))"];
12 [id="node12" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 0" tooltip="Scan ExistingRDD[shardId#6608407,orderProposalId#6608408L,items#6608409,optimizationGroups#6608410,isOptimal#6608411,lastModified#6608412,optimizationInsights#6608413]"];
}
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: 492 ms<br>number of output rows: 415<br>data size: 1036.9 KiB" tooltip="BroadcastExchange HashedRelationBroadcastMode(List(input[0, bigint, true]),false), [plan_id=3473330]"];
subgraph cluster14 {
isCluster="true";
id="cluster14";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n67 ms (1 ms, 3 ms, 3 ms (stage 1575317.0: task 2944221))";
tooltip="WholeStageCodegen (2)";
15 [id="node15" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [worklistShardItemId#6609143L, orderProposalId#6609120L, product#6609129, plant#6609124, orderDateTime#6609130, deliveryDateTime#6609125, availabilityDateTime#6609131]"];
}
16 [id="node16" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 415<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 415<br>local bytes read total (min, med, max (stageId: taskId))<br>25.7 KiB (356.0 B, 875.0 B, 1823.0 B (stage 1575317.0: task 2944213))<br>merged fetch fallback count: 0<br>local blocks read: 136<br>remote merged chunks fetched: 0<br>remote blocks read: 213<br>data size total (min, med, max (stageId: taskId))<br>51.9 KiB (384.0 B, 1408.0 B, 2.9 KiB (stage 1575316.0: task 2944168))<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>29 ms (0 ms, 0 ms, 1 ms (stage 1575316.0: task 2944168))<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>18 ms (0 ms, 0 ms, 2 ms (stage 1575317.0: task 2944220))<br>remote bytes read total (min, med, max (stageId: taskId))<br>40.4 KiB (623.0 B, 1441.0 B, 2.4 KiB (stage 1575317.0: task 2944208))<br>number of partitions: 30<br>remote reqs duration total (min, med, max (stageId: taskId))<br>118 ms (2 ms, 4 ms, 8 ms (stage 1575317.0: task 2944214))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>66.1 KiB (534.0 B, 1749.0 B, 3.5 KiB (stage 1575316.0: task 2944168))" tooltip="Exchange hashpartitioning(worklistShardItemId#6609143L, 30), REPARTITION_BY_NUM, [plan_id=3473326]"];
subgraph cluster17 {
isCluster="true";
id="cluster17";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n4.7 s (79 ms, 94 ms, 227 ms (stage 1575316.0: task 2944168))";
tooltip="WholeStageCodegen (1)";
18 [id="node18" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [orderProposalId#6609120L, plant#6609124, deliveryDateTime#6609125, product#6609129, orderDateTime#6609130, availabilityDateTime#6609131, worklistShardItemId#6609143L]"];
19 [id="node19" labelType="html" label="<b>Filter</b><br><br>number of output rows: 415" tooltip="Filter isnotnull(worklistShardItemId#6609143L)"];
20 [id="node20" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 415<br>number of input batches: 37" tooltip="ColumnarToRow"];
}
21 [id="node21" 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.0 s (77 ms, 92 ms, 157 ms (stage 1575316.0: task 2944179))<br>dynamic partition pruning time: 0 ms<br>metadata time: 0 ms<br>size of files read: 787.6 KiB<br>number of output rows: 415<br>number of partitions read: 1" tooltip="FileScan parquet [orderProposalId#6609120L,plant#6609124,deliveryDateTime#6609125,product#6609129,orderDateTime#6609130,availabilityDateTime#6609131,worklistShardItemId#6609143L,shardId#6609164,sequenceId#6609142] Batched: true, DataFilters: [isnotnull(worklistShardItemId#6609143L)], Format: Parquet, Location: PreparedDeltaFileIndex(1 paths)[hdlfs://dac252a8-bd1b-4f30-995e-f6d4a08836d2.files.hdl.prod-eu20...., PartitionFilters: [isnotnull(shardId#6609164), isnotnull(sequenceId#6609142), (shardId#6609164 = 0_1_10000002290), ..., 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#6608407, items#6608409]
Arguments: [shardId#6608407, items#6608409], [isnotnull(shardId#6608407), (shardId#6608407 = 0_1_10000002290), (size(items#6608409, true) > 0), isnotnull(items#6608409)]
(2) InMemoryRelation
Arguments: [shardId#6608407, orderProposalId#6608408L, items#6608409, optimizationGroups#6608410, isOptimal#6608411, optimizationInsights#6608413], StorageLevel(disk, memory, 2 replicas)
(3) InMemoryTableScan
Output [6]: [shardId#6608407, orderProposalId#6608408L, items#6608409, optimizationGroups#6608410, isOptimal#6608411, optimizationInsights#6608413]
Arguments: [shardId#6608407, orderProposalId#6608408L, items#6608409, optimizationGroups#6608410, isOptimal#6608411, optimizationInsights#6608413], [isnotnull(shardId#6608407), (shardId#6608407 = 0_1_10000002290)]
(4) InMemoryRelation
Arguments: [shardId#6608407, orderProposalId#6608408L, items#6608409, optimizationGroups#6608410, isOptimal#6608411, lastModified#6608412, optimizationInsights#6608413], StorageLevel(disk, memory, 2 replicas)
(5) Scan ExistingRDD [codegen id : 1]
Output [7]: [shardId#6608407, orderProposalId#6608408L, items#6608409, optimizationGroups#6608410, isOptimal#6608411, lastModified#6608412, optimizationInsights#6608413]
Arguments: [shardId#6608407, orderProposalId#6608408L, items#6608409, optimizationGroups#6608410, isOptimal#6608411, lastModified#6608412, optimizationInsights#6608413], MapPartitionsRDD[467832] at start at FileStorageAdapterImpl.java:598, ExistingRDD, UnknownPartitioning(0)
(6) Filter [codegen id : 1]
Input [7]: [shardId#6608407, orderProposalId#6608408L, items#6608409, optimizationGroups#6608410, isOptimal#6608411, lastModified#6608412, optimizationInsights#6608413]
Condition : (isnotnull(shardId#6608407) AND (shardId#6608407 = 0_1_10000002290))
(7) Filter [codegen id : 1]
Input [6]: [shardId#6608407, orderProposalId#6608408L, items#6608409, optimizationGroups#6608410, isOptimal#6608411, optimizationInsights#6608413]
Condition : (isnotnull(shardId#6608407) AND (shardId#6608407 = 0_1_10000002290))
(8) Filter [codegen id : 3]
Input [2]: [shardId#6608407, items#6608409]
Condition : (((isnotnull(shardId#6608407) AND (shardId#6608407 = 0_1_10000002290)) AND (size(items#6608409, true) > 0)) AND isnotnull(items#6608409))
(9) Generate [codegen id : 3]
Input [2]: [shardId#6608407, items#6608409]
Arguments: explode(items#6608409), [shardId#6608407], false, [item#6608918]
(10) Project [codegen id : 3]
Output [3]: [shardId#6608407, item#6608918.worklistShardItemId AS worklistShardItemId#6608919L, item#6608918.qty AS qty#6608921]
Input [2]: [shardId#6608407, item#6608918]
(11) Scan parquet
Output [9]: [orderProposalId#6609120L, plant#6609124, deliveryDateTime#6609125, product#6609129, orderDateTime#6609130, availabilityDateTime#6609131, worklistShardItemId#6609143L, shardId#6609164, sequenceId#6609142]
Batched: true
Location: PreparedDeltaFileIndex [hdlfs://dac252a8-bd1b-4f30-995e-f6d4a08836d2.files.hdl.prod-eu20.hanacloud.ondemand.com:443/crp-order-qty-opt-service/internal/prod-plant-snapshot/10000002290]
PartitionFilters: [isnotnull(shardId#6609164), isnotnull(sequenceId#6609142), (shardId#6609164 = 0_1_10000002290), (sequenceId#6609142 = 3)]
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#6609120L, plant#6609124, deliveryDateTime#6609125, product#6609129, orderDateTime#6609130, availabilityDateTime#6609131, worklistShardItemId#6609143L, shardId#6609164, sequenceId#6609142]
(13) Filter [codegen id : 1]
Input [9]: [orderProposalId#6609120L, plant#6609124, deliveryDateTime#6609125, product#6609129, orderDateTime#6609130, availabilityDateTime#6609131, worklistShardItemId#6609143L, shardId#6609164, sequenceId#6609142]
Condition : isnotnull(worklistShardItemId#6609143L)
(14) Project [codegen id : 1]
Output [7]: [orderProposalId#6609120L, plant#6609124, deliveryDateTime#6609125, product#6609129, orderDateTime#6609130, availabilityDateTime#6609131, worklistShardItemId#6609143L]
Input [9]: [orderProposalId#6609120L, plant#6609124, deliveryDateTime#6609125, product#6609129, orderDateTime#6609130, availabilityDateTime#6609131, worklistShardItemId#6609143L, shardId#6609164, sequenceId#6609142]
(15) Exchange
Input [7]: [orderProposalId#6609120L, plant#6609124, deliveryDateTime#6609125, product#6609129, orderDateTime#6609130, availabilityDateTime#6609131, worklistShardItemId#6609143L]
Arguments: hashpartitioning(worklistShardItemId#6609143L, 30), REPARTITION_BY_NUM, [plan_id=3473326]
(16) Project [codegen id : 2]
Output [7]: [worklistShardItemId#6609143L, orderProposalId#6609120L, product#6609129, plant#6609124, orderDateTime#6609130, deliveryDateTime#6609125, availabilityDateTime#6609131]
Input [7]: [orderProposalId#6609120L, plant#6609124, deliveryDateTime#6609125, product#6609129, orderDateTime#6609130, availabilityDateTime#6609131, worklistShardItemId#6609143L]
(17) BroadcastExchange
Input [7]: [worklistShardItemId#6609143L, orderProposalId#6609120L, product#6609129, plant#6609124, orderDateTime#6609130, deliveryDateTime#6609125, availabilityDateTime#6609131]
Arguments: HashedRelationBroadcastMode(List(input[0, bigint, true]),false), [plan_id=3473330]
(18) BroadcastHashJoin [codegen id : 3]
Left keys [1]: [worklistShardItemId#6608919L]
Right keys [1]: [worklistShardItemId#6609143L]
Join type: LeftOuter
Join condition: (shardId#6608407 = 0_1_10000002290)
(19) Project [codegen id : 3]
Output [8]: [shardId#6608407, product#6609129, plant#6609124, orderDateTime#6609130, deliveryDateTime#6609125, availabilityDateTime#6609131, qty#6608921 AS orderQuantityInBaseUnit#6609196, orderProposalId#6609120L]
Input [10]: [shardId#6608407, worklistShardItemId#6608919L, qty#6608921, worklistShardItemId#6609143L, orderProposalId#6609120L, product#6609129, plant#6609124, orderDateTime#6609130, deliveryDateTime#6609125, availabilityDateTime#6609131]