digraph G {
0 [id="node0" labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>" tooltip="AdaptiveSparkPlan isFinalPlan=true"];
1 [id="node1" labelType="html" label="<br><b>DeserializeToObject</b><br><br>" tooltip="DeserializeToObject createexternalrow(invoke(shardId#3479078.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#3479079L)), mapobjects(lambdavariable(MapObject, StructField(worklistShardItemId,LongType,true), StructField(quantityAfterProdPlantOptimization,DoubleType,true), StructField(qty,DoubleType,true), true, -1), if (isnull(lambdavariable(MapObject, StructField(worklistShardItemId,LongType,true), StructField(quantityAfterProdPlantOptimization,DoubleType,true), StructField(qty,DoubleType,true), true, -1))) null else createexternalrow(static_invoke(java.lang.Long.valueOf(lambdavariable(MapObject, StructField(worklistShardItemId,LongType,true), StructField(quantityAfterProdPlantOptimization,DoubleType,true), StructField(qty,DoubleType,true), true, -1).worklistShardItemId)), static_invoke(java.lang.Double.valueOf(lambdavariable(MapObject, StructField(worklistShardItemId,LongType,true), StructField(quantityAfterProdPlantOptimization,DoubleType,true), StructField(qty,DoubleType,true), true, -1).quantityAfterProdPlantOptimization)), static_invoke(java.lang.Double.valueOf(lambdavariable(MapObject, StructField(worklistShardItemId,LongType,true), StructField(quantityAfterProdPlantOptimization,DoubleType,true), StructField(qty,DoubleType,true), true, -1).qty)), StructField(worklistShardItemId,LongType,true), StructField(quantityAfterProdPlantOptimization,DoubleType,true), StructField(qty,DoubleType,true)), items#3479080, Some(class scala.collection.mutable.ArraySeq)), mapobjects(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2), if (isnull(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2))) null else createexternalrow(invoke(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).optGroupId.toString()), invoke(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).assignmentDetails.toString()), invoke(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderProfile.toString()), if (isnull(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderGoal)) null else createexternalrow(static_invoke(java.lang.Double.valueOf(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderGoal.minOrderValue)), static_invoke(java.lang.Double.valueOf(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderGoal.calculatedOrderValue)), static_invoke(java.lang.Integer.valueOf(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderGoal.dimensionType)), invoke(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderGoal.unit.toString()), invoke(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderGoal.unitUuid.toString()), static_invoke(java.lang.Double.valueOf(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderGoal.negligibleQuantitiesThreshold)), static_invoke(java.lang.Double.valueOf(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderGoal.acceptanceThreshold)), StructField(minOrderValue,DoubleType,true), StructField(calculatedOrderValue,DoubleType,true), StructField(dimensionType,IntegerType,true), StructField(unit,StringType,true), StructField(unitUuid,StringType,true), StructField(negligibleQuantitiesThreshold,DoubleType,true), StructField(acceptanceThreshold,DoubleType,true)), StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true)), optimizationGroups#3479081, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#3479082)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#3479083)), mapobjects(lambdavariable(MapObject, StructField(internalInsightType,StringType,false), StructField(worklistShardItemId,LongType,true), StructField(thresholdValue,DoubleType,true), StructField(reachedValue,DoubleType,true), StructField(unitOfMeasure,StringType,true), StructField(assignmentDetails,StringType,false), false, -3), createexternalrow(invoke(lambdavariable(MapObject, StructField(internalInsightType,StringType,false), StructField(worklistShardItemId,LongType,true), StructField(thresholdValue,DoubleType,true), StructField(reachedValue,DoubleType,true), StructField(unitOfMeasure,StringType,true), StructField(assignmentDetails,StringType,false), false, -3).internalInsightType.toString()), static_invoke(java.lang.Long.valueOf(lambdavariable(MapObject, StructField(internalInsightType,StringType,false), StructField(worklistShardItemId,LongType,true), StructField(thresholdValue,DoubleType,true), StructField(reachedValue,DoubleType,true), StructField(unitOfMeasure,StringType,true), StructField(assignmentDetails,StringType,false), false, -3).worklistShardItemId)), static_invoke(java.lang.Double.valueOf(lambdavariable(MapObject, StructField(internalInsightType,StringType,false), StructField(worklistShardItemId,LongType,true), StructField(thresholdValue,DoubleType,true), StructField(reachedValue,DoubleType,true), StructField(unitOfMeasure,StringType,true), StructField(assignmentDetails,StringType,false), false, -3).thresholdValue)), static_invoke(java.lang.Double.valueOf(lambdavariable(MapObject, StructField(internalInsightType,StringType,false), StructField(worklistShardItemId,LongType,true), StructField(thresholdValue,DoubleType,true), StructField(reachedValue,DoubleType,true), StructField(unitOfMeasure,StringType,true), StructField(assignmentDetails,StringType,false), false, -3).reachedValue)), invoke(lambdavariable(MapObject, StructField(internalInsightType,StringType,false), StructField(worklistShardItemId,LongType,true), StructField(thresholdValue,DoubleType,true), StructField(reachedValue,DoubleType,true), StructField(unitOfMeasure,StringType,true), StructField(assignmentDetails,StringType,false), false, -3).unitOfMeasure.toString()), invoke(lambdavariable(MapObject, StructField(internalInsightType,StringType,false), StructField(worklistShardItemId,LongType,true), StructField(thresholdValue,DoubleType,true), StructField(reachedValue,DoubleType,true), StructField(unitOfMeasure,StringType,true), StructField(assignmentDetails,StringType,false), false, -3).assignmentDetails.toString()), StructField(internalInsightType,StringType,false), StructField(worklistShardItemId,LongType,true), StructField(thresholdValue,DoubleType,true), StructField(reachedValue,DoubleType,true), StructField(unitOfMeasure,StringType,true), StructField(assignmentDetails,StringType,false)), optimizationInsights#3479084, Some(class scala.collection.mutable.ArraySeq)), StructField(shardId,StringType,true), StructField(orderProposalId,LongType,true), StructField(items,ArrayType(StructType(StructField(worklistShardItemId,LongType,true),StructField(quantityAfterProdPlantOptimization,DoubleType,true),StructField(qty,DoubleType,true)),true),true), StructField(optimizationGroups,ArrayType(StructType(StructField(optGroupId,StringType,true),StructField(assignmentDetails,StringType,true),StructField(minOrderProfile,StringType,true),StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true)),true),true), StructField(isOptimal,BooleanType,true), StructField(lastModified,TimestampType,true), StructField(optimizationInsights,ArrayType(StructType(StructField(internalInsightType,StringType,false),StructField(worklistShardItemId,LongType,true),StructField(thresholdValue,DoubleType,true),StructField(reachedValue,DoubleType,true),StructField(unitOfMeasure,StringType,true),StructField(assignmentDetails,StringType,false)),false),true)), obj#3479222: org.apache.spark.sql.Row"];
subgraph cluster2 {
isCluster="true";
id="cluster2";
label="WholeStageCodegen (8)";
tooltip="WholeStageCodegen (8)";
3 [id="node3" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#3479078, orderProposalId#3479079L, items#3479080, optimizationGroups#3479081, isOptimal#3479082, lastModified#3479083, optimizationInsights#3479084]"];
4 [id="node4" labelType="html" label="<br><b>BroadcastHashJoin</b><br><br>" tooltip="BroadcastHashJoin [shardId#3479078, orderProposalId#3479079L, lastModified#3479083], [shardId#3479101, orderProposalId#3479102L, lastModified#3479092], Inner, BuildRight, false"];
}
5 [id="node5" labelType="html" label="<br><b>Union</b><br><br>" tooltip="Union"];
subgraph cluster6 {
isCluster="true";
id="cluster6";
label="WholeStageCodegen (7)";
tooltip="WholeStageCodegen (7)";
7 [id="node7" labelType="html" label="<br><b>Filter</b><br><br>" tooltip="Filter ((isnotnull(shardId#3479078) AND isnotnull(orderProposalId#3479079L)) AND isnotnull(lastModified#3479083))"];
8 [id="node8" labelType="html" label="<br><b>Scan ExistingRDD</b><br><br>" tooltip="Scan ExistingRDD[shardId#3479078,orderProposalId#3479079L,items#3479080,optimizationGroups#3479081,isOptimal#3479082,lastModified#3479083,optimizationInsights#3479084]"];
}
9 [id="node9" labelType="html" label="<br><b>ObjectHashAggregate</b><br><br>" tooltip="ObjectHashAggregate(keys=[shardId#3473824, orderProposalId#3473826L], functions=[collect_list(struct(worklistShardItemId, worklistShardItemId#3473825L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)])"];
10 [id="node10" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 65,483<br>data size total (min, med, max (stageId: taskId))<br>9.6 MiB (258.8 KiB, 265.3 KiB, 271.2 KiB (stage 324198.0: task 908750))<br>shuffle write time total (min, med, max (stageId: taskId))<br>80 ms (1 ms, 2 ms, 3 ms (stage 324198.0: task 908725))<br>number of partitions: 37<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>2.2 MiB (59.3 KiB, 60.7 KiB, 61.7 KiB (stage 324198.0: task 908766))" tooltip="Exchange hashpartitioning(shardId#3473824, orderProposalId#3473826L, 37), ENSURE_REQUIREMENTS, [plan_id=998202]"];
11 [id="node11" labelType="html" label="<b>ObjectHashAggregate</b><br><br>number of output rows: 65,483<br>time in aggregation build total (min, med, max (stageId: taskId))<br>5.3 s (6 ms, 9 ms, 669 ms (stage 324198.0: task 908728))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 324198.0: task 908736))<br>number of sort fallback tasks: 37" tooltip="ObjectHashAggregate(keys=[shardId#3473824, orderProposalId#3473826L], functions=[partial_collect_list(struct(worklistShardItemId, worklistShardItemId#3473825L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)])"];
subgraph cluster12 {
isCluster="true";
id="cluster12";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n4.8 s (4 ms, 7 ms, 642 ms (stage 324198.0: task 908731))";
tooltip="WholeStageCodegen (1)";
13 [id="node13" labelType="html" label="<b>Filter</b><br><br>number of output rows: 119,861" tooltip="Filter (isnotnull(shardId#3473824) AND isnotnull(orderProposalId#3473826L))"];
}
14 [id="node14" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 119,861" tooltip="InMemoryTableScan [shardId#3473824, worklistShardItemId#3473825L, orderProposalId#3473826L], [isnotnull(shardId#3473824), isnotnull(orderProposalId#3473826L)]"];
15 [id="node15" labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>" tooltip="AdaptiveSparkPlan isFinalPlan=true"];
subgraph cluster16 {
isCluster="true";
id="cluster16";
label="WholeStageCodegen (2)\n \nduration: 0 ms";
tooltip="WholeStageCodegen (2)";
17 [id="node17" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [0_5_10000000532 AS shardId#3473824, worklistShardItemId#3473892L, orderProposalId#3473869L, orderProposalItemId#3473870, orderProposalItemGroupId#3473893, originalReplenishmentRunId#3473911L, orderProposalHorizonGroupingId#3473887L, splitIndicator#3473888L, previousOrderProposal#3473889L, clusterId#3473890L, cast(sequenceId#3473891 as bigint) AS sequenceId#3473834L, sourceOfSupplyUuid#3473883, supplierGroup#3473871, supplier#3473872, subrange#3473875, product#3473878, plant#3473873, purchasingOrg#3473884, purchasingGroup#3473885, mrpController#3473882, orderDateTime#3473879, deliveryDateTime#3473874, availabilityDateTime#3473880, nextAvailabilityDateTime#3473881, isFallbackOrderOnly#3473886, ... 20 more fields]"];
}
18 [id="node18" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 0<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 0<br>local bytes read: 0.0 B<br>merged fetch fallback count: 0<br>local blocks read: 0<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 0.0 B<br>local merged bytes read: 0.0 B<br>local merged chunks fetched: 0<br>shuffle write time: 0 ms<br>remote merged bytes read: 0.0 B<br>local merged blocks fetched: 0<br>corrupt merged block chunks: 0<br>fetch wait time: 0 ms<br>remote bytes read: 0.0 B<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written: 0.0 B" tooltip="Exchange hashpartitioning(worklistShardItemId#3473892L, 37), REPARTITION_BY_NUM, [plan_id=997836]"];
subgraph cluster19 {
isCluster="true";
id="cluster19";
label="WholeStageCodegen (1)";
tooltip="WholeStageCodegen (1)";
20 [id="node20" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [orderProposalId#3473869L, orderProposalItemId#3473870, supplierGroup#3473871, supplier#3473872, plant#3473873, deliveryDateTime#3473874, subrange#3473875, supplyingPlant#3473876, productGroup#3473877, product#3473878, orderDateTime#3473879, availabilityDateTime#3473880, nextAvailabilityDateTime#3473881, mrpController#3473882, sourceOfSupplyUuid#3473883, purchasingOrg#3473884, purchasingGroup#3473885, isFallbackOrderOnly#3473886, orderProposalHorizonGroupingId#3473887L, splitIndicator#3473888L, previousOrderProposal#3473889L, clusterId#3473890L, sequenceId#3473891, worklistShardItemId#3473892L, orderProposalItemGroupId#3473893, ... 19 more fields]"];
21 [id="node21" labelType="html" label="<br><b>Filter</b><br><br>" tooltip="Filter ((isnotnull(availabilityDateTime#3473880) AND isnotnull(nextAvailabilityDateTime#3473881)) AND (nextAvailabilityDateTime#3473881 > availabilityDateTime#3473880))"];
22 [id="node22" labelType="html" label="<br><b>ColumnarToRow</b><br><br>" tooltip="ColumnarToRow"];
}
23 [id="node23" labelType="html" label="<br><b>Scan parquet </b><br><br>" tooltip="FileScan parquet [orderProposalId#3473869L,orderProposalItemId#3473870,supplierGroup#3473871,supplier#3473872,plant#3473873,deliveryDateTime#3473874,subrange#3473875,supplyingPlant#3473876,productGroup#3473877,product#3473878,orderDateTime#3473879,availabilityDateTime#3473880,nextAvailabilityDateTime#3473881,mrpController#3473882,sourceOfSupplyUuid#3473883,purchasingOrg#3473884,purchasingGroup#3473885,isFallbackOrderOnly#3473886,orderProposalHorizonGroupingId#3473887L,splitIndicator#3473888L,previousOrderProposal#3473889L,clusterId#3473890L,worklistShardItemId#3473892L,orderProposalItemGroupId#3473893,externalProductId#3473894,... 20 more fields] Batched: true, DataFilters: [isnotnull(availabilityDateTime#3473880), isnotnull(nextAvailabilityDateTime#3473881), (nextAvail..., Format: Parquet, Location: PreparedDeltaFileIndex(1 paths)[hdlfs://7da5304c-1f57-47fa-b75a-0f0b4349c280.files.hdl.prod-eu20...., PartitionFilters: [isnotnull(shardId#3473913), isnotnull(sequenceId#3473891), (shardId#3473913 = 0_5_10000000532), ..., PushedFilters: [IsNotNull(availabilityDateTime), IsNotNull(nextAvailabilityDateTime)], ReadSchema: struct<orderProposalId:bigint,orderProposalItemId:string,supplierGroup:string,supplier:string,pla..."];
24 [id="node24" labelType="html" label="<b>BroadcastExchange</b><br><br>time to broadcast: 0 ms<br>time to build: 6 ms<br>time to collect: 62 ms<br>number of output rows: 2,360<br>data size: 2.1 MiB" tooltip="BroadcastExchange HashedRelationBroadcastMode(List(input[0, string, true], input[1, bigint, true], input[2, timestamp, false]),false), [plan_id=998405]"];
subgraph cluster25 {
isCluster="true";
id="cluster25";
label="WholeStageCodegen (6)\n \nduration: 9 ms";
tooltip="WholeStageCodegen (6)";
26 [id="node26" labelType="html" label="<b>Filter</b><br><br>number of output rows: 2,360" tooltip="Filter isnotnull(lastModified#3479092)"];
27 [id="node27" labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 6 ms<br>peak memory: 2.3 MiB<br>number of output rows: 2,360<br>number of sort fallback tasks: 0<br>avg hash probes per key: 1" tooltip="HashAggregate(keys=[shardId#3479101, orderProposalId#3479102L], functions=[max(lastModified#3479106)])"];
}
28 [id="node28" labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 32.6 KiB<br>number of coalesced partitions: 1" tooltip="AQEShuffleRead coalesced"];
29 [id="node29" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 2,360<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 2,360<br>local bytes read: 16.4 KiB<br>merged fetch fallback count: 0<br>local blocks read: 19<br>remote merged chunks fetched: 0<br>remote blocks read: 18<br>data size total (min, med, max (stageId: taskId))<br>110.6 KiB (6.0 KiB, 7.2 KiB, 9.1 KiB (stage 324202.0: task 908834))<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>9 ms (0 ms, 0 ms, 0 ms (stage 324202.0: task 908831))<br>remote merged bytes read: 0.0 B<br>local merged blocks fetched: 0<br>corrupt merged block chunks: 0<br>fetch wait time: 0 ms<br>remote bytes read: 14.7 KiB<br>number of partitions: 37<br>remote reqs duration: 1 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>31.1 KiB (1740.0 B, 2029.0 B, 2.6 KiB (stage 324202.0: task 908834))" tooltip="Exchange hashpartitioning(shardId#3479101, orderProposalId#3479102L, 37), ENSURE_REQUIREMENTS, [plan_id=998342]"];
subgraph cluster30 {
isCluster="true";
id="cluster30";
label="WholeStageCodegen (5)\n \nduration: total (min, med, max (stageId: taskId))\n616 ms (0 ms, 13 ms, 34 ms (stage 324202.0: task 908801))";
tooltip="WholeStageCodegen (5)";
31 [id="node31" labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build total (min, med, max (stageId: taskId))<br>239 ms (0 ms, 0 ms, 23 ms (stage 324202.0: task 908834))<br>peak memory total (min, med, max (stageId: taskId))<br>11.3 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 324202.0: task 908801))<br>number of output rows: 2,360<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#3479101, orderProposalId#3479102L], functions=[partial_max(lastModified#3479106)])"];
}
32 [id="node32" labelType="html" label="<br><b>Union</b><br><br>" tooltip="Union"];
subgraph cluster33 {
isCluster="true";
id="cluster33";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n761 ms (0 ms, 1 ms, 76 ms (stage 324202.0: task 908806))";
tooltip="WholeStageCodegen (3)";
34 [id="node34" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#3479101, orderProposalId#3479102L, lastModified#3479106]"];
35 [id="node35" labelType="html" label="<b>Filter</b><br><br>number of output rows: 0" tooltip="Filter (isnotnull(shardId#3479101) AND isnotnull(orderProposalId#3479102L))"];
36 [id="node36" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 0" tooltip="Scan ExistingRDD[shardId#3479101,orderProposalId#3479102L,items#3479103,optimizationGroups#3479104,isOptimal#3479105,lastModified#3479106,optimizationInsights#3479107]"];
}
subgraph cluster37 {
isCluster="true";
id="cluster37";
label="WholeStageCodegen (4)\n \nduration: total (min, med, max (stageId: taskId))\n258 ms (9 ms, 18 ms, 25 ms (stage 324202.0: task 908834))";
tooltip="WholeStageCodegen (4)";
38 [id="node38" labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build total (min, med, max (stageId: taskId))<br>194 ms (7 ms, 13 ms, 20 ms (stage 324202.0: task 908834))<br>peak memory total (min, med, max (stageId: taskId))<br>3.8 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 324202.0: task 908837))<br>number of output rows: 2,360<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#3479108, orderProposalId#3479110L], functions=[])"];
}
39 [id="node39" labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 15<br>partition data size total (min, med, max (stageId: taskId))<br>930.0 KiB (50.6 KiB, 59.5 KiB, 76.6 KiB (driver))<br>number of coalesced partitions: 15" tooltip="AQEShuffleRead coalesced"];
40 [id="node40" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 65,483<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 65,483<br>local bytes read total (min, med, max (stageId: taskId))<br>447.5 KiB (19.8 KiB, 28.3 KiB, 43.5 KiB (stage 324202.0: task 908834))<br>merged fetch fallback count: 0<br>local blocks read: 688<br>remote merged chunks fetched: 0<br>remote blocks read: 681<br>data size total (min, med, max (stageId: taskId))<br>2.5 MiB (67.3 KiB, 69.2 KiB, 70.6 KiB (stage 324199.0: task 908778))<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>80 ms (1 ms, 1 ms, 5 ms (stage 324199.0: task 908798))<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 324202.0: task 908837))<br>remote bytes read total (min, med, max (stageId: taskId))<br>439.9 KiB (19.7 KiB, 28.9 KiB, 41.6 KiB (stage 324202.0: task 908838))<br>number of partitions: 37<br>remote reqs duration total (min, med, max (stageId: taskId))<br>59 ms (3 ms, 4 ms, 6 ms (stage 324202.0: task 908838))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>887.4 KiB (23.5 KiB, 24.0 KiB, 24.4 KiB (stage 324199.0: task 908778))" tooltip="Exchange hashpartitioning(shardId#3479108, orderProposalId#3479110L, 37), ENSURE_REQUIREMENTS, [plan_id=998238]"];
subgraph cluster41 {
isCluster="true";
id="cluster41";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n636 ms (8 ms, 13 ms, 43 ms (stage 324199.0: task 908745))";
tooltip="WholeStageCodegen (2)";
42 [id="node42" labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build total (min, med, max (stageId: taskId))<br>258 ms (3 ms, 6 ms, 12 ms (stage 324199.0: task 908740))<br>peak memory total (min, med, max (stageId: taskId))<br>9.3 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 324199.0: task 908741))<br>number of output rows: 65,483<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#3479108, orderProposalId#3479110L], functions=[])"];
43 [id="node43" labelType="html" label="<b>Filter</b><br><br>number of output rows: 119,861" tooltip="Filter (isnotnull(shardId#3479108) AND isnotnull(orderProposalId#3479110L))"];
}
44 [id="node44" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 119,861" tooltip="InMemoryTableScan [shardId#3479108, orderProposalId#3479110L], [isnotnull(shardId#3479108), isnotnull(orderProposalId#3479110L)]"];
45 [id="node45" labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>" tooltip="AdaptiveSparkPlan isFinalPlan=true"];
subgraph cluster46 {
isCluster="true";
id="cluster46";
label="WholeStageCodegen (2)\n \nduration: 0 ms";
tooltip="WholeStageCodegen (2)";
47 [id="node47" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [0_5_10000000532 AS shardId#3473824, worklistShardItemId#3473892L, orderProposalId#3473869L, orderProposalItemId#3473870, orderProposalItemGroupId#3473893, originalReplenishmentRunId#3473911L, orderProposalHorizonGroupingId#3473887L, splitIndicator#3473888L, previousOrderProposal#3473889L, clusterId#3473890L, cast(sequenceId#3473891 as bigint) AS sequenceId#3473834L, sourceOfSupplyUuid#3473883, supplierGroup#3473871, supplier#3473872, subrange#3473875, product#3473878, plant#3473873, purchasingOrg#3473884, purchasingGroup#3473885, mrpController#3473882, orderDateTime#3473879, deliveryDateTime#3473874, availabilityDateTime#3473880, nextAvailabilityDateTime#3473881, isFallbackOrderOnly#3473886, ... 20 more fields]"];
}
1->0;
3->1;
4->3;
5->4;
7->5;
8->7;
9->5;
10->9;
11->10;
13->11;
14->13;
15->14;
17->15;
18->17;
20->18;
21->20;
22->21;
23->22;
24->4;
26->24;
27->26;
28->27;
29->28;
31->29;
32->31;
34->32;
35->34;
36->35;
38->32;
39->38;
40->39;
42->40;
43->42;
44->43;
45->44;
47->45;
18->47;
}
== Physical Plan ==
AdaptiveSparkPlan (73)
+- == Final Plan ==
ResultQueryStage (49), Statistics(sizeInBytes=8.0 EiB)
+- DeserializeToObject (48)
+- * Project (47)
+- * BroadcastHashJoin Inner BuildRight (46)
:- Union (24)
: :- * Filter (2)
: : +- * Scan ExistingRDD (1)
: +- ObjectHashAggregate (23)
: +- ShuffleQueryStage (22), Statistics(sizeInBytes=9.6 MiB, rowCount=6.55E+4)
: +- Exchange (21)
: +- ObjectHashAggregate (20)
: +- * Filter (19)
: +- TableCacheQueryStage (18), Statistics(sizeInBytes=138.1 MiB, rowCount=1.20E+5)
: +- InMemoryTableScan (3)
: +- InMemoryRelation (4)
: +- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=155.6 MiB, rowCount=1.20E+5)
+- Exchange (9)
+- * Project (8)
+- * Filter (7)
+- * ColumnarToRow (6)
+- Scan parquet (5)
+- == Initial Plan ==
Project (16)
+- Exchange (15)
+- Project (14)
+- Filter (13)
+- Scan parquet (5)
+- BroadcastQueryStage (45), Statistics(sizeInBytes=2.1 MiB, rowCount=2.36E+3)
+- BroadcastExchange (44)
+- * Filter (43)
+- * HashAggregate (42)
+- AQEShuffleRead (41)
+- ShuffleQueryStage (40), Statistics(sizeInBytes=110.6 KiB, rowCount=2.36E+3)
+- Exchange (39)
+- * HashAggregate (38)
+- Union (37)
:- * Project (27)
: +- * Filter (26)
: +- * Scan ExistingRDD (25)
+- * HashAggregate (36)
+- AQEShuffleRead (35)
+- ShuffleQueryStage (34), Statistics(sizeInBytes=2.5 MiB, rowCount=6.55E+4)
+- Exchange (33)
+- * HashAggregate (32)
+- * Filter (31)
+- TableCacheQueryStage (30), Statistics(sizeInBytes=138.1 MiB, rowCount=1.20E+5)
+- InMemoryTableScan (28)
+- InMemoryRelation (29)
+- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=155.6 MiB, rowCount=1.20E+5)
+- Exchange (9)
+- * Project (8)
+- * Filter (7)
+- * ColumnarToRow (6)
+- Scan parquet (5)
+- == Initial Plan ==
Project (16)
+- Exchange (15)
+- Project (14)
+- Filter (13)
+- Scan parquet (5)
+- == Initial Plan ==
DeserializeToObject (72)
+- Project (71)
+- SortMergeJoin Inner (70)
:- Sort (58)
: +- Exchange (57)
: +- Union (56)
: :- Filter (51)
: : +- Scan ExistingRDD (50)
: +- ObjectHashAggregate (55)
: +- Exchange (54)
: +- ObjectHashAggregate (53)
: +- Filter (52)
: +- InMemoryTableScan (3)
: +- InMemoryRelation (4)
: +- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=155.6 MiB, rowCount=1.20E+5)
+- Exchange (9)
+- * Project (8)
+- * Filter (7)
+- * ColumnarToRow (6)
+- Scan parquet (5)
+- == Initial Plan ==
Project (16)
+- Exchange (15)
+- Project (14)
+- Filter (13)
+- Scan parquet (5)
+- Sort (69)
+- Exchange (68)
+- Filter (67)
+- HashAggregate (66)
+- Exchange (65)
+- HashAggregate (64)
+- Union (63)
:- Project (27)
: +- Filter (26)
: +- Scan ExistingRDD (25)
+- HashAggregate (62)
+- Exchange (61)
+- HashAggregate (60)
+- Filter (59)
+- InMemoryTableScan (28)
+- InMemoryRelation (29)
+- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=155.6 MiB, rowCount=1.20E+5)
+- Exchange (9)
+- * Project (8)
+- * Filter (7)
+- * ColumnarToRow (6)
+- Scan parquet (5)
+- == Initial Plan ==
Project (16)
+- Exchange (15)
+- Project (14)
+- Filter (13)
+- Scan parquet (5)
(1) Scan ExistingRDD [codegen id : 7]
Output [7]: [shardId#3479078, orderProposalId#3479079L, items#3479080, optimizationGroups#3479081, isOptimal#3479082, lastModified#3479083, optimizationInsights#3479084]
Arguments: [shardId#3479078, orderProposalId#3479079L, items#3479080, optimizationGroups#3479081, isOptimal#3479082, lastModified#3479083, optimizationInsights#3479084], MapPartitionsRDD[147891] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(2) Filter [codegen id : 7]
Input [7]: [shardId#3479078, orderProposalId#3479079L, items#3479080, optimizationGroups#3479081, isOptimal#3479082, lastModified#3479083, optimizationInsights#3479084]
Condition : ((isnotnull(shardId#3479078) AND isnotnull(orderProposalId#3479079L)) AND isnotnull(lastModified#3479083))
(3) InMemoryTableScan
Output [3]: [shardId#3473824, worklistShardItemId#3473825L, orderProposalId#3473826L]
Arguments: [shardId#3473824, worklistShardItemId#3473825L, orderProposalId#3473826L], [isnotnull(shardId#3473824), isnotnull(orderProposalId#3473826L)]
(4) InMemoryRelation
Arguments: [shardId#3473824, worklistShardItemId#3473825L, orderProposalId#3473826L, orderProposalItemId#3473827, orderProposalItemGroupId#3473828, originalReplenishmentRunId#3473829L, orderProposalHorizonGroupingId#3473830L, splitIndicator#3473831L, previousOrderProposal#3473832L, clusterId#3473833L, sequenceId#3473834L, sourceOfSupplyUuid#3473835, supplierGroup#3473836, supplier#3473837, subrange#3473838, product#3473839, plant#3473840, purchasingOrg#3473841, purchasingGroup#3473842, mrpController#3473843, orderDateTime#3473844, deliveryDateTime#3473845, availabilityDateTime#3473846, nextAvailabilityDateTime#3473847, isFallbackOrderOnly#3473848, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(5) Scan parquet
Output [45]: [orderProposalId#3473869L, orderProposalItemId#3473870, supplierGroup#3473871, supplier#3473872, plant#3473873, deliveryDateTime#3473874, subrange#3473875, supplyingPlant#3473876, productGroup#3473877, product#3473878, orderDateTime#3473879, availabilityDateTime#3473880, nextAvailabilityDateTime#3473881, mrpController#3473882, sourceOfSupplyUuid#3473883, purchasingOrg#3473884, purchasingGroup#3473885, isFallbackOrderOnly#3473886, orderProposalHorizonGroupingId#3473887L, splitIndicator#3473888L, previousOrderProposal#3473889L, clusterId#3473890L, worklistShardItemId#3473892L, orderProposalItemGroupId#3473893, externalProductId#3473894, externalPlantId#3473895, logisticUnits#3473896, orderQuantityBaseUom#3473897, orderQuantityBaseUomUuid#3473898, minimumOrderQuantity#3473899, constraintLabels#3473900, constraintOperators#3473901, constraintValues#3473902, constraintRanks#3473903, constraintIsActive#3473904, netPriceAmount#3473905, netPriceCurrencyCode#3473906, netPriceQuantity#3473907, netPriceQuantityUom#3473908, netPriceQuantityUomUuid#3473909, measurements#3473910, originalReplenishmentRunId#3473911L, optimizationGroups#3473912, shardId#3473913, sequenceId#3473891]
Batched: true
Location: PreparedDeltaFileIndex [hdlfs://7da5304c-1f57-47fa-b75a-0f0b4349c280.files.hdl.prod-eu20.hanacloud.ondemand.com:443/crp-order-qty-opt-service/internal/prod-plant-snapshot/10000000532]
PartitionFilters: [isnotnull(shardId#3473913), isnotnull(sequenceId#3473891), (shardId#3473913 = 0_5_10000000532), (sequenceId#3473891 = 5)]
PushedFilters: [IsNotNull(availabilityDateTime), IsNotNull(nextAvailabilityDateTime)]
ReadSchema: struct<orderProposalId:bigint,orderProposalItemId:string,supplierGroup:string,supplier:string,plant:string,deliveryDateTime:timestamp,subrange:string,supplyingPlant:string,productGroup:string,product:string,orderDateTime:timestamp,availabilityDateTime:timestamp,nextAvailabilityDateTime:timestamp,mrpController:string,sourceOfSupplyUuid:string,purchasingOrg:string,purchasingGroup:string,isFallbackOrderOnly:boolean,orderProposalHorizonGroupingId:bigint,splitIndicator:bigint,previousOrderProposal:bigint,clusterId:bigint,worklistShardItemId:bigint,orderProposalItemGroupId:string,externalProductId:string,externalPlantId:string,logisticUnits:array<struct<uom:string,uomUuid:string,numerator:int,denominator:int,isOrderUnit:boolean,isPreferred:boolean>>,orderQuantityBaseUom:string,orderQuantityBaseUomUuid:string,minimumOrderQuantity:double,constraintLabels:array<string>,constraintOperators:array<string>,constraintValues:array<double>,constraintRanks:array<int>,constraintIsActive:array<boolean>,netPriceAmount:double,netPriceCurrencyCode:string,netPriceQuantity:double,netPriceQuantityUom:string,netPriceQuantityUomUuid:string,measurements:array<struct<value:double,dimensionType:int,dimensionCode:string,dimensionCodeUuid:string,isoCode:string>>,originalReplenishmentRunId:bigint,optimizationGroups:array<string>>
(6) ColumnarToRow [codegen id : 1]
Input [45]: [orderProposalId#3473869L, orderProposalItemId#3473870, supplierGroup#3473871, supplier#3473872, plant#3473873, deliveryDateTime#3473874, subrange#3473875, supplyingPlant#3473876, productGroup#3473877, product#3473878, orderDateTime#3473879, availabilityDateTime#3473880, nextAvailabilityDateTime#3473881, mrpController#3473882, sourceOfSupplyUuid#3473883, purchasingOrg#3473884, purchasingGroup#3473885, isFallbackOrderOnly#3473886, orderProposalHorizonGroupingId#3473887L, splitIndicator#3473888L, previousOrderProposal#3473889L, clusterId#3473890L, worklistShardItemId#3473892L, orderProposalItemGroupId#3473893, externalProductId#3473894, externalPlantId#3473895, logisticUnits#3473896, orderQuantityBaseUom#3473897, orderQuantityBaseUomUuid#3473898, minimumOrderQuantity#3473899, constraintLabels#3473900, constraintOperators#3473901, constraintValues#3473902, constraintRanks#3473903, constraintIsActive#3473904, netPriceAmount#3473905, netPriceCurrencyCode#3473906, netPriceQuantity#3473907, netPriceQuantityUom#3473908, netPriceQuantityUomUuid#3473909, measurements#3473910, originalReplenishmentRunId#3473911L, optimizationGroups#3473912, shardId#3473913, sequenceId#3473891]
(7) Filter [codegen id : 1]
Input [45]: [orderProposalId#3473869L, orderProposalItemId#3473870, supplierGroup#3473871, supplier#3473872, plant#3473873, deliveryDateTime#3473874, subrange#3473875, supplyingPlant#3473876, productGroup#3473877, product#3473878, orderDateTime#3473879, availabilityDateTime#3473880, nextAvailabilityDateTime#3473881, mrpController#3473882, sourceOfSupplyUuid#3473883, purchasingOrg#3473884, purchasingGroup#3473885, isFallbackOrderOnly#3473886, orderProposalHorizonGroupingId#3473887L, splitIndicator#3473888L, previousOrderProposal#3473889L, clusterId#3473890L, worklistShardItemId#3473892L, orderProposalItemGroupId#3473893, externalProductId#3473894, externalPlantId#3473895, logisticUnits#3473896, orderQuantityBaseUom#3473897, orderQuantityBaseUomUuid#3473898, minimumOrderQuantity#3473899, constraintLabels#3473900, constraintOperators#3473901, constraintValues#3473902, constraintRanks#3473903, constraintIsActive#3473904, netPriceAmount#3473905, netPriceCurrencyCode#3473906, netPriceQuantity#3473907, netPriceQuantityUom#3473908, netPriceQuantityUomUuid#3473909, measurements#3473910, originalReplenishmentRunId#3473911L, optimizationGroups#3473912, shardId#3473913, sequenceId#3473891]
Condition : ((isnotnull(availabilityDateTime#3473880) AND isnotnull(nextAvailabilityDateTime#3473881)) AND (nextAvailabilityDateTime#3473881 > availabilityDateTime#3473880))
(8) Project [codegen id : 1]
Output [44]: [orderProposalId#3473869L, orderProposalItemId#3473870, supplierGroup#3473871, supplier#3473872, plant#3473873, deliveryDateTime#3473874, subrange#3473875, supplyingPlant#3473876, productGroup#3473877, product#3473878, orderDateTime#3473879, availabilityDateTime#3473880, nextAvailabilityDateTime#3473881, mrpController#3473882, sourceOfSupplyUuid#3473883, purchasingOrg#3473884, purchasingGroup#3473885, isFallbackOrderOnly#3473886, orderProposalHorizonGroupingId#3473887L, splitIndicator#3473888L, previousOrderProposal#3473889L, clusterId#3473890L, sequenceId#3473891, worklistShardItemId#3473892L, orderProposalItemGroupId#3473893, externalProductId#3473894, externalPlantId#3473895, logisticUnits#3473896, orderQuantityBaseUom#3473897, orderQuantityBaseUomUuid#3473898, minimumOrderQuantity#3473899, constraintLabels#3473900, constraintOperators#3473901, constraintValues#3473902, constraintRanks#3473903, constraintIsActive#3473904, netPriceAmount#3473905, netPriceCurrencyCode#3473906, netPriceQuantity#3473907, netPriceQuantityUom#3473908, netPriceQuantityUomUuid#3473909, measurements#3473910, originalReplenishmentRunId#3473911L, optimizationGroups#3473912]
Input [45]: [orderProposalId#3473869L, orderProposalItemId#3473870, supplierGroup#3473871, supplier#3473872, plant#3473873, deliveryDateTime#3473874, subrange#3473875, supplyingPlant#3473876, productGroup#3473877, product#3473878, orderDateTime#3473879, availabilityDateTime#3473880, nextAvailabilityDateTime#3473881, mrpController#3473882, sourceOfSupplyUuid#3473883, purchasingOrg#3473884, purchasingGroup#3473885, isFallbackOrderOnly#3473886, orderProposalHorizonGroupingId#3473887L, splitIndicator#3473888L, previousOrderProposal#3473889L, clusterId#3473890L, worklistShardItemId#3473892L, orderProposalItemGroupId#3473893, externalProductId#3473894, externalPlantId#3473895, logisticUnits#3473896, orderQuantityBaseUom#3473897, orderQuantityBaseUomUuid#3473898, minimumOrderQuantity#3473899, constraintLabels#3473900, constraintOperators#3473901, constraintValues#3473902, constraintRanks#3473903, constraintIsActive#3473904, netPriceAmount#3473905, netPriceCurrencyCode#3473906, netPriceQuantity#3473907, netPriceQuantityUom#3473908, netPriceQuantityUomUuid#3473909, measurements#3473910, originalReplenishmentRunId#3473911L, optimizationGroups#3473912, shardId#3473913, sequenceId#3473891]
(9) Exchange
Input [44]: [orderProposalId#3473869L, orderProposalItemId#3473870, supplierGroup#3473871, supplier#3473872, plant#3473873, deliveryDateTime#3473874, subrange#3473875, supplyingPlant#3473876, productGroup#3473877, product#3473878, orderDateTime#3473879, availabilityDateTime#3473880, nextAvailabilityDateTime#3473881, mrpController#3473882, sourceOfSupplyUuid#3473883, purchasingOrg#3473884, purchasingGroup#3473885, isFallbackOrderOnly#3473886, orderProposalHorizonGroupingId#3473887L, splitIndicator#3473888L, previousOrderProposal#3473889L, clusterId#3473890L, sequenceId#3473891, worklistShardItemId#3473892L, orderProposalItemGroupId#3473893, externalProductId#3473894, externalPlantId#3473895, logisticUnits#3473896, orderQuantityBaseUom#3473897, orderQuantityBaseUomUuid#3473898, minimumOrderQuantity#3473899, constraintLabels#3473900, constraintOperators#3473901, constraintValues#3473902, constraintRanks#3473903, constraintIsActive#3473904, netPriceAmount#3473905, netPriceCurrencyCode#3473906, netPriceQuantity#3473907, netPriceQuantityUom#3473908, netPriceQuantityUomUuid#3473909, measurements#3473910, originalReplenishmentRunId#3473911L, optimizationGroups#3473912]
Arguments: hashpartitioning(worklistShardItemId#3473892L, 37), REPARTITION_BY_NUM, [plan_id=997836]
(10) ShuffleQueryStage
Output [44]: [orderProposalId#3473869L, orderProposalItemId#3473870, supplierGroup#3473871, supplier#3473872, plant#3473873, deliveryDateTime#3473874, subrange#3473875, supplyingPlant#3473876, productGroup#3473877, product#3473878, orderDateTime#3473879, availabilityDateTime#3473880, nextAvailabilityDateTime#3473881, mrpController#3473882, sourceOfSupplyUuid#3473883, purchasingOrg#3473884, purchasingGroup#3473885, isFallbackOrderOnly#3473886, orderProposalHorizonGroupingId#3473887L, splitIndicator#3473888L, previousOrderProposal#3473889L, clusterId#3473890L, sequenceId#3473891, worklistShardItemId#3473892L, orderProposalItemGroupId#3473893, externalProductId#3473894, externalPlantId#3473895, logisticUnits#3473896, orderQuantityBaseUom#3473897, orderQuantityBaseUomUuid#3473898, minimumOrderQuantity#3473899, constraintLabels#3473900, constraintOperators#3473901, constraintValues#3473902, constraintRanks#3473903, constraintIsActive#3473904, netPriceAmount#3473905, netPriceCurrencyCode#3473906, netPriceQuantity#3473907, netPriceQuantityUom#3473908, netPriceQuantityUomUuid#3473909, measurements#3473910, originalReplenishmentRunId#3473911L, optimizationGroups#3473912]
Arguments: 0
(11) Project [codegen id : 2]
Output [45]: [0_5_10000000532 AS shardId#3473824, worklistShardItemId#3473892L, orderProposalId#3473869L, orderProposalItemId#3473870, orderProposalItemGroupId#3473893, originalReplenishmentRunId#3473911L, orderProposalHorizonGroupingId#3473887L, splitIndicator#3473888L, previousOrderProposal#3473889L, clusterId#3473890L, cast(sequenceId#3473891 as bigint) AS sequenceId#3473834L, sourceOfSupplyUuid#3473883, supplierGroup#3473871, supplier#3473872, subrange#3473875, product#3473878, plant#3473873, purchasingOrg#3473884, purchasingGroup#3473885, mrpController#3473882, orderDateTime#3473879, deliveryDateTime#3473874, availabilityDateTime#3473880, nextAvailabilityDateTime#3473881, isFallbackOrderOnly#3473886, orderQuantityBaseUom#3473897, orderQuantityBaseUomUuid#3473898, netPriceQuantity#3473907, netPriceQuantityUom#3473908, netPriceQuantityUomUuid#3473909, netPriceAmount#3473905, netPriceCurrencyCode#3473906, measurements#3473910, minimumOrderQuantity#3473899, constraintLabels#3473900, constraintOperators#3473901, constraintRanks#3473903, constraintValues#3473902, constraintIsActive#3473904, logisticUnits#3473896, optimizationGroups#3473912, externalProductId#3473894, externalPlantId#3473895, supplyingPlant#3473876, productGroup#3473877]
Input [44]: [orderProposalId#3473869L, orderProposalItemId#3473870, supplierGroup#3473871, supplier#3473872, plant#3473873, deliveryDateTime#3473874, subrange#3473875, supplyingPlant#3473876, productGroup#3473877, product#3473878, orderDateTime#3473879, availabilityDateTime#3473880, nextAvailabilityDateTime#3473881, mrpController#3473882, sourceOfSupplyUuid#3473883, purchasingOrg#3473884, purchasingGroup#3473885, isFallbackOrderOnly#3473886, orderProposalHorizonGroupingId#3473887L, splitIndicator#3473888L, previousOrderProposal#3473889L, clusterId#3473890L, sequenceId#3473891, worklistShardItemId#3473892L, orderProposalItemGroupId#3473893, externalProductId#3473894, externalPlantId#3473895, logisticUnits#3473896, orderQuantityBaseUom#3473897, orderQuantityBaseUomUuid#3473898, minimumOrderQuantity#3473899, constraintLabels#3473900, constraintOperators#3473901, constraintValues#3473902, constraintRanks#3473903, constraintIsActive#3473904, netPriceAmount#3473905, netPriceCurrencyCode#3473906, netPriceQuantity#3473907, netPriceQuantityUom#3473908, netPriceQuantityUomUuid#3473909, measurements#3473910, originalReplenishmentRunId#3473911L, optimizationGroups#3473912]
(12) ResultQueryStage
Output [45]: [shardId#3473824, worklistShardItemId#3473892L, orderProposalId#3473869L, orderProposalItemId#3473870, orderProposalItemGroupId#3473893, originalReplenishmentRunId#3473911L, orderProposalHorizonGroupingId#3473887L, splitIndicator#3473888L, previousOrderProposal#3473889L, clusterId#3473890L, sequenceId#3473834L, sourceOfSupplyUuid#3473883, supplierGroup#3473871, supplier#3473872, subrange#3473875, product#3473878, plant#3473873, purchasingOrg#3473884, purchasingGroup#3473885, mrpController#3473882, orderDateTime#3473879, deliveryDateTime#3473874, availabilityDateTime#3473880, nextAvailabilityDateTime#3473881, isFallbackOrderOnly#3473886, orderQuantityBaseUom#3473897, orderQuantityBaseUomUuid#3473898, netPriceQuantity#3473907, netPriceQuantityUom#3473908, netPriceQuantityUomUuid#3473909, netPriceAmount#3473905, netPriceCurrencyCode#3473906, measurements#3473910, minimumOrderQuantity#3473899, constraintLabels#3473900, constraintOperators#3473901, constraintRanks#3473903, constraintValues#3473902, constraintIsActive#3473904, logisticUnits#3473896, optimizationGroups#3473912, externalProductId#3473894, externalPlantId#3473895, supplyingPlant#3473876, productGroup#3473877]
Arguments: 1
(13) Filter
Input [45]: [orderProposalId#3473869L, orderProposalItemId#3473870, supplierGroup#3473871, supplier#3473872, plant#3473873, deliveryDateTime#3473874, subrange#3473875, supplyingPlant#3473876, productGroup#3473877, product#3473878, orderDateTime#3473879, availabilityDateTime#3473880, nextAvailabilityDateTime#3473881, mrpController#3473882, sourceOfSupplyUuid#3473883, purchasingOrg#3473884, purchasingGroup#3473885, isFallbackOrderOnly#3473886, orderProposalHorizonGroupingId#3473887L, splitIndicator#3473888L, previousOrderProposal#3473889L, clusterId#3473890L, worklistShardItemId#3473892L, orderProposalItemGroupId#3473893, externalProductId#3473894, externalPlantId#3473895, logisticUnits#3473896, orderQuantityBaseUom#3473897, orderQuantityBaseUomUuid#3473898, minimumOrderQuantity#3473899, constraintLabels#3473900, constraintOperators#3473901, constraintValues#3473902, constraintRanks#3473903, constraintIsActive#3473904, netPriceAmount#3473905, netPriceCurrencyCode#3473906, netPriceQuantity#3473907, netPriceQuantityUom#3473908, netPriceQuantityUomUuid#3473909, measurements#3473910, originalReplenishmentRunId#3473911L, optimizationGroups#3473912, shardId#3473913, sequenceId#3473891]
Condition : ((isnotnull(availabilityDateTime#3473880) AND isnotnull(nextAvailabilityDateTime#3473881)) AND (nextAvailabilityDateTime#3473881 > availabilityDateTime#3473880))
(14) Project
Output [44]: [orderProposalId#3473869L, orderProposalItemId#3473870, supplierGroup#3473871, supplier#3473872, plant#3473873, deliveryDateTime#3473874, subrange#3473875, supplyingPlant#3473876, productGroup#3473877, product#3473878, orderDateTime#3473879, availabilityDateTime#3473880, nextAvailabilityDateTime#3473881, mrpController#3473882, sourceOfSupplyUuid#3473883, purchasingOrg#3473884, purchasingGroup#3473885, isFallbackOrderOnly#3473886, orderProposalHorizonGroupingId#3473887L, splitIndicator#3473888L, previousOrderProposal#3473889L, clusterId#3473890L, sequenceId#3473891, worklistShardItemId#3473892L, orderProposalItemGroupId#3473893, externalProductId#3473894, externalPlantId#3473895, logisticUnits#3473896, orderQuantityBaseUom#3473897, orderQuantityBaseUomUuid#3473898, minimumOrderQuantity#3473899, constraintLabels#3473900, constraintOperators#3473901, constraintValues#3473902, constraintRanks#3473903, constraintIsActive#3473904, netPriceAmount#3473905, netPriceCurrencyCode#3473906, netPriceQuantity#3473907, netPriceQuantityUom#3473908, netPriceQuantityUomUuid#3473909, measurements#3473910, originalReplenishmentRunId#3473911L, optimizationGroups#3473912]
Input [45]: [orderProposalId#3473869L, orderProposalItemId#3473870, supplierGroup#3473871, supplier#3473872, plant#3473873, deliveryDateTime#3473874, subrange#3473875, supplyingPlant#3473876, productGroup#3473877, product#3473878, orderDateTime#3473879, availabilityDateTime#3473880, nextAvailabilityDateTime#3473881, mrpController#3473882, sourceOfSupplyUuid#3473883, purchasingOrg#3473884, purchasingGroup#3473885, isFallbackOrderOnly#3473886, orderProposalHorizonGroupingId#3473887L, splitIndicator#3473888L, previousOrderProposal#3473889L, clusterId#3473890L, worklistShardItemId#3473892L, orderProposalItemGroupId#3473893, externalProductId#3473894, externalPlantId#3473895, logisticUnits#3473896, orderQuantityBaseUom#3473897, orderQuantityBaseUomUuid#3473898, minimumOrderQuantity#3473899, constraintLabels#3473900, constraintOperators#3473901, constraintValues#3473902, constraintRanks#3473903, constraintIsActive#3473904, netPriceAmount#3473905, netPriceCurrencyCode#3473906, netPriceQuantity#3473907, netPriceQuantityUom#3473908, netPriceQuantityUomUuid#3473909, measurements#3473910, originalReplenishmentRunId#3473911L, optimizationGroups#3473912, shardId#3473913, sequenceId#3473891]
(15) Exchange
Input [44]: [orderProposalId#3473869L, orderProposalItemId#3473870, supplierGroup#3473871, supplier#3473872, plant#3473873, deliveryDateTime#3473874, subrange#3473875, supplyingPlant#3473876, productGroup#3473877, product#3473878, orderDateTime#3473879, availabilityDateTime#3473880, nextAvailabilityDateTime#3473881, mrpController#3473882, sourceOfSupplyUuid#3473883, purchasingOrg#3473884, purchasingGroup#3473885, isFallbackOrderOnly#3473886, orderProposalHorizonGroupingId#3473887L, splitIndicator#3473888L, previousOrderProposal#3473889L, clusterId#3473890L, sequenceId#3473891, worklistShardItemId#3473892L, orderProposalItemGroupId#3473893, externalProductId#3473894, externalPlantId#3473895, logisticUnits#3473896, orderQuantityBaseUom#3473897, orderQuantityBaseUomUuid#3473898, minimumOrderQuantity#3473899, constraintLabels#3473900, constraintOperators#3473901, constraintValues#3473902, constraintRanks#3473903, constraintIsActive#3473904, netPriceAmount#3473905, netPriceCurrencyCode#3473906, netPriceQuantity#3473907, netPriceQuantityUom#3473908, netPriceQuantityUomUuid#3473909, measurements#3473910, originalReplenishmentRunId#3473911L, optimizationGroups#3473912]
Arguments: hashpartitioning(worklistShardItemId#3473892L, 37), REPARTITION_BY_NUM, [plan_id=997808]
(16) Project
Output [45]: [0_5_10000000532 AS shardId#3473824, worklistShardItemId#3473892L, orderProposalId#3473869L, orderProposalItemId#3473870, orderProposalItemGroupId#3473893, originalReplenishmentRunId#3473911L, orderProposalHorizonGroupingId#3473887L, splitIndicator#3473888L, previousOrderProposal#3473889L, clusterId#3473890L, cast(sequenceId#3473891 as bigint) AS sequenceId#3473834L, sourceOfSupplyUuid#3473883, supplierGroup#3473871, supplier#3473872, subrange#3473875, product#3473878, plant#3473873, purchasingOrg#3473884, purchasingGroup#3473885, mrpController#3473882, orderDateTime#3473879, deliveryDateTime#3473874, availabilityDateTime#3473880, nextAvailabilityDateTime#3473881, isFallbackOrderOnly#3473886, orderQuantityBaseUom#3473897, orderQuantityBaseUomUuid#3473898, netPriceQuantity#3473907, netPriceQuantityUom#3473908, netPriceQuantityUomUuid#3473909, netPriceAmount#3473905, netPriceCurrencyCode#3473906, measurements#3473910, minimumOrderQuantity#3473899, constraintLabels#3473900, constraintOperators#3473901, constraintRanks#3473903, constraintValues#3473902, constraintIsActive#3473904, logisticUnits#3473896, optimizationGroups#3473912, externalProductId#3473894, externalPlantId#3473895, supplyingPlant#3473876, productGroup#3473877]
Input [44]: [orderProposalId#3473869L, orderProposalItemId#3473870, supplierGroup#3473871, supplier#3473872, plant#3473873, deliveryDateTime#3473874, subrange#3473875, supplyingPlant#3473876, productGroup#3473877, product#3473878, orderDateTime#3473879, availabilityDateTime#3473880, nextAvailabilityDateTime#3473881, mrpController#3473882, sourceOfSupplyUuid#3473883, purchasingOrg#3473884, purchasingGroup#3473885, isFallbackOrderOnly#3473886, orderProposalHorizonGroupingId#3473887L, splitIndicator#3473888L, previousOrderProposal#3473889L, clusterId#3473890L, sequenceId#3473891, worklistShardItemId#3473892L, orderProposalItemGroupId#3473893, externalProductId#3473894, externalPlantId#3473895, logisticUnits#3473896, orderQuantityBaseUom#3473897, orderQuantityBaseUomUuid#3473898, minimumOrderQuantity#3473899, constraintLabels#3473900, constraintOperators#3473901, constraintValues#3473902, constraintRanks#3473903, constraintIsActive#3473904, netPriceAmount#3473905, netPriceCurrencyCode#3473906, netPriceQuantity#3473907, netPriceQuantityUom#3473908, netPriceQuantityUomUuid#3473909, measurements#3473910, originalReplenishmentRunId#3473911L, optimizationGroups#3473912]
(17) AdaptiveSparkPlan
Output [45]: [shardId#3473824, worklistShardItemId#3473892L, orderProposalId#3473869L, orderProposalItemId#3473870, orderProposalItemGroupId#3473893, originalReplenishmentRunId#3473911L, orderProposalHorizonGroupingId#3473887L, splitIndicator#3473888L, previousOrderProposal#3473889L, clusterId#3473890L, sequenceId#3473834L, sourceOfSupplyUuid#3473883, supplierGroup#3473871, supplier#3473872, subrange#3473875, product#3473878, plant#3473873, purchasingOrg#3473884, purchasingGroup#3473885, mrpController#3473882, orderDateTime#3473879, deliveryDateTime#3473874, availabilityDateTime#3473880, nextAvailabilityDateTime#3473881, isFallbackOrderOnly#3473886, orderQuantityBaseUom#3473897, orderQuantityBaseUomUuid#3473898, netPriceQuantity#3473907, netPriceQuantityUom#3473908, netPriceQuantityUomUuid#3473909, netPriceAmount#3473905, netPriceCurrencyCode#3473906, measurements#3473910, minimumOrderQuantity#3473899, constraintLabels#3473900, constraintOperators#3473901, constraintRanks#3473903, constraintValues#3473902, constraintIsActive#3473904, logisticUnits#3473896, optimizationGroups#3473912, externalProductId#3473894, externalPlantId#3473895, supplyingPlant#3473876, productGroup#3473877]
Arguments: isFinalPlan=true
(18) TableCacheQueryStage
Output [3]: [shardId#3473824, worklistShardItemId#3473825L, orderProposalId#3473826L]
Arguments: 0
(19) Filter [codegen id : 1]
Input [3]: [shardId#3473824, worklistShardItemId#3473825L, orderProposalId#3473826L]
Condition : (isnotnull(shardId#3473824) AND isnotnull(orderProposalId#3473826L))
(20) ObjectHashAggregate
Input [3]: [shardId#3473824, worklistShardItemId#3473825L, orderProposalId#3473826L]
Keys [2]: [shardId#3473824, orderProposalId#3473826L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#3473825L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#3480573]
Results [3]: [shardId#3473824, orderProposalId#3473826L, buf#3480574]
(21) Exchange
Input [3]: [shardId#3473824, orderProposalId#3473826L, buf#3480574]
Arguments: hashpartitioning(shardId#3473824, orderProposalId#3473826L, 37), ENSURE_REQUIREMENTS, [plan_id=998202]
(22) ShuffleQueryStage [codegen id : 7]
Output [3]: [shardId#3473824, orderProposalId#3473826L, buf#3480574]
Arguments: 2
(23) ObjectHashAggregate [codegen id : 7]
Input [3]: [shardId#3473824, orderProposalId#3473826L, buf#3480574]
Keys [2]: [shardId#3473824, orderProposalId#3473826L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#3473825L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#3473825L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#3479069]
Results [7]: [shardId#3473824, orderProposalId#3473826L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#3473825L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#3479069, lambdafunction(struct(worklistShardItemId, lambda x_11538#3479090.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_11538#3479090.quantityAfterProdPlantOptimization, qty, lambda x_11538#3479090.optimalQuantity), lambda x_11538#3479090, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#3479091, [] AS optimizationGroups#3479085, false AS isOptimal#3479070, 2026-08-31 14:06:37.563352 AS lastModified#3479089, [] AS optimizationInsights#3479086]
(24) Union
(25) Scan ExistingRDD [codegen id : 3]
Output [7]: [shardId#3479101, orderProposalId#3479102L, items#3479103, optimizationGroups#3479104, isOptimal#3479105, lastModified#3479106, optimizationInsights#3479107]
Arguments: [shardId#3479101, orderProposalId#3479102L, items#3479103, optimizationGroups#3479104, isOptimal#3479105, lastModified#3479106, optimizationInsights#3479107], MapPartitionsRDD[147891] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(26) Filter [codegen id : 3]
Input [7]: [shardId#3479101, orderProposalId#3479102L, items#3479103, optimizationGroups#3479104, isOptimal#3479105, lastModified#3479106, optimizationInsights#3479107]
Condition : (isnotnull(shardId#3479101) AND isnotnull(orderProposalId#3479102L))
(27) Project [codegen id : 3]
Output [3]: [shardId#3479101, orderProposalId#3479102L, lastModified#3479106]
Input [7]: [shardId#3479101, orderProposalId#3479102L, items#3479103, optimizationGroups#3479104, isOptimal#3479105, lastModified#3479106, optimizationInsights#3479107]
(28) InMemoryTableScan
Output [2]: [shardId#3479108, orderProposalId#3479110L]
Arguments: [shardId#3479108, orderProposalId#3479110L], [isnotnull(shardId#3479108), isnotnull(orderProposalId#3479110L)]
(29) InMemoryRelation
Arguments: [shardId#3479108, worklistShardItemId#3479109L, orderProposalId#3479110L, orderProposalItemId#3479111, orderProposalItemGroupId#3479112, originalReplenishmentRunId#3479113L, orderProposalHorizonGroupingId#3479114L, splitIndicator#3479115L, previousOrderProposal#3479116L, clusterId#3479117L, sequenceId#3479118L, sourceOfSupplyUuid#3479119, supplierGroup#3479120, supplier#3479121, subrange#3479122, product#3479123, plant#3479124, purchasingOrg#3479125, purchasingGroup#3479126, mrpController#3479127, orderDateTime#3479128, deliveryDateTime#3479129, availabilityDateTime#3479130, nextAvailabilityDateTime#3479131, isFallbackOrderOnly#3479132, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(30) TableCacheQueryStage
Output [2]: [shardId#3479108, orderProposalId#3479110L]
Arguments: 1
(31) Filter [codegen id : 2]
Input [2]: [shardId#3479108, orderProposalId#3479110L]
Condition : (isnotnull(shardId#3479108) AND isnotnull(orderProposalId#3479110L))
(32) HashAggregate [codegen id : 2]
Input [2]: [shardId#3479108, orderProposalId#3479110L]
Keys [2]: [shardId#3479108, orderProposalId#3479110L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#3479108, orderProposalId#3479110L]
(33) Exchange
Input [2]: [shardId#3479108, orderProposalId#3479110L]
Arguments: hashpartitioning(shardId#3479108, orderProposalId#3479110L, 37), ENSURE_REQUIREMENTS, [plan_id=998238]
(34) ShuffleQueryStage
Output [2]: [shardId#3479108, orderProposalId#3479110L]
Arguments: 3
(35) AQEShuffleRead
Input [2]: [shardId#3479108, orderProposalId#3479110L]
Arguments: coalesced
(36) HashAggregate [codegen id : 4]
Input [2]: [shardId#3479108, orderProposalId#3479110L]
Keys [2]: [shardId#3479108, orderProposalId#3479110L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#3479108, orderProposalId#3479110L, 2026-08-31 14:06:37.563352 AS lastModified#3479205]
(37) Union
(38) HashAggregate [codegen id : 5]
Input [3]: [shardId#3479101, orderProposalId#3479102L, lastModified#3479106]
Keys [2]: [shardId#3479101, orderProposalId#3479102L]
Functions [1]: [partial_max(lastModified#3479106)]
Aggregate Attributes [1]: [max#3480575]
Results [3]: [shardId#3479101, orderProposalId#3479102L, max#3480576]
(39) Exchange
Input [3]: [shardId#3479101, orderProposalId#3479102L, max#3480576]
Arguments: hashpartitioning(shardId#3479101, orderProposalId#3479102L, 37), ENSURE_REQUIREMENTS, [plan_id=998342]
(40) ShuffleQueryStage
Output [3]: [shardId#3479101, orderProposalId#3479102L, max#3480576]
Arguments: 4
(41) AQEShuffleRead
Input [3]: [shardId#3479101, orderProposalId#3479102L, max#3480576]
Arguments: coalesced
(42) HashAggregate [codegen id : 6]
Input [3]: [shardId#3479101, orderProposalId#3479102L, max#3480576]
Keys [2]: [shardId#3479101, orderProposalId#3479102L]
Functions [1]: [max(lastModified#3479106)]
Aggregate Attributes [1]: [max(lastModified#3479106)#3479100]
Results [3]: [shardId#3479101, orderProposalId#3479102L, max(lastModified#3479106)#3479100 AS lastModified#3479092]
(43) Filter [codegen id : 6]
Input [3]: [shardId#3479101, orderProposalId#3479102L, lastModified#3479092]
Condition : isnotnull(lastModified#3479092)
(44) BroadcastExchange
Input [3]: [shardId#3479101, orderProposalId#3479102L, lastModified#3479092]
Arguments: HashedRelationBroadcastMode(List(input[0, string, true], input[1, bigint, true], input[2, timestamp, false]),false), [plan_id=998405]
(45) BroadcastQueryStage
Output [3]: [shardId#3479101, orderProposalId#3479102L, lastModified#3479092]
Arguments: 5
(46) BroadcastHashJoin [codegen id : 8]
Left keys [3]: [shardId#3479078, orderProposalId#3479079L, lastModified#3479083]
Right keys [3]: [shardId#3479101, orderProposalId#3479102L, lastModified#3479092]
Join type: Inner
Join condition: None
(47) Project [codegen id : 8]
Output [7]: [shardId#3479078, orderProposalId#3479079L, items#3479080, optimizationGroups#3479081, isOptimal#3479082, lastModified#3479083, optimizationInsights#3479084]
Input [10]: [shardId#3479078, orderProposalId#3479079L, items#3479080, optimizationGroups#3479081, isOptimal#3479082, lastModified#3479083, optimizationInsights#3479084, shardId#3479101, orderProposalId#3479102L, lastModified#3479092]
(48) DeserializeToObject
Input [7]: [shardId#3479078, orderProposalId#3479079L, items#3479080, optimizationGroups#3479081, isOptimal#3479082, lastModified#3479083, optimizationInsights#3479084]
Arguments: createexternalrow(invoke(shardId#3479078.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#3479079L)), mapobjects(lambdavariable(MapObject, StructField(worklistShardItemId,LongType,true), StructField(quantityAfterProdPlantOptimization,DoubleType,true), StructField(qty,DoubleType,true), true, -1), if (isnull(lambdavariable(MapObject, StructField(worklistShardItemId,LongType,true), StructField(quantityAfterProdPlantOptimization,DoubleType,true), StructField(qty,DoubleType,true), true, -1))) null else createexternalrow(static_invoke(java.lang.Long.valueOf(lambdavariable(MapObject, StructField(worklistShardItemId,LongType,true), StructField(quantityAfterProdPlantOptimization,DoubleType,true), StructField(qty,DoubleType,true), true, -1).worklistShardItemId)), static_invoke(java.lang.Double.valueOf(lambdavariable(MapObject, StructField(worklistShardItemId,LongType,true), StructField(quantityAfterProdPlantOptimization,DoubleType,true), StructField(qty,DoubleType,true), true, -1).quantityAfterProdPlantOptimization)), static_invoke(java.lang.Double.valueOf(lambdavariable(MapObject, StructField(worklistShardItemId,LongType,true), StructField(quantityAfterProdPlantOptimization,DoubleType,true), StructField(qty,DoubleType,true), true, -1).qty)), StructField(worklistShardItemId,LongType,true), StructField(quantityAfterProdPlantOptimization,DoubleType,true), StructField(qty,DoubleType,true)), items#3479080, Some(class scala.collection.mutable.ArraySeq)), mapobjects(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2), if (isnull(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2))) null else createexternalrow(invoke(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).optGroupId.toString()), invoke(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).assignmentDetails.toString()), invoke(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderProfile.toString()), if (isnull(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderGoal)) null else createexternalrow(static_invoke(java.lang.Double.valueOf(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderGoal.minOrderValue)), static_invoke(java.lang.Double.valueOf(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderGoal.calculatedOrderValue)), static_invoke(java.lang.Integer.valueOf(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderGoal.dimensionType)), invoke(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderGoal.unit.toString()), invoke(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderGoal.unitUuid.toString()), static_invoke(java.lang.Double.valueOf(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderGoal.negligibleQuantitiesThreshold)), static_invoke(java.lang.Double.valueOf(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderGoal.acceptanceThreshold)), StructField(minOrderValue,DoubleType,true), StructField(calculatedOrderValue,DoubleType,true), StructField(dimensionType,IntegerType,true), StructField(unit,StringType,true), StructField(unitUuid,StringType,true), StructField(negligibleQuantitiesThreshold,DoubleType,true), StructField(acceptanceThreshold,DoubleType,true)), StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true)), optimizationGroups#3479081, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#3479082)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#3479083)), mapobjects(lambdavariable(MapObject, StructField(internalInsightType,StringType,false), StructField(worklistShardItemId,LongType,true), StructField(thresholdValue,DoubleType,true), StructField(reachedValue,DoubleType,true), StructField(unitOfMeasure,StringType,true), StructField(assignmentDetails,StringType,false), false, -3), createexternalrow(invoke(lambdavariable(MapObject, StructField(internalInsightType,StringType,false), StructField(worklistShardItemId,LongType,true), StructField(thresholdValue,DoubleType,true), StructField(reachedValue,DoubleType,true), StructField(unitOfMeasure,StringType,true), StructField(assignmentDetails,StringType,false), false, -3).internalInsightType.toString()), static_invoke(java.lang.Long.valueOf(lambdavariable(MapObject, StructField(internalInsightType,StringType,false), StructField(worklistShardItemId,LongType,true), StructField(thresholdValue,DoubleType,true), StructField(reachedValue,DoubleType,true), StructField(unitOfMeasure,StringType,true), StructField(assignmentDetails,StringType,false), false, -3).worklistShardItemId)), static_invoke(java.lang.Double.valueOf(lambdavariable(MapObject, StructField(internalInsightType,StringType,false), StructField(worklistShardItemId,LongType,true), StructField(thresholdValue,DoubleType,true), StructField(reachedValue,DoubleType,true), StructField(unitOfMeasure,StringType,true), StructField(assignmentDetails,StringType,false), false, -3).thresholdValue)), static_invoke(java.lang.Double.valueOf(lambdavariable(MapObject, StructField(internalInsightType,StringType,false), StructField(worklistShardItemId,LongType,true), StructField(thresholdValue,DoubleType,true), StructField(reachedValue,DoubleType,true), StructField(unitOfMeasure,StringType,true), StructField(assignmentDetails,StringType,false), false, -3).reachedValue)), invoke(lambdavariable(MapObject, StructField(internalInsightType,StringType,false), StructField(worklistShardItemId,LongType,true), StructField(thresholdValue,DoubleType,true), StructField(reachedValue,DoubleType,true), StructField(unitOfMeasure,StringType,true), StructField(assignmentDetails,StringType,false), false, -3).unitOfMeasure.toString()), invoke(lambdavariable(MapObject, StructField(internalInsightType,StringType,false), StructField(worklistShardItemId,LongType,true), StructField(thresholdValue,DoubleType,true), StructField(reachedValue,DoubleType,true), StructField(unitOfMeasure,StringType,true), StructField(assignmentDetails,StringType,false), false, -3).assignmentDetails.toString()), StructField(internalInsightType,StringType,false), StructField(worklistShardItemId,LongType,true), StructField(thresholdValue,DoubleType,true), StructField(reachedValue,DoubleType,true), StructField(unitOfMeasure,StringType,true), StructField(assignmentDetails,StringType,false)), optimizationInsights#3479084, Some(class scala.collection.mutable.ArraySeq)), StructField(shardId,StringType,true), StructField(orderProposalId,LongType,true), StructField(items,ArrayType(StructType(StructField(worklistShardItemId,LongType,true),StructField(quantityAfterProdPlantOptimization,DoubleType,true),StructField(qty,DoubleType,true)),true),true), StructField(optimizationGroups,ArrayType(StructType(StructField(optGroupId,StringType,true),StructField(assignmentDetails,StringType,true),StructField(minOrderProfile,StringType,true),StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true)),true),true), StructField(isOptimal,BooleanType,true), StructField(lastModified,TimestampType,true), StructField(optimizationInsights,ArrayType(StructType(StructField(internalInsightType,StringType,false),StructField(worklistShardItemId,LongType,true),StructField(thresholdValue,DoubleType,true),StructField(reachedValue,DoubleType,true),StructField(unitOfMeasure,StringType,true),StructField(assignmentDetails,StringType,false)),false),true)), obj#3479222: org.apache.spark.sql.Row
(49) ResultQueryStage
Output [1]: [obj#3479222]
Arguments: 6
(50) Scan ExistingRDD
Output [7]: [shardId#3479078, orderProposalId#3479079L, items#3479080, optimizationGroups#3479081, isOptimal#3479082, lastModified#3479083, optimizationInsights#3479084]
Arguments: [shardId#3479078, orderProposalId#3479079L, items#3479080, optimizationGroups#3479081, isOptimal#3479082, lastModified#3479083, optimizationInsights#3479084], MapPartitionsRDD[147891] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(51) Filter
Input [7]: [shardId#3479078, orderProposalId#3479079L, items#3479080, optimizationGroups#3479081, isOptimal#3479082, lastModified#3479083, optimizationInsights#3479084]
Condition : ((isnotnull(shardId#3479078) AND isnotnull(orderProposalId#3479079L)) AND isnotnull(lastModified#3479083))
(52) Filter
Input [3]: [shardId#3473824, worklistShardItemId#3473825L, orderProposalId#3473826L]
Condition : (isnotnull(shardId#3473824) AND isnotnull(orderProposalId#3473826L))
(53) ObjectHashAggregate
Input [3]: [shardId#3473824, worklistShardItemId#3473825L, orderProposalId#3473826L]
Keys [2]: [shardId#3473824, orderProposalId#3473826L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#3473825L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#3480573]
Results [3]: [shardId#3473824, orderProposalId#3473826L, buf#3480574]
(54) Exchange
Input [3]: [shardId#3473824, orderProposalId#3473826L, buf#3480574]
Arguments: hashpartitioning(shardId#3473824, orderProposalId#3473826L, 37), ENSURE_REQUIREMENTS, [plan_id=998031]
(55) ObjectHashAggregate
Input [3]: [shardId#3473824, orderProposalId#3473826L, buf#3480574]
Keys [2]: [shardId#3473824, orderProposalId#3473826L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#3473825L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#3473825L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#3479069]
Results [7]: [shardId#3473824, orderProposalId#3473826L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#3473825L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#3479069, lambdafunction(struct(worklistShardItemId, lambda x_11538#3479090.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_11538#3479090.quantityAfterProdPlantOptimization, qty, lambda x_11538#3479090.optimalQuantity), lambda x_11538#3479090, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#3479091, [] AS optimizationGroups#3479085, false AS isOptimal#3479070, 2026-08-31 14:06:37.563352 AS lastModified#3479089, [] AS optimizationInsights#3479086]
(56) Union
(57) Exchange
Input [7]: [shardId#3479078, orderProposalId#3479079L, items#3479080, optimizationGroups#3479081, isOptimal#3479082, lastModified#3479083, optimizationInsights#3479084]
Arguments: hashpartitioning(shardId#3479078, orderProposalId#3479079L, lastModified#3479083, 37), ENSURE_REQUIREMENTS, [plan_id=998044]
(58) Sort
Input [7]: [shardId#3479078, orderProposalId#3479079L, items#3479080, optimizationGroups#3479081, isOptimal#3479082, lastModified#3479083, optimizationInsights#3479084]
Arguments: [shardId#3479078 ASC NULLS FIRST, orderProposalId#3479079L ASC NULLS FIRST, lastModified#3479083 ASC NULLS FIRST], false, 0
(59) Filter
Input [2]: [shardId#3479108, orderProposalId#3479110L]
Condition : (isnotnull(shardId#3479108) AND isnotnull(orderProposalId#3479110L))
(60) HashAggregate
Input [2]: [shardId#3479108, orderProposalId#3479110L]
Keys [2]: [shardId#3479108, orderProposalId#3479110L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#3479108, orderProposalId#3479110L]
(61) Exchange
Input [2]: [shardId#3479108, orderProposalId#3479110L]
Arguments: hashpartitioning(shardId#3479108, orderProposalId#3479110L, 37), ENSURE_REQUIREMENTS, [plan_id=998034]
(62) HashAggregate
Input [2]: [shardId#3479108, orderProposalId#3479110L]
Keys [2]: [shardId#3479108, orderProposalId#3479110L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#3479108, orderProposalId#3479110L, 2026-08-31 14:06:37.563352 AS lastModified#3479205]
(63) Union
(64) HashAggregate
Input [3]: [shardId#3479101, orderProposalId#3479102L, lastModified#3479106]
Keys [2]: [shardId#3479101, orderProposalId#3479102L]
Functions [1]: [partial_max(lastModified#3479106)]
Aggregate Attributes [1]: [max#3480575]
Results [3]: [shardId#3479101, orderProposalId#3479102L, max#3480576]
(65) Exchange
Input [3]: [shardId#3479101, orderProposalId#3479102L, max#3480576]
Arguments: hashpartitioning(shardId#3479101, orderProposalId#3479102L, 37), ENSURE_REQUIREMENTS, [plan_id=998039]
(66) HashAggregate
Input [3]: [shardId#3479101, orderProposalId#3479102L, max#3480576]
Keys [2]: [shardId#3479101, orderProposalId#3479102L]
Functions [1]: [max(lastModified#3479106)]
Aggregate Attributes [1]: [max(lastModified#3479106)#3479100]
Results [3]: [shardId#3479101, orderProposalId#3479102L, max(lastModified#3479106)#3479100 AS lastModified#3479092]
(67) Filter
Input [3]: [shardId#3479101, orderProposalId#3479102L, lastModified#3479092]
Condition : isnotnull(lastModified#3479092)
(68) Exchange
Input [3]: [shardId#3479101, orderProposalId#3479102L, lastModified#3479092]
Arguments: hashpartitioning(shardId#3479101, orderProposalId#3479102L, lastModified#3479092, 37), ENSURE_REQUIREMENTS, [plan_id=998045]
(69) Sort
Input [3]: [shardId#3479101, orderProposalId#3479102L, lastModified#3479092]
Arguments: [shardId#3479101 ASC NULLS FIRST, orderProposalId#3479102L ASC NULLS FIRST, lastModified#3479092 ASC NULLS FIRST], false, 0
(70) SortMergeJoin
Left keys [3]: [shardId#3479078, orderProposalId#3479079L, lastModified#3479083]
Right keys [3]: [shardId#3479101, orderProposalId#3479102L, lastModified#3479092]
Join type: Inner
Join condition: None
(71) Project
Output [7]: [shardId#3479078, orderProposalId#3479079L, items#3479080, optimizationGroups#3479081, isOptimal#3479082, lastModified#3479083, optimizationInsights#3479084]
Input [10]: [shardId#3479078, orderProposalId#3479079L, items#3479080, optimizationGroups#3479081, isOptimal#3479082, lastModified#3479083, optimizationInsights#3479084, shardId#3479101, orderProposalId#3479102L, lastModified#3479092]
(72) DeserializeToObject
Input [7]: [shardId#3479078, orderProposalId#3479079L, items#3479080, optimizationGroups#3479081, isOptimal#3479082, lastModified#3479083, optimizationInsights#3479084]
Arguments: createexternalrow(invoke(shardId#3479078.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#3479079L)), mapobjects(lambdavariable(MapObject, StructField(worklistShardItemId,LongType,true), StructField(quantityAfterProdPlantOptimization,DoubleType,true), StructField(qty,DoubleType,true), true, -1), if (isnull(lambdavariable(MapObject, StructField(worklistShardItemId,LongType,true), StructField(quantityAfterProdPlantOptimization,DoubleType,true), StructField(qty,DoubleType,true), true, -1))) null else createexternalrow(static_invoke(java.lang.Long.valueOf(lambdavariable(MapObject, StructField(worklistShardItemId,LongType,true), StructField(quantityAfterProdPlantOptimization,DoubleType,true), StructField(qty,DoubleType,true), true, -1).worklistShardItemId)), static_invoke(java.lang.Double.valueOf(lambdavariable(MapObject, StructField(worklistShardItemId,LongType,true), StructField(quantityAfterProdPlantOptimization,DoubleType,true), StructField(qty,DoubleType,true), true, -1).quantityAfterProdPlantOptimization)), static_invoke(java.lang.Double.valueOf(lambdavariable(MapObject, StructField(worklistShardItemId,LongType,true), StructField(quantityAfterProdPlantOptimization,DoubleType,true), StructField(qty,DoubleType,true), true, -1).qty)), StructField(worklistShardItemId,LongType,true), StructField(quantityAfterProdPlantOptimization,DoubleType,true), StructField(qty,DoubleType,true)), items#3479080, Some(class scala.collection.mutable.ArraySeq)), mapobjects(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2), if (isnull(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2))) null else createexternalrow(invoke(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).optGroupId.toString()), invoke(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).assignmentDetails.toString()), invoke(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderProfile.toString()), if (isnull(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderGoal)) null else createexternalrow(static_invoke(java.lang.Double.valueOf(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderGoal.minOrderValue)), static_invoke(java.lang.Double.valueOf(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderGoal.calculatedOrderValue)), static_invoke(java.lang.Integer.valueOf(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderGoal.dimensionType)), invoke(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderGoal.unit.toString()), invoke(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderGoal.unitUuid.toString()), static_invoke(java.lang.Double.valueOf(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderGoal.negligibleQuantitiesThreshold)), static_invoke(java.lang.Double.valueOf(lambdavariable(MapObject, StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true), true, -2).minOrderGoal.acceptanceThreshold)), StructField(minOrderValue,DoubleType,true), StructField(calculatedOrderValue,DoubleType,true), StructField(dimensionType,IntegerType,true), StructField(unit,StringType,true), StructField(unitUuid,StringType,true), StructField(negligibleQuantitiesThreshold,DoubleType,true), StructField(acceptanceThreshold,DoubleType,true)), StructField(optGroupId,StringType,true), StructField(assignmentDetails,StringType,true), StructField(minOrderProfile,StringType,true), StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true)), optimizationGroups#3479081, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#3479082)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#3479083)), mapobjects(lambdavariable(MapObject, StructField(internalInsightType,StringType,false), StructField(worklistShardItemId,LongType,true), StructField(thresholdValue,DoubleType,true), StructField(reachedValue,DoubleType,true), StructField(unitOfMeasure,StringType,true), StructField(assignmentDetails,StringType,false), false, -3), createexternalrow(invoke(lambdavariable(MapObject, StructField(internalInsightType,StringType,false), StructField(worklistShardItemId,LongType,true), StructField(thresholdValue,DoubleType,true), StructField(reachedValue,DoubleType,true), StructField(unitOfMeasure,StringType,true), StructField(assignmentDetails,StringType,false), false, -3).internalInsightType.toString()), static_invoke(java.lang.Long.valueOf(lambdavariable(MapObject, StructField(internalInsightType,StringType,false), StructField(worklistShardItemId,LongType,true), StructField(thresholdValue,DoubleType,true), StructField(reachedValue,DoubleType,true), StructField(unitOfMeasure,StringType,true), StructField(assignmentDetails,StringType,false), false, -3).worklistShardItemId)), static_invoke(java.lang.Double.valueOf(lambdavariable(MapObject, StructField(internalInsightType,StringType,false), StructField(worklistShardItemId,LongType,true), StructField(thresholdValue,DoubleType,true), StructField(reachedValue,DoubleType,true), StructField(unitOfMeasure,StringType,true), StructField(assignmentDetails,StringType,false), false, -3).thresholdValue)), static_invoke(java.lang.Double.valueOf(lambdavariable(MapObject, StructField(internalInsightType,StringType,false), StructField(worklistShardItemId,LongType,true), StructField(thresholdValue,DoubleType,true), StructField(reachedValue,DoubleType,true), StructField(unitOfMeasure,StringType,true), StructField(assignmentDetails,StringType,false), false, -3).reachedValue)), invoke(lambdavariable(MapObject, StructField(internalInsightType,StringType,false), StructField(worklistShardItemId,LongType,true), StructField(thresholdValue,DoubleType,true), StructField(reachedValue,DoubleType,true), StructField(unitOfMeasure,StringType,true), StructField(assignmentDetails,StringType,false), false, -3).unitOfMeasure.toString()), invoke(lambdavariable(MapObject, StructField(internalInsightType,StringType,false), StructField(worklistShardItemId,LongType,true), StructField(thresholdValue,DoubleType,true), StructField(reachedValue,DoubleType,true), StructField(unitOfMeasure,StringType,true), StructField(assignmentDetails,StringType,false), false, -3).assignmentDetails.toString()), StructField(internalInsightType,StringType,false), StructField(worklistShardItemId,LongType,true), StructField(thresholdValue,DoubleType,true), StructField(reachedValue,DoubleType,true), StructField(unitOfMeasure,StringType,true), StructField(assignmentDetails,StringType,false)), optimizationInsights#3479084, Some(class scala.collection.mutable.ArraySeq)), StructField(shardId,StringType,true), StructField(orderProposalId,LongType,true), StructField(items,ArrayType(StructType(StructField(worklistShardItemId,LongType,true),StructField(quantityAfterProdPlantOptimization,DoubleType,true),StructField(qty,DoubleType,true)),true),true), StructField(optimizationGroups,ArrayType(StructType(StructField(optGroupId,StringType,true),StructField(assignmentDetails,StringType,true),StructField(minOrderProfile,StringType,true),StructField(minOrderGoal,StructType(StructField(minOrderValue,DoubleType,true),StructField(calculatedOrderValue,DoubleType,true),StructField(dimensionType,IntegerType,true),StructField(unit,StringType,true),StructField(unitUuid,StringType,true),StructField(negligibleQuantitiesThreshold,DoubleType,true),StructField(acceptanceThreshold,DoubleType,true)),true)),true),true), StructField(isOptimal,BooleanType,true), StructField(lastModified,TimestampType,true), StructField(optimizationInsights,ArrayType(StructType(StructField(internalInsightType,StringType,false),StructField(worklistShardItemId,LongType,true),StructField(thresholdValue,DoubleType,true),StructField(reachedValue,DoubleType,true),StructField(unitOfMeasure,StringType,true),StructField(assignmentDetails,StringType,false)),false),true)), obj#3479222: org.apache.spark.sql.Row
(73) AdaptiveSparkPlan
Output [1]: [obj#3479222]
Arguments: isFinalPlan=true