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.4 s (17 ms, 22 ms, 415 ms (stage 1311229.0: task 2445432))<br>number of written files: 2<br>job commit time: 1.5 s<br>number of output rows: 29<br>number of dynamic part: 0<br>written output: 6.3 KiB" tooltip="Execute InsertIntoHadoopFsRelationCommand hdlfs://332d7051-0d16-44f5-ae76-bf2dcf30365f.files.hdl.prod-eu20.hanacloud.ondemand.com:443/prp-op-traceability-results/raw/crp-order-quantity-kpi-service/ogr/10000001445/0_1_10000001445, false, Parquet, [path=hdlfs://332d7051-0d16-44f5-ae76-bf2dcf30365f.files.hdl.prod-eu20.hanacloud.ondemand.com:443/prp-op-traceability-results/raw/crp-order-quantity-kpi-service/ogr/10000001445/0_1_10000001445], 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#5499722, plant#5499717 AS location#5499761, array(struct(documentType, OP, documentId, cast(orderProposalId#5499713L as string), documentUuid, null, openQty, coalesce((qty#5499514 * (cast(element_at(filter(logisticUnits#5499740, lambdafunction(lambda x_10854#5499770.isOrderUnit, lambda x_10854#5499770, false)), 1, None, false).denominator as double) / cast(element_at(filter(logisticUnits#5499740, lambdafunction(lambda x_10854#5499771.isOrderUnit, lambda x_10854#5499771, false)), 1, None, false).numerator as double))), qty#5499514), qtyUomUuid, coalesce(element_at(filter(logisticUnits#5499740, lambdafunction(lambda x_10854#5499772.isOrderUnit, lambda x_10854#5499772, false)), 1, None, false).uomUuid, orderQuantityBaseUomUuid#5499742), qtyUom, coalesce(element_at(filter(logisticUnits#5499740, lambdafunction(lambda x_10854#5499773.isOrderUnit, lambda x_10854#5499773, false)), 1, None, false).uom, orderQuantityBaseUom#5499741), plannedDeliveryDatetime, availabilityDateTime#5499724)) AS documents#5499769, 10000001445 AS replenishmentRunId#5499774L]"];
subgraph cluster3 {
isCluster="true";
id="cluster3";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n1.6 s (4 ms, 50 ms, 202 ms (stage 1311229.0: task 2445419))";
tooltip="WholeStageCodegen (3)";
4 [id="node4" labelType="html" label="<b>BroadcastHashJoin</b><br><br>number of output rows: 29" tooltip="BroadcastHashJoin [worklistShardItemId#5499512L], [worklistShardItemId#5499736L], LeftOuter, BuildRight, (shardId#5499000 = 0_1_10000001445), false"];
5 [id="node5" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#5499000, item#5499511.worklistShardItemId AS worklistShardItemId#5499512L, item#5499511.qty AS qty#5499514]"];
6 [id="node6" labelType="html" label="<b>Generate</b><br><br>number of output rows: 29" tooltip="Generate explode(items#5499002), [shardId#5499000], false, [item#5499511]"];
7 [id="node7" labelType="html" label="<b>Filter</b><br><br>number of output rows: 2" tooltip="Filter (((isnotnull(shardId#5499000) AND (shardId#5499000 = 0_1_10000001445)) AND (size(items#5499002, true) > 0)) AND isnotnull(items#5499002))"];
}
8 [id="node8" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 2" tooltip="InMemoryTableScan [shardId#5499000, items#5499002], [isnotnull(shardId#5499000), (shardId#5499000 = 0_1_10000001445), (size(items#5499002, true) > 0), isnotnull(items#5499002)]"];
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#5499000) AND (shardId#5499000 = 0_1_10000001445))"];
}
11 [id="node11" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 0" tooltip="InMemoryTableScan [shardId#5499000, orderProposalId#5499001L, items#5499002, optimizationGroups#5499003, isOptimal#5499004, optimizationInsights#5499006], [isnotnull(shardId#5499000), (shardId#5499000 = 0_1_10000001445)]"];
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#5499000) AND (shardId#5499000 = 0_1_10000001445))"];
14 [id="node14" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 0" tooltip="Scan ExistingRDD[shardId#5499000,orderProposalId#5499001L,items#5499002,optimizationGroups#5499003,isOptimal#5499004,lastModified#5499005,optimizationInsights#5499006]"];
}
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: 389 ms<br>number of output rows: 29<br>data size: 1030.4 KiB" tooltip="BroadcastExchange HashedRelationBroadcastMode(List(input[0, bigint, true]),false), [plan_id=2853459]"];
subgraph cluster16 {
isCluster="true";
id="cluster16";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n22 ms (0 ms, 0 ms, 3 ms (stage 1311129.0: task 2445391))";
tooltip="WholeStageCodegen (2)";
17 [id="node17" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [worklistShardItemId#5499736L, orderProposalId#5499713L, product#5499722, plant#5499717, availabilityDateTime#5499724, orderQuantityBaseUom#5499741, orderQuantityBaseUomUuid#5499742, logisticUnits#5499740]"];
}
18 [id="node18" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 29<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 29<br>local bytes read total (min, med, max (stageId: taskId))<br>7.1 KiB (330.0 B, 336.0 B, 666.0 B (stage 1311129.0: task 2445399))<br>merged fetch fallback count: 0<br>local blocks read: 21<br>remote merged chunks fetched: 0<br>remote blocks read: 6<br>data size total (min, med, max (stageId: taskId))<br>11.7 KiB (400.0 B, 800.0 B, 1304.0 B (stage 1311128.0: task 2445371))<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>8 ms (0 ms, 0 ms, 0 ms (stage 1311128.0: task 2445376))<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 1311129.0: task 2445396))<br>remote bytes read total (min, med, max (stageId: taskId))<br>2.1 KiB (331.0 B, 667.0 B, 797.0 B (stage 1311129.0: task 2445392))<br>number of partitions: 30<br>remote reqs duration total (min, med, max (stageId: taskId))<br>9 ms (0 ms, 3 ms, 3 ms (stage 1311129.0: task 2445389))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>9.3 KiB (331.0 B, 444.0 B, 1060.0 B (stage 1311128.0: task 2445371))" tooltip="Exchange hashpartitioning(worklistShardItemId#5499736L, 30), REPARTITION_BY_NUM, [plan_id=2853455]"];
subgraph cluster19 {
isCluster="true";
id="cluster19";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n2.3 s (82 ms, 117 ms, 206 ms (stage 1311128.0: task 2445370))";
tooltip="WholeStageCodegen (1)";
20 [id="node20" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [orderProposalId#5499713L, plant#5499717, product#5499722, availabilityDateTime#5499724, worklistShardItemId#5499736L, logisticUnits#5499740, orderQuantityBaseUom#5499741, orderQuantityBaseUomUuid#5499742]"];
21 [id="node21" labelType="html" label="<b>Filter</b><br><br>number of output rows: 29" tooltip="Filter isnotnull(worklistShardItemId#5499736L)"];
22 [id="node22" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 29<br>number of input batches: 17" tooltip="ColumnarToRow"];
}
23 [id="node23" labelType="html" label="<b>Scan parquet </b><br><br>number of files read: 17<br>scan time total (min, med, max (stageId: taskId))<br>1.8 s (81 ms, 103 ms, 128 ms (stage 1311128.0: task 2445370))<br>dynamic partition pruning time: 0 ms<br>metadata time: 0 ms<br>size of files read: 319.0 KiB<br>number of output rows: 29<br>number of partitions read: 1" tooltip="FileScan parquet [orderProposalId#5499713L,plant#5499717,product#5499722,availabilityDateTime#5499724,worklistShardItemId#5499736L,logisticUnits#5499740,orderQuantityBaseUom#5499741,orderQuantityBaseUomUuid#5499742,shardId#5499757,sequenceId#5499735] Batched: true, DataFilters: [isnotnull(worklistShardItemId#5499736L)], Format: Parquet, Location: PreparedDeltaFileIndex(1 paths)[hdlfs://332d7051-0d16-44f5-ae76-bf2dcf30365f.files.hdl.prod-eu20...., PartitionFilters: [isnotnull(shardId#5499757), isnotnull(sequenceId#5499735), (shardId#5499757 = 0_1_10000001445), ..., 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#5499000, items#5499002]
Arguments: [shardId#5499000, items#5499002], [isnotnull(shardId#5499000), (shardId#5499000 = 0_1_10000001445), (size(items#5499002, true) > 0), isnotnull(items#5499002)]
(2) InMemoryRelation
Arguments: [shardId#5499000, orderProposalId#5499001L, items#5499002, optimizationGroups#5499003, isOptimal#5499004, optimizationInsights#5499006], StorageLevel(disk, memory, 2 replicas)
(3) InMemoryTableScan
Output [6]: [shardId#5499000, orderProposalId#5499001L, items#5499002, optimizationGroups#5499003, isOptimal#5499004, optimizationInsights#5499006]
Arguments: [shardId#5499000, orderProposalId#5499001L, items#5499002, optimizationGroups#5499003, isOptimal#5499004, optimizationInsights#5499006], [isnotnull(shardId#5499000), (shardId#5499000 = 0_1_10000001445)]
(4) InMemoryRelation
Arguments: [shardId#5499000, orderProposalId#5499001L, items#5499002, optimizationGroups#5499003, isOptimal#5499004, lastModified#5499005, optimizationInsights#5499006], StorageLevel(disk, memory, 2 replicas)
(5) Scan ExistingRDD [codegen id : 1]
Output [7]: [shardId#5499000, orderProposalId#5499001L, items#5499002, optimizationGroups#5499003, isOptimal#5499004, lastModified#5499005, optimizationInsights#5499006]
Arguments: [shardId#5499000, orderProposalId#5499001L, items#5499002, optimizationGroups#5499003, isOptimal#5499004, lastModified#5499005, optimizationInsights#5499006], MapPartitionsRDD[387429] at start at FileStorageAdapterImpl.java:598, ExistingRDD, UnknownPartitioning(0)
(6) Filter [codegen id : 1]
Input [7]: [shardId#5499000, orderProposalId#5499001L, items#5499002, optimizationGroups#5499003, isOptimal#5499004, lastModified#5499005, optimizationInsights#5499006]
Condition : (isnotnull(shardId#5499000) AND (shardId#5499000 = 0_1_10000001445))
(7) Filter [codegen id : 1]
Input [6]: [shardId#5499000, orderProposalId#5499001L, items#5499002, optimizationGroups#5499003, isOptimal#5499004, optimizationInsights#5499006]
Condition : (isnotnull(shardId#5499000) AND (shardId#5499000 = 0_1_10000001445))
(8) Filter [codegen id : 3]
Input [2]: [shardId#5499000, items#5499002]
Condition : (((isnotnull(shardId#5499000) AND (shardId#5499000 = 0_1_10000001445)) AND (size(items#5499002, true) > 0)) AND isnotnull(items#5499002))
(9) Generate [codegen id : 3]
Input [2]: [shardId#5499000, items#5499002]
Arguments: explode(items#5499002), [shardId#5499000], false, [item#5499511]
(10) Project [codegen id : 3]
Output [3]: [shardId#5499000, item#5499511.worklistShardItemId AS worklistShardItemId#5499512L, item#5499511.qty AS qty#5499514]
Input [2]: [shardId#5499000, item#5499511]
(11) Scan parquet
Output [10]: [orderProposalId#5499713L, plant#5499717, product#5499722, availabilityDateTime#5499724, worklistShardItemId#5499736L, logisticUnits#5499740, orderQuantityBaseUom#5499741, orderQuantityBaseUomUuid#5499742, shardId#5499757, sequenceId#5499735]
Batched: true
Location: PreparedDeltaFileIndex [hdlfs://332d7051-0d16-44f5-ae76-bf2dcf30365f.files.hdl.prod-eu20.hanacloud.ondemand.com:443/crp-order-qty-opt-service/internal/prod-plant-snapshot/10000001445]
PartitionFilters: [isnotnull(shardId#5499757), isnotnull(sequenceId#5499735), (shardId#5499757 = 0_1_10000001445), (sequenceId#5499735 = 6)]
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#5499713L, plant#5499717, product#5499722, availabilityDateTime#5499724, worklistShardItemId#5499736L, logisticUnits#5499740, orderQuantityBaseUom#5499741, orderQuantityBaseUomUuid#5499742, shardId#5499757, sequenceId#5499735]
(13) Filter [codegen id : 1]
Input [10]: [orderProposalId#5499713L, plant#5499717, product#5499722, availabilityDateTime#5499724, worklistShardItemId#5499736L, logisticUnits#5499740, orderQuantityBaseUom#5499741, orderQuantityBaseUomUuid#5499742, shardId#5499757, sequenceId#5499735]
Condition : isnotnull(worklistShardItemId#5499736L)
(14) Project [codegen id : 1]
Output [8]: [orderProposalId#5499713L, plant#5499717, product#5499722, availabilityDateTime#5499724, worklistShardItemId#5499736L, logisticUnits#5499740, orderQuantityBaseUom#5499741, orderQuantityBaseUomUuid#5499742]
Input [10]: [orderProposalId#5499713L, plant#5499717, product#5499722, availabilityDateTime#5499724, worklistShardItemId#5499736L, logisticUnits#5499740, orderQuantityBaseUom#5499741, orderQuantityBaseUomUuid#5499742, shardId#5499757, sequenceId#5499735]
(15) Exchange
Input [8]: [orderProposalId#5499713L, plant#5499717, product#5499722, availabilityDateTime#5499724, worklistShardItemId#5499736L, logisticUnits#5499740, orderQuantityBaseUom#5499741, orderQuantityBaseUomUuid#5499742]
Arguments: hashpartitioning(worklistShardItemId#5499736L, 30), REPARTITION_BY_NUM, [plan_id=2853455]
(16) Project [codegen id : 2]
Output [8]: [worklistShardItemId#5499736L, orderProposalId#5499713L, product#5499722, plant#5499717, availabilityDateTime#5499724, orderQuantityBaseUom#5499741, orderQuantityBaseUomUuid#5499742, logisticUnits#5499740]
Input [8]: [orderProposalId#5499713L, plant#5499717, product#5499722, availabilityDateTime#5499724, worklistShardItemId#5499736L, logisticUnits#5499740, orderQuantityBaseUom#5499741, orderQuantityBaseUomUuid#5499742]
(17) BroadcastExchange
Input [8]: [worklistShardItemId#5499736L, orderProposalId#5499713L, product#5499722, plant#5499717, availabilityDateTime#5499724, orderQuantityBaseUom#5499741, orderQuantityBaseUomUuid#5499742, logisticUnits#5499740]
Arguments: HashedRelationBroadcastMode(List(input[0, bigint, true]),false), [plan_id=2853459]
(18) BroadcastHashJoin [codegen id : 3]
Left keys [1]: [worklistShardItemId#5499512L]
Right keys [1]: [worklistShardItemId#5499736L]
Join type: LeftOuter
Join condition: (shardId#5499000 = 0_1_10000001445)
(19) Project
Output [4]: [product#5499722, plant#5499717 AS location#5499761, array(struct(documentType, OP, documentId, cast(orderProposalId#5499713L as string), documentUuid, null, openQty, coalesce((qty#5499514 * (cast(element_at(filter(logisticUnits#5499740, lambdafunction(lambda x_10854#5499770.isOrderUnit, lambda x_10854#5499770, false)), 1, None, false).denominator as double) / cast(element_at(filter(logisticUnits#5499740, lambdafunction(lambda x_10854#5499771.isOrderUnit, lambda x_10854#5499771, false)), 1, None, false).numerator as double))), qty#5499514), qtyUomUuid, coalesce(element_at(filter(logisticUnits#5499740, lambdafunction(lambda x_10854#5499772.isOrderUnit, lambda x_10854#5499772, false)), 1, None, false).uomUuid, orderQuantityBaseUomUuid#5499742), qtyUom, coalesce(element_at(filter(logisticUnits#5499740, lambdafunction(lambda x_10854#5499773.isOrderUnit, lambda x_10854#5499773, false)), 1, None, false).uom, orderQuantityBaseUom#5499741), plannedDeliveryDatetime, availabilityDateTime#5499724)) AS documents#5499769, 10000001445 AS replenishmentRunId#5499774L]
Input [11]: [shardId#5499000, worklistShardItemId#5499512L, qty#5499514, worklistShardItemId#5499736L, orderProposalId#5499713L, product#5499722, plant#5499717, availabilityDateTime#5499724, orderQuantityBaseUom#5499741, orderQuantityBaseUomUuid#5499742, logisticUnits#5499740]
(20) WriteFiles
Input [4]: [product#5499722, location#5499761, documents#5499769, replenishmentRunId#5499774L]
(21) Execute InsertIntoHadoopFsRelationCommand
Input: []
Arguments: hdlfs://332d7051-0d16-44f5-ae76-bf2dcf30365f.files.hdl.prod-eu20.hanacloud.ondemand.com:443/prp-op-traceability-results/raw/crp-order-quantity-kpi-service/ogr/10000001445/0_1_10000001445, false, Parquet, [path=hdlfs://332d7051-0d16-44f5-ae76-bf2dcf30365f.files.hdl.prod-eu20.hanacloud.ondemand.com:443/prp-op-traceability-results/raw/crp-order-quantity-kpi-service/ogr/10000001445/0_1_10000001445], Append, [product, location, documents, replenishmentRunId]