digraph G {
0 [id="node0" labelType="html" label="<b>Execute InsertIntoHadoopFsRelationCommand</b><br><br>task commit time total (min, med, max (stageId: taskId))<br>1.3 s (14 ms, 20 ms, 283 ms (stage 70980.0: task 178868))<br>number of written files: 4<br>job commit time: 944 ms<br>number of output rows: 6<br>number of dynamic part: 0<br>written output: 16.4 KiB" tooltip="Execute InsertIntoHadoopFsRelationCommand hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20.hanacloud.ondemand.com:443/prp-op-traceability-results/raw/crp-order-quantity-kpi-service/ogr/10000002109/0_1_10000002109, false, Parquet, [path=hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20.hanacloud.ondemand.com:443/prp-op-traceability-results/raw/crp-order-quantity-kpi-service/ogr/10000002109/0_1_10000002109], Append, [product, location, documents, replenishmentRunId]"];
1 [id="node1" labelType="html" label="<br><b>WriteFiles</b><br><br>" tooltip="WriteFiles"];
2 [id="node2" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [product#871287, plant#871282 AS location#871326, array(struct(documentType, OP, documentId, cast(orderProposalId#871278L as string), documentUuid, null, openQty, coalesce((qty#871079 * (cast(element_at(filter(logisticUnits#871305, lambdafunction(lambda x_2241#871335.isOrderUnit, lambda x_2241#871335, false)), 1, None, false).denominator as double) / cast(element_at(filter(logisticUnits#871305, lambdafunction(lambda x_2241#871336.isOrderUnit, lambda x_2241#871336, false)), 1, None, false).numerator as double))), qty#871079), qtyUomUuid, coalesce(element_at(filter(logisticUnits#871305, lambdafunction(lambda x_2241#871337.isOrderUnit, lambda x_2241#871337, false)), 1, None, false).uomUuid, orderQuantityBaseUomUuid#871307), qtyUom, coalesce(element_at(filter(logisticUnits#871305, lambdafunction(lambda x_2241#871338.isOrderUnit, lambda x_2241#871338, false)), 1, None, false).uom, orderQuantityBaseUom#871306), plannedDeliveryDatetime, availabilityDateTime#871289)) AS documents#871334, 10000002109 AS replenishmentRunId#871339L]"];
subgraph cluster3 {
isCluster="true";
id="cluster3";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n854 ms (4 ms, 63 ms, 110 ms (stage 70980.0: task 178850))";
tooltip="WholeStageCodegen (3)";
4 [id="node4" labelType="html" label="<b>BroadcastHashJoin</b><br><br>number of output rows: 6" tooltip="BroadcastHashJoin [worklistShardItemId#871077L], [worklistShardItemId#871301L], LeftOuter, BuildRight, (shardId#870565 = 0_1_10000002109), false"];
5 [id="node5" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#870565, item#871076.worklistShardItemId AS worklistShardItemId#871077L, item#871076.qty AS qty#871079]"];
6 [id="node6" labelType="html" label="<b>Generate</b><br><br>number of output rows: 6" tooltip="Generate explode(items#870567), [shardId#870565], false, [item#871076]"];
7 [id="node7" labelType="html" label="<b>Filter</b><br><br>number of output rows: 4" tooltip="Filter (((isnotnull(shardId#870565) AND (shardId#870565 = 0_1_10000002109)) AND (size(items#870567, true) > 0)) AND isnotnull(items#870567))"];
}
8 [id="node8" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 4" tooltip="InMemoryTableScan [shardId#870565, items#870567], [isnotnull(shardId#870565), (shardId#870565 = 0_1_10000002109), (size(items#870567, true) > 0), isnotnull(items#870567)]"];
subgraph cluster9 {
isCluster="true";
id="cluster9";
label="WholeStageCodegen (1)\n \nduration: 0 ms";
tooltip="WholeStageCodegen (1)";
10 [id="node10" labelType="html" label="<b>Filter</b><br><br>number of output rows: 0" tooltip="Filter (isnotnull(shardId#870565) AND (shardId#870565 = 0_1_10000002109))"];
}
11 [id="node11" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 0" tooltip="InMemoryTableScan [shardId#870565, orderProposalId#870566L, items#870567, optimizationGroups#870568, isOptimal#870569, optimizationInsights#870571], [isnotnull(shardId#870565), (shardId#870565 = 0_1_10000002109)]"];
subgraph cluster12 {
isCluster="true";
id="cluster12";
label="WholeStageCodegen (1)\n \nduration: 0 ms";
tooltip="WholeStageCodegen (1)";
13 [id="node13" labelType="html" label="<b>Filter</b><br><br>number of output rows: 0" tooltip="Filter (isnotnull(shardId#870565) AND (shardId#870565 = 0_1_10000002109))"];
14 [id="node14" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 0" tooltip="Scan ExistingRDD[shardId#870565,orderProposalId#870566L,items#870567,optimizationGroups#870568,isOptimal#870569,lastModified#870570,optimizationInsights#870571]"];
}
15 [id="node15" labelType="html" label="<b>BroadcastExchange</b><br><br>time to broadcast: 0 ms<br>time to build: 0 ms<br>time to collect: 229 ms<br>number of output rows: 6<br>data size: 1024.1 KiB" tooltip="BroadcastExchange HashedRelationBroadcastMode(List(input[0, bigint, true]),false), [plan_id=342455]"];
subgraph cluster16 {
isCluster="true";
id="cluster16";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n6 ms (0 ms, 0 ms, 1 ms (stage 70923.0: task 178832))";
tooltip="WholeStageCodegen (2)";
17 [id="node17" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [worklistShardItemId#871301L, orderProposalId#871278L, product#871287, plant#871282, availabilityDateTime#871289, orderQuantityBaseUom#871306, orderQuantityBaseUomUuid#871307, logisticUnits#871305]"];
}
18 [id="node18" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 6<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 6<br>local bytes read total (min, med, max (stageId: taskId))<br>2.3 KiB (331.0 B, 397.0 B, 453.0 B (stage 70923.0: task 178829))<br>merged fetch fallback count: 0<br>local blocks read: 6<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size total (min, med, max (stageId: taskId))<br>3.0 KiB (504.0 B, 904.0 B, 1008.0 B (stage 70922.0: task 178826))<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>1 ms (0 ms, 0 ms, 0 ms (stage 70922.0: task 178825))<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 70923.0: task 178832))<br>remote bytes read: 0.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>2.3 KiB (397.0 B, 723.0 B, 784.0 B (stage 70922.0: task 178826))" tooltip="Exchange hashpartitioning(worklistShardItemId#871301L, 20), REPARTITION_BY_NUM, [plan_id=342451]"];
subgraph cluster19 {
isCluster="true";
id="cluster19";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n466 ms (112 ms, 120 ms, 121 ms (stage 70922.0: task 178828))";
tooltip="WholeStageCodegen (1)";
20 [id="node20" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [orderProposalId#871278L, plant#871282, product#871287, availabilityDateTime#871289, worklistShardItemId#871301L, logisticUnits#871305, orderQuantityBaseUom#871306, orderQuantityBaseUomUuid#871307]"];
21 [id="node21" labelType="html" label="<b>Filter</b><br><br>number of output rows: 6" tooltip="Filter isnotnull(worklistShardItemId#871301L)"];
22 [id="node22" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 6<br>number of input batches: 4" tooltip="ColumnarToRow"];
}
23 [id="node23" labelType="html" label="<b>Scan parquet </b><br><br>number of files read: 4<br>scan time total (min, med, max (stageId: taskId))<br>355 ms (83 ms, 92 ms, 94 ms (stage 70922.0: task 178828))<br>dynamic partition pruning time: 0 ms<br>metadata time: 0 ms<br>size of files read: 77.1 KiB<br>number of output rows: 6<br>number of partitions read: 1" tooltip="FileScan parquet [orderProposalId#871278L,plant#871282,product#871287,availabilityDateTime#871289,worklistShardItemId#871301L,logisticUnits#871305,orderQuantityBaseUom#871306,orderQuantityBaseUomUuid#871307,shardId#871322,sequenceId#871300] Batched: true, DataFilters: [isnotnull(worklistShardItemId#871301L)], Format: Parquet, Location: PreparedDeltaFileIndex(1 paths)[hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20...., PartitionFilters: [isnotnull(shardId#871322), isnotnull(sequenceId#871300), (shardId#871322 = 0_1_10000002109), (se..., PushedFilters: [IsNotNull(worklistShardItemId)], ReadSchema: struct<orderProposalId:bigint,plant:string,product:string,availabilityDateTime:timestamp,worklist..."];
1->0;
2->1;
4->2;
5->4;
6->5;
7->6;
8->7;
10->8;
11->10;
13->11;
14->13;
15->4;
17->15;
18->17;
20->18;
21->20;
22->21;
23->22;
}
== Physical Plan ==
Execute InsertIntoHadoopFsRelationCommand (21)
+- WriteFiles (20)
+- 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#870565, items#870567]
Arguments: [shardId#870565, items#870567], [isnotnull(shardId#870565), (shardId#870565 = 0_1_10000002109), (size(items#870567, true) > 0), isnotnull(items#870567)]
(2) InMemoryRelation
Arguments: [shardId#870565, orderProposalId#870566L, items#870567, optimizationGroups#870568, isOptimal#870569, optimizationInsights#870571], StorageLevel(disk, memory, 2 replicas)
(3) InMemoryTableScan
Output [6]: [shardId#870565, orderProposalId#870566L, items#870567, optimizationGroups#870568, isOptimal#870569, optimizationInsights#870571]
Arguments: [shardId#870565, orderProposalId#870566L, items#870567, optimizationGroups#870568, isOptimal#870569, optimizationInsights#870571], [isnotnull(shardId#870565), (shardId#870565 = 0_1_10000002109)]
(4) InMemoryRelation
Arguments: [shardId#870565, orderProposalId#870566L, items#870567, optimizationGroups#870568, isOptimal#870569, lastModified#870570, optimizationInsights#870571], StorageLevel(disk, memory, 2 replicas)
(5) Scan ExistingRDD [codegen id : 1]
Output [7]: [shardId#870565, orderProposalId#870566L, items#870567, optimizationGroups#870568, isOptimal#870569, lastModified#870570, optimizationInsights#870571]
Arguments: [shardId#870565, orderProposalId#870566L, items#870567, optimizationGroups#870568, isOptimal#870569, lastModified#870570, optimizationInsights#870571], MapPartitionsRDD[40891] at start at FileStorageAdapterImpl.java:592, ExistingRDD, UnknownPartitioning(0)
(6) Filter [codegen id : 1]
Input [7]: [shardId#870565, orderProposalId#870566L, items#870567, optimizationGroups#870568, isOptimal#870569, lastModified#870570, optimizationInsights#870571]
Condition : (isnotnull(shardId#870565) AND (shardId#870565 = 0_1_10000002109))
(7) Filter [codegen id : 1]
Input [6]: [shardId#870565, orderProposalId#870566L, items#870567, optimizationGroups#870568, isOptimal#870569, optimizationInsights#870571]
Condition : (isnotnull(shardId#870565) AND (shardId#870565 = 0_1_10000002109))
(8) Filter [codegen id : 3]
Input [2]: [shardId#870565, items#870567]
Condition : (((isnotnull(shardId#870565) AND (shardId#870565 = 0_1_10000002109)) AND (size(items#870567, true) > 0)) AND isnotnull(items#870567))
(9) Generate [codegen id : 3]
Input [2]: [shardId#870565, items#870567]
Arguments: explode(items#870567), [shardId#870565], false, [item#871076]
(10) Project [codegen id : 3]
Output [3]: [shardId#870565, item#871076.worklistShardItemId AS worklistShardItemId#871077L, item#871076.qty AS qty#871079]
Input [2]: [shardId#870565, item#871076]
(11) Scan parquet
Output [10]: [orderProposalId#871278L, plant#871282, product#871287, availabilityDateTime#871289, worklistShardItemId#871301L, logisticUnits#871305, orderQuantityBaseUom#871306, orderQuantityBaseUomUuid#871307, shardId#871322, sequenceId#871300]
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/10000002109]
PartitionFilters: [isnotnull(shardId#871322), isnotnull(sequenceId#871300), (shardId#871322 = 0_1_10000002109), (sequenceId#871300 = 1)]
PushedFilters: [IsNotNull(worklistShardItemId)]
ReadSchema: struct<orderProposalId:bigint,plant:string,product:string,availabilityDateTime:timestamp,worklistShardItemId:bigint,logisticUnits:array<struct<uom:string,uomUuid:string,numerator:int,denominator:int,isOrderUnit:boolean,isPreferred:boolean>>,orderQuantityBaseUom:string,orderQuantityBaseUomUuid:string>
(12) ColumnarToRow [codegen id : 1]
Input [10]: [orderProposalId#871278L, plant#871282, product#871287, availabilityDateTime#871289, worklistShardItemId#871301L, logisticUnits#871305, orderQuantityBaseUom#871306, orderQuantityBaseUomUuid#871307, shardId#871322, sequenceId#871300]
(13) Filter [codegen id : 1]
Input [10]: [orderProposalId#871278L, plant#871282, product#871287, availabilityDateTime#871289, worklistShardItemId#871301L, logisticUnits#871305, orderQuantityBaseUom#871306, orderQuantityBaseUomUuid#871307, shardId#871322, sequenceId#871300]
Condition : isnotnull(worklistShardItemId#871301L)
(14) Project [codegen id : 1]
Output [8]: [orderProposalId#871278L, plant#871282, product#871287, availabilityDateTime#871289, worklistShardItemId#871301L, logisticUnits#871305, orderQuantityBaseUom#871306, orderQuantityBaseUomUuid#871307]
Input [10]: [orderProposalId#871278L, plant#871282, product#871287, availabilityDateTime#871289, worklistShardItemId#871301L, logisticUnits#871305, orderQuantityBaseUom#871306, orderQuantityBaseUomUuid#871307, shardId#871322, sequenceId#871300]
(15) Exchange
Input [8]: [orderProposalId#871278L, plant#871282, product#871287, availabilityDateTime#871289, worklistShardItemId#871301L, logisticUnits#871305, orderQuantityBaseUom#871306, orderQuantityBaseUomUuid#871307]
Arguments: hashpartitioning(worklistShardItemId#871301L, 20), REPARTITION_BY_NUM, [plan_id=342451]
(16) Project [codegen id : 2]
Output [8]: [worklistShardItemId#871301L, orderProposalId#871278L, product#871287, plant#871282, availabilityDateTime#871289, orderQuantityBaseUom#871306, orderQuantityBaseUomUuid#871307, logisticUnits#871305]
Input [8]: [orderProposalId#871278L, plant#871282, product#871287, availabilityDateTime#871289, worklistShardItemId#871301L, logisticUnits#871305, orderQuantityBaseUom#871306, orderQuantityBaseUomUuid#871307]
(17) BroadcastExchange
Input [8]: [worklistShardItemId#871301L, orderProposalId#871278L, product#871287, plant#871282, availabilityDateTime#871289, orderQuantityBaseUom#871306, orderQuantityBaseUomUuid#871307, logisticUnits#871305]
Arguments: HashedRelationBroadcastMode(List(input[0, bigint, true]),false), [plan_id=342455]
(18) BroadcastHashJoin [codegen id : 3]
Left keys [1]: [worklistShardItemId#871077L]
Right keys [1]: [worklistShardItemId#871301L]
Join type: LeftOuter
Join condition: (shardId#870565 = 0_1_10000002109)
(19) Project
Output [4]: [product#871287, plant#871282 AS location#871326, array(struct(documentType, OP, documentId, cast(orderProposalId#871278L as string), documentUuid, null, openQty, coalesce((qty#871079 * (cast(element_at(filter(logisticUnits#871305, lambdafunction(lambda x_2241#871335.isOrderUnit, lambda x_2241#871335, false)), 1, None, false).denominator as double) / cast(element_at(filter(logisticUnits#871305, lambdafunction(lambda x_2241#871336.isOrderUnit, lambda x_2241#871336, false)), 1, None, false).numerator as double))), qty#871079), qtyUomUuid, coalesce(element_at(filter(logisticUnits#871305, lambdafunction(lambda x_2241#871337.isOrderUnit, lambda x_2241#871337, false)), 1, None, false).uomUuid, orderQuantityBaseUomUuid#871307), qtyUom, coalesce(element_at(filter(logisticUnits#871305, lambdafunction(lambda x_2241#871338.isOrderUnit, lambda x_2241#871338, false)), 1, None, false).uom, orderQuantityBaseUom#871306), plannedDeliveryDatetime, availabilityDateTime#871289)) AS documents#871334, 10000002109 AS replenishmentRunId#871339L]
Input [11]: [shardId#870565, worklistShardItemId#871077L, qty#871079, worklistShardItemId#871301L, orderProposalId#871278L, product#871287, plant#871282, availabilityDateTime#871289, orderQuantityBaseUom#871306, orderQuantityBaseUomUuid#871307, logisticUnits#871305]
(20) WriteFiles
Input [4]: [product#871287, location#871326, documents#871334, replenishmentRunId#871339L]
(21) Execute InsertIntoHadoopFsRelationCommand
Input: []
Arguments: hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20.hanacloud.ondemand.com:443/prp-op-traceability-results/raw/crp-order-quantity-kpi-service/ogr/10000002109/0_1_10000002109, false, Parquet, [path=hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20.hanacloud.ondemand.com:443/prp-op-traceability-results/raw/crp-order-quantity-kpi-service/ogr/10000002109/0_1_10000002109], Append, [product, location, documents, replenishmentRunId]