digraph G {
0 [id="node0" labelType="html" label="<b>Execute InsertIntoHadoopFsRelationCommand</b><br><br>task commit time total (min, med, max (stageId: taskId))<br>4.0 s (16 ms, 245 ms, 814 ms (stage 43480.0: task 123806))<br>number of written files: 10<br>job commit time: 2.9 s<br>number of output rows: 205<br>number of dynamic part: 0<br>written output: 43.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/10000002107/0_1_10000002107, 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/10000002107/0_1_10000002107], 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#590332, plant#590327 AS location#590371, array(struct(documentType, OP, documentId, cast(orderProposalId#590323L as string), documentUuid, null, openQty, coalesce((qty#590124 * (cast(element_at(filter(logisticUnits#590350, lambdafunction(lambda x_1510#590380.isOrderUnit, lambda x_1510#590380, false)), 1, None, false).denominator as double) / cast(element_at(filter(logisticUnits#590350, lambdafunction(lambda x_1510#590381.isOrderUnit, lambda x_1510#590381, false)), 1, None, false).numerator as double))), qty#590124), qtyUomUuid, coalesce(element_at(filter(logisticUnits#590350, lambdafunction(lambda x_1510#590382.isOrderUnit, lambda x_1510#590382, false)), 1, None, false).uomUuid, orderQuantityBaseUomUuid#590352), qtyUom, coalesce(element_at(filter(logisticUnits#590350, lambdafunction(lambda x_1510#590383.isOrderUnit, lambda x_1510#590383, false)), 1, None, false).uom, orderQuantityBaseUom#590351), plannedDeliveryDatetime, availabilityDateTime#590334)) AS documents#590379, 10000002107 AS replenishmentRunId#590384L]"];
subgraph cluster3 {
isCluster="true";
id="cluster3";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n922 ms (4 ms, 65 ms, 80 ms (stage 43480.0: task 123811))";
tooltip="WholeStageCodegen (3)";
4 [id="node4" labelType="html" label="<b>BroadcastHashJoin</b><br><br>number of output rows: 205" tooltip="BroadcastHashJoin [worklistShardItemId#590122L], [worklistShardItemId#590346L], LeftOuter, BuildRight, (shardId#589610 = 0_1_10000002107), false"];
5 [id="node5" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#589610, item#590121.worklistShardItemId AS worklistShardItemId#590122L, item#590121.qty AS qty#590124]"];
6 [id="node6" labelType="html" label="<b>Generate</b><br><br>number of output rows: 205" tooltip="Generate explode(items#589612), [shardId#589610], false, [item#590121]"];
7 [id="node7" labelType="html" label="<b>Filter</b><br><br>number of output rows: 14" tooltip="Filter (((isnotnull(shardId#589610) AND (shardId#589610 = 0_1_10000002107)) AND (size(items#589612, true) > 0)) AND isnotnull(items#589612))"];
}
8 [id="node8" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 14" tooltip="InMemoryTableScan [shardId#589610, items#589612], [isnotnull(shardId#589610), (shardId#589610 = 0_1_10000002107), (size(items#589612, true) > 0), isnotnull(items#589612)]"];
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#589610) AND (shardId#589610 = 0_1_10000002107))"];
}
11 [id="node11" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 0" tooltip="InMemoryTableScan [shardId#589610, orderProposalId#589611L, items#589612, optimizationGroups#589613, isOptimal#589614, optimizationInsights#589616], [isnotnull(shardId#589610), (shardId#589610 = 0_1_10000002107)]"];
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#589610) AND (shardId#589610 = 0_1_10000002107))"];
14 [id="node14" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 0" tooltip="Scan ExistingRDD[shardId#589610,orderProposalId#589611L,items#589612,optimizationGroups#589613,isOptimal#589614,lastModified#589615,optimizationInsights#589616]"];
}
15 [id="node15" labelType="html" label="<b>BroadcastExchange</b><br><br>time to broadcast: 0 ms<br>time to build: 1 ms<br>time to collect: 542 ms<br>number of output rows: 205<br>data size: 1032.0 KiB" tooltip="BroadcastExchange HashedRelationBroadcastMode(List(input[0, bigint, true]),false), [plan_id=249985]"];
subgraph cluster16 {
isCluster="true";
id="cluster16";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n29 ms (0 ms, 2 ms, 3 ms (stage 43427.0: task 123785))";
tooltip="WholeStageCodegen (2)";
17 [id="node17" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [worklistShardItemId#590346L, orderProposalId#590323L, product#590332, plant#590327, availabilityDateTime#590334, orderQuantityBaseUom#590351, orderQuantityBaseUomUuid#590352, logisticUnits#590350]"];
}
18 [id="node18" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 205<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 205<br>local bytes read total (min, med, max (stageId: taskId))<br>30.5 KiB (673.0 B, 1680.0 B, 2.9 KiB (stage 43427.0: task 123785))<br>merged fetch fallback count: 0<br>local blocks read: 86<br>remote merged chunks fetched: 0<br>remote blocks read: 88<br>data size total (min, med, max (stageId: taskId))<br>81.1 KiB (1600.0 B, 3.5 KiB, 4.3 KiB (stage 43426.0: task 123738))<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>14 ms (0 ms, 0 ms, 0 ms (stage 43426.0: task 123757))<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 43427.0: task 123786))<br>remote bytes read total (min, med, max (stageId: taskId))<br>30.8 KiB (336.0 B, 1340.0 B, 3.3 KiB (stage 43427.0: task 123784))<br>number of partitions: 20<br>remote reqs duration total (min, med, max (stageId: taskId))<br>10 ms (0 ms, 1 ms, 1 ms (stage 43427.0: task 123786))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>61.3 KiB (1342.0 B, 2.6 KiB, 3.4 KiB (stage 43426.0: task 123738))" tooltip="Exchange hashpartitioning(worklistShardItemId#590346L, 20), REPARTITION_BY_NUM, [plan_id=249981]"];
subgraph cluster19 {
isCluster="true";
id="cluster19";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n2.8 s (75 ms, 101 ms, 199 ms (stage 43426.0: task 123740))";
tooltip="WholeStageCodegen (1)";
20 [id="node20" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [orderProposalId#590323L, plant#590327, product#590332, availabilityDateTime#590334, worklistShardItemId#590346L, logisticUnits#590350, orderQuantityBaseUom#590351, orderQuantityBaseUomUuid#590352]"];
21 [id="node21" labelType="html" label="<b>Filter</b><br><br>number of output rows: 205" tooltip="Filter isnotnull(worklistShardItemId#590346L)"];
22 [id="node22" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 205<br>number of input batches: 25" tooltip="ColumnarToRow"];
}
23 [id="node23" 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.4 s (74 ms, 96 ms, 169 ms (stage 43426.0: task 123740))<br>dynamic partition pruning time: 0 ms<br>metadata time: 0 ms<br>size of files read: 520.6 KiB<br>number of output rows: 205<br>number of partitions read: 1" tooltip="FileScan parquet [orderProposalId#590323L,plant#590327,product#590332,availabilityDateTime#590334,worklistShardItemId#590346L,logisticUnits#590350,orderQuantityBaseUom#590351,orderQuantityBaseUomUuid#590352,shardId#590367,sequenceId#590345] Batched: true, DataFilters: [isnotnull(worklistShardItemId#590346L)], Format: Parquet, Location: PreparedDeltaFileIndex(1 paths)[hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20...., PartitionFilters: [isnotnull(shardId#590367), isnotnull(sequenceId#590345), (shardId#590367 = 0_1_10000002107), (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#589610, items#589612]
Arguments: [shardId#589610, items#589612], [isnotnull(shardId#589610), (shardId#589610 = 0_1_10000002107), (size(items#589612, true) > 0), isnotnull(items#589612)]
(2) InMemoryRelation
Arguments: [shardId#589610, orderProposalId#589611L, items#589612, optimizationGroups#589613, isOptimal#589614, optimizationInsights#589616], StorageLevel(disk, memory, 2 replicas)
(3) InMemoryTableScan
Output [6]: [shardId#589610, orderProposalId#589611L, items#589612, optimizationGroups#589613, isOptimal#589614, optimizationInsights#589616]
Arguments: [shardId#589610, orderProposalId#589611L, items#589612, optimizationGroups#589613, isOptimal#589614, optimizationInsights#589616], [isnotnull(shardId#589610), (shardId#589610 = 0_1_10000002107)]
(4) InMemoryRelation
Arguments: [shardId#589610, orderProposalId#589611L, items#589612, optimizationGroups#589613, isOptimal#589614, lastModified#589615, optimizationInsights#589616], StorageLevel(disk, memory, 2 replicas)
(5) Scan ExistingRDD [codegen id : 1]
Output [7]: [shardId#589610, orderProposalId#589611L, items#589612, optimizationGroups#589613, isOptimal#589614, lastModified#589615, optimizationInsights#589616]
Arguments: [shardId#589610, orderProposalId#589611L, items#589612, optimizationGroups#589613, isOptimal#589614, lastModified#589615, optimizationInsights#589616], MapPartitionsRDD[28419] at start at FileStorageAdapterImpl.java:592, ExistingRDD, UnknownPartitioning(0)
(6) Filter [codegen id : 1]
Input [7]: [shardId#589610, orderProposalId#589611L, items#589612, optimizationGroups#589613, isOptimal#589614, lastModified#589615, optimizationInsights#589616]
Condition : (isnotnull(shardId#589610) AND (shardId#589610 = 0_1_10000002107))
(7) Filter [codegen id : 1]
Input [6]: [shardId#589610, orderProposalId#589611L, items#589612, optimizationGroups#589613, isOptimal#589614, optimizationInsights#589616]
Condition : (isnotnull(shardId#589610) AND (shardId#589610 = 0_1_10000002107))
(8) Filter [codegen id : 3]
Input [2]: [shardId#589610, items#589612]
Condition : (((isnotnull(shardId#589610) AND (shardId#589610 = 0_1_10000002107)) AND (size(items#589612, true) > 0)) AND isnotnull(items#589612))
(9) Generate [codegen id : 3]
Input [2]: [shardId#589610, items#589612]
Arguments: explode(items#589612), [shardId#589610], false, [item#590121]
(10) Project [codegen id : 3]
Output [3]: [shardId#589610, item#590121.worklistShardItemId AS worklistShardItemId#590122L, item#590121.qty AS qty#590124]
Input [2]: [shardId#589610, item#590121]
(11) Scan parquet
Output [10]: [orderProposalId#590323L, plant#590327, product#590332, availabilityDateTime#590334, worklistShardItemId#590346L, logisticUnits#590350, orderQuantityBaseUom#590351, orderQuantityBaseUomUuid#590352, shardId#590367, sequenceId#590345]
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/10000002107]
PartitionFilters: [isnotnull(shardId#590367), isnotnull(sequenceId#590345), (shardId#590367 = 0_1_10000002107), (sequenceId#590345 = 2)]
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#590323L, plant#590327, product#590332, availabilityDateTime#590334, worklistShardItemId#590346L, logisticUnits#590350, orderQuantityBaseUom#590351, orderQuantityBaseUomUuid#590352, shardId#590367, sequenceId#590345]
(13) Filter [codegen id : 1]
Input [10]: [orderProposalId#590323L, plant#590327, product#590332, availabilityDateTime#590334, worklistShardItemId#590346L, logisticUnits#590350, orderQuantityBaseUom#590351, orderQuantityBaseUomUuid#590352, shardId#590367, sequenceId#590345]
Condition : isnotnull(worklistShardItemId#590346L)
(14) Project [codegen id : 1]
Output [8]: [orderProposalId#590323L, plant#590327, product#590332, availabilityDateTime#590334, worklistShardItemId#590346L, logisticUnits#590350, orderQuantityBaseUom#590351, orderQuantityBaseUomUuid#590352]
Input [10]: [orderProposalId#590323L, plant#590327, product#590332, availabilityDateTime#590334, worklistShardItemId#590346L, logisticUnits#590350, orderQuantityBaseUom#590351, orderQuantityBaseUomUuid#590352, shardId#590367, sequenceId#590345]
(15) Exchange
Input [8]: [orderProposalId#590323L, plant#590327, product#590332, availabilityDateTime#590334, worklistShardItemId#590346L, logisticUnits#590350, orderQuantityBaseUom#590351, orderQuantityBaseUomUuid#590352]
Arguments: hashpartitioning(worklistShardItemId#590346L, 20), REPARTITION_BY_NUM, [plan_id=249981]
(16) Project [codegen id : 2]
Output [8]: [worklistShardItemId#590346L, orderProposalId#590323L, product#590332, plant#590327, availabilityDateTime#590334, orderQuantityBaseUom#590351, orderQuantityBaseUomUuid#590352, logisticUnits#590350]
Input [8]: [orderProposalId#590323L, plant#590327, product#590332, availabilityDateTime#590334, worklistShardItemId#590346L, logisticUnits#590350, orderQuantityBaseUom#590351, orderQuantityBaseUomUuid#590352]
(17) BroadcastExchange
Input [8]: [worklistShardItemId#590346L, orderProposalId#590323L, product#590332, plant#590327, availabilityDateTime#590334, orderQuantityBaseUom#590351, orderQuantityBaseUomUuid#590352, logisticUnits#590350]
Arguments: HashedRelationBroadcastMode(List(input[0, bigint, true]),false), [plan_id=249985]
(18) BroadcastHashJoin [codegen id : 3]
Left keys [1]: [worklistShardItemId#590122L]
Right keys [1]: [worklistShardItemId#590346L]
Join type: LeftOuter
Join condition: (shardId#589610 = 0_1_10000002107)
(19) Project
Output [4]: [product#590332, plant#590327 AS location#590371, array(struct(documentType, OP, documentId, cast(orderProposalId#590323L as string), documentUuid, null, openQty, coalesce((qty#590124 * (cast(element_at(filter(logisticUnits#590350, lambdafunction(lambda x_1510#590380.isOrderUnit, lambda x_1510#590380, false)), 1, None, false).denominator as double) / cast(element_at(filter(logisticUnits#590350, lambdafunction(lambda x_1510#590381.isOrderUnit, lambda x_1510#590381, false)), 1, None, false).numerator as double))), qty#590124), qtyUomUuid, coalesce(element_at(filter(logisticUnits#590350, lambdafunction(lambda x_1510#590382.isOrderUnit, lambda x_1510#590382, false)), 1, None, false).uomUuid, orderQuantityBaseUomUuid#590352), qtyUom, coalesce(element_at(filter(logisticUnits#590350, lambdafunction(lambda x_1510#590383.isOrderUnit, lambda x_1510#590383, false)), 1, None, false).uom, orderQuantityBaseUom#590351), plannedDeliveryDatetime, availabilityDateTime#590334)) AS documents#590379, 10000002107 AS replenishmentRunId#590384L]
Input [11]: [shardId#589610, worklistShardItemId#590122L, qty#590124, worklistShardItemId#590346L, orderProposalId#590323L, product#590332, plant#590327, availabilityDateTime#590334, orderQuantityBaseUom#590351, orderQuantityBaseUomUuid#590352, logisticUnits#590350]
(20) WriteFiles
Input [4]: [product#590332, location#590371, documents#590379, replenishmentRunId#590384L]
(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/10000002107/0_1_10000002107, 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/10000002107/0_1_10000002107], Append, [product, location, documents, replenishmentRunId]