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#3435699.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#3435700L)), 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#3435701, 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#3435702, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#3435703)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#3435704)), 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#3435705, 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#3435843: 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#3435699, orderProposalId#3435700L, items#3435701, optimizationGroups#3435702, isOptimal#3435703, lastModified#3435704, optimizationInsights#3435705]"];
4 [id="node4" labelType="html" label="<br><b>BroadcastHashJoin</b><br><br>" tooltip="BroadcastHashJoin [shardId#3435699, orderProposalId#3435700L, lastModified#3435704], [shardId#3435722, orderProposalId#3435723L, lastModified#3435713], 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#3435699) AND isnotnull(orderProposalId#3435700L)) AND isnotnull(lastModified#3435704))"];
8 [id="node8" labelType="html" label="<br><b>Scan ExistingRDD</b><br><br>" tooltip="Scan ExistingRDD[shardId#3435699,orderProposalId#3435700L,items#3435701,optimizationGroups#3435702,isOptimal#3435703,lastModified#3435704,optimizationInsights#3435705]"];
}
9 [id="node9" labelType="html" label="<br><b>ObjectHashAggregate</b><br><br>" tooltip="ObjectHashAggregate(keys=[shardId#3430445, orderProposalId#3430447L], functions=[collect_list(struct(worklistShardItemId, worklistShardItemId#3430446L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)])"];
10 [id="node10" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 65,625<br>data size total (min, med, max (stageId: taskId))<br>9.6 MiB (254.7 KiB, 264.9 KiB, 273.7 KiB (stage 312325.0: task 897452))<br>shuffle write time total (min, med, max (stageId: taskId))<br>98 ms (1 ms, 2 ms, 21 ms (stage 312325.0: task 897481))<br>number of partitions: 37<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>2.2 MiB (58.6 KiB, 60.5 KiB, 61.9 KiB (stage 312325.0: task 897471))" tooltip="Exchange hashpartitioning(shardId#3430445, orderProposalId#3430447L, 37), ENSURE_REQUIREMENTS, [plan_id=987290]"];
11 [id="node11" labelType="html" label="<b>ObjectHashAggregate</b><br><br>number of output rows: 65,625<br>time in aggregation build total (min, med, max (stageId: taskId))<br>5.5 s (6 ms, 10 ms, 686 ms (stage 312325.0: task 897428))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 312325.0: task 897421))<br>number of sort fallback tasks: 37" tooltip="ObjectHashAggregate(keys=[shardId#3430445, orderProposalId#3430447L], functions=[partial_collect_list(struct(worklistShardItemId, worklistShardItemId#3430446L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)])"];
subgraph cluster12 {
isCluster="true";
id="cluster12";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n4.9 s (4 ms, 6 ms, 652 ms (stage 312325.0: task 897428))";
tooltip="WholeStageCodegen (1)";
13 [id="node13" labelType="html" label="<b>Filter</b><br><br>number of output rows: 119,861" tooltip="Filter (isnotnull(shardId#3430445) AND isnotnull(orderProposalId#3430447L))"];
}
14 [id="node14" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 119,861" tooltip="InMemoryTableScan [shardId#3430445, worklistShardItemId#3430446L, orderProposalId#3430447L], [isnotnull(shardId#3430445), isnotnull(orderProposalId#3430447L)]"];
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#3430445, worklistShardItemId#3430513L, orderProposalId#3430490L, orderProposalItemId#3430491, orderProposalItemGroupId#3430514, originalReplenishmentRunId#3430532L, orderProposalHorizonGroupingId#3430508L, splitIndicator#3430509L, previousOrderProposal#3430510L, clusterId#3430511L, cast(sequenceId#3430512 as bigint) AS sequenceId#3430455L, sourceOfSupplyUuid#3430504, supplierGroup#3430492, supplier#3430493, subrange#3430496, product#3430499, plant#3430494, purchasingOrg#3430505, purchasingGroup#3430506, mrpController#3430503, orderDateTime#3430500, deliveryDateTime#3430495, availabilityDateTime#3430501, nextAvailabilityDateTime#3430502, isFallbackOrderOnly#3430507, ... 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#3430513L, 37), REPARTITION_BY_NUM, [plan_id=986924]"];
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#3430490L, orderProposalItemId#3430491, supplierGroup#3430492, supplier#3430493, plant#3430494, deliveryDateTime#3430495, subrange#3430496, supplyingPlant#3430497, productGroup#3430498, product#3430499, orderDateTime#3430500, availabilityDateTime#3430501, nextAvailabilityDateTime#3430502, mrpController#3430503, sourceOfSupplyUuid#3430504, purchasingOrg#3430505, purchasingGroup#3430506, isFallbackOrderOnly#3430507, orderProposalHorizonGroupingId#3430508L, splitIndicator#3430509L, previousOrderProposal#3430510L, clusterId#3430511L, sequenceId#3430512, worklistShardItemId#3430513L, orderProposalItemGroupId#3430514, ... 19 more fields]"];
21 [id="node21" labelType="html" label="<br><b>Filter</b><br><br>" tooltip="Filter ((isnotnull(availabilityDateTime#3430501) AND isnotnull(nextAvailabilityDateTime#3430502)) AND (nextAvailabilityDateTime#3430502 > availabilityDateTime#3430501))"];
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#3430490L,orderProposalItemId#3430491,supplierGroup#3430492,supplier#3430493,plant#3430494,deliveryDateTime#3430495,subrange#3430496,supplyingPlant#3430497,productGroup#3430498,product#3430499,orderDateTime#3430500,availabilityDateTime#3430501,nextAvailabilityDateTime#3430502,mrpController#3430503,sourceOfSupplyUuid#3430504,purchasingOrg#3430505,purchasingGroup#3430506,isFallbackOrderOnly#3430507,orderProposalHorizonGroupingId#3430508L,splitIndicator#3430509L,previousOrderProposal#3430510L,clusterId#3430511L,worklistShardItemId#3430513L,orderProposalItemGroupId#3430514,externalProductId#3430515,... 20 more fields] Batched: true, DataFilters: [isnotnull(availabilityDateTime#3430501), isnotnull(nextAvailabilityDateTime#3430502), (nextAvail..., Format: Parquet, Location: PreparedDeltaFileIndex(1 paths)[hdlfs://7da5304c-1f57-47fa-b75a-0f0b4349c280.files.hdl.prod-eu20...., PartitionFilters: [isnotnull(shardId#3430534), isnotnull(sequenceId#3430512), (shardId#3430534 = 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: 1 ms<br>time to build: 6 ms<br>time to collect: 61 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=987559]"];
subgraph cluster25 {
isCluster="true";
id="cluster25";
label="WholeStageCodegen (6)\n \nduration: 8 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#3435713)"];
27 [id="node27" labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 5 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#3435722, orderProposalId#3435723L], functions=[max(lastModified#3435727)])"];
}
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.7 KiB<br>merged fetch fallback count: 0<br>local blocks read: 20<br>remote merged chunks fetched: 0<br>remote blocks read: 17<br>data size total (min, med, max (stageId: taskId))<br>110.6 KiB (6.0 KiB, 8.4 KiB, 10.0 KiB (stage 312447.0: task 897525))<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 312447.0: task 897529))<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.4 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 (1715.0 B, 2.4 KiB, 2.8 KiB (stage 312447.0: task 897525))" tooltip="Exchange hashpartitioning(shardId#3435722, orderProposalId#3435723L, 37), ENSURE_REQUIREMENTS, [plan_id=987496]"];
subgraph cluster30 {
isCluster="true";
id="cluster30";
label="WholeStageCodegen (5)\n \nduration: total (min, med, max (stageId: taskId))\n638 ms (0 ms, 15 ms, 38 ms (stage 312447.0: task 897497))";
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, 28 ms (stage 312447.0: task 897529))<br>peak memory total (min, med, max (stageId: taskId))<br>11.0 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 312447.0: task 897502))<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#3435722, orderProposalId#3435723L], functions=[partial_max(lastModified#3435727)])"];
}
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))\n718 ms (0 ms, 1 ms, 74 ms (stage 312447.0: task 897497))";
tooltip="WholeStageCodegen (3)";
34 [id="node34" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#3435722, orderProposalId#3435723L, lastModified#3435727]"];
35 [id="node35" labelType="html" label="<b>Filter</b><br><br>number of output rows: 0" tooltip="Filter (isnotnull(shardId#3435722) AND isnotnull(orderProposalId#3435723L))"];
36 [id="node36" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 0" tooltip="Scan ExistingRDD[shardId#3435722,orderProposalId#3435723L,items#3435724,optimizationGroups#3435725,isOptimal#3435726,lastModified#3435727,optimizationInsights#3435728]"];
}
subgraph cluster37 {
isCluster="true";
id="cluster37";
label="WholeStageCodegen (4)\n \nduration: total (min, med, max (stageId: taskId))\n256 ms (10 ms, 19 ms, 29 ms (stage 312447.0: task 897529))";
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>195 ms (7 ms, 14 ms, 24 ms (stage 312447.0: task 897529))<br>peak memory total (min, med, max (stageId: taskId))<br>3.5 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 312447.0: task 897527))<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#3435729, orderProposalId#3435731L], functions=[])"];
}
39 [id="node39" labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 14<br>partition data size total (min, med, max (stageId: taskId))<br>933.2 KiB (50.7 KiB, 72.0 KiB, 83.0 KiB (driver))<br>number of coalesced partitions: 14" tooltip="AQEShuffleRead coalesced"];
40 [id="node40" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 65,625<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 65,625<br>local bytes read total (min, med, max (stageId: taskId))<br>452.0 KiB (19.9 KiB, 29.1 KiB, 47.0 KiB (stage 312447.0: task 897525))<br>merged fetch fallback count: 0<br>local blocks read: 695<br>remote merged chunks fetched: 0<br>remote blocks read: 674<br>data size total (min, med, max (stageId: taskId))<br>2.5 MiB (67.3 KiB, 69.3 KiB, 70.8 KiB (stage 312326.0: task 897486))<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>78 ms (1 ms, 2 ms, 2 ms (stage 312326.0: task 897436))<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 312447.0: task 897527))<br>remote bytes read total (min, med, max (stageId: taskId))<br>437.1 KiB (19.5 KiB, 29.7 KiB, 42.5 KiB (stage 312447.0: task 897537))<br>number of partitions: 37<br>remote reqs duration total (min, med, max (stageId: taskId))<br>61 ms (2 ms, 5 ms, 7 ms (stage 312447.0: task 897525))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>889.1 KiB (23.5 KiB, 24.0 KiB, 24.5 KiB (stage 312326.0: task 897486))" tooltip="Exchange hashpartitioning(shardId#3435729, orderProposalId#3435731L, 37), ENSURE_REQUIREMENTS, [plan_id=987397]"];
subgraph cluster41 {
isCluster="true";
id="cluster41";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n791 ms (9 ms, 18 ms, 46 ms (stage 312326.0: task 897441))";
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>334 ms (4 ms, 9 ms, 23 ms (stage 312326.0: task 897482))<br>peak memory total (min, med, max (stageId: taskId))<br>9.3 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 312326.0: task 897439))<br>number of output rows: 65,625<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#3435729, orderProposalId#3435731L], functions=[])"];
43 [id="node43" labelType="html" label="<b>Filter</b><br><br>number of output rows: 119,861" tooltip="Filter (isnotnull(shardId#3435729) AND isnotnull(orderProposalId#3435731L))"];
}
44 [id="node44" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 119,861" tooltip="InMemoryTableScan [shardId#3435729, orderProposalId#3435731L], [isnotnull(shardId#3435729), isnotnull(orderProposalId#3435731L)]"];
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#3430445, worklistShardItemId#3430513L, orderProposalId#3430490L, orderProposalItemId#3430491, orderProposalItemGroupId#3430514, originalReplenishmentRunId#3430532L, orderProposalHorizonGroupingId#3430508L, splitIndicator#3430509L, previousOrderProposal#3430510L, clusterId#3430511L, cast(sequenceId#3430512 as bigint) AS sequenceId#3430455L, sourceOfSupplyUuid#3430504, supplierGroup#3430492, supplier#3430493, subrange#3430496, product#3430499, plant#3430494, purchasingOrg#3430505, purchasingGroup#3430506, mrpController#3430503, orderDateTime#3430500, deliveryDateTime#3430495, availabilityDateTime#3430501, nextAvailabilityDateTime#3430502, isFallbackOrderOnly#3430507, ... 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.56E+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.56E+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#3435699, orderProposalId#3435700L, items#3435701, optimizationGroups#3435702, isOptimal#3435703, lastModified#3435704, optimizationInsights#3435705]
Arguments: [shardId#3435699, orderProposalId#3435700L, items#3435701, optimizationGroups#3435702, isOptimal#3435703, lastModified#3435704, optimizationInsights#3435705], MapPartitionsRDD[146064] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(2) Filter [codegen id : 7]
Input [7]: [shardId#3435699, orderProposalId#3435700L, items#3435701, optimizationGroups#3435702, isOptimal#3435703, lastModified#3435704, optimizationInsights#3435705]
Condition : ((isnotnull(shardId#3435699) AND isnotnull(orderProposalId#3435700L)) AND isnotnull(lastModified#3435704))
(3) InMemoryTableScan
Output [3]: [shardId#3430445, worklistShardItemId#3430446L, orderProposalId#3430447L]
Arguments: [shardId#3430445, worklistShardItemId#3430446L, orderProposalId#3430447L], [isnotnull(shardId#3430445), isnotnull(orderProposalId#3430447L)]
(4) InMemoryRelation
Arguments: [shardId#3430445, worklistShardItemId#3430446L, orderProposalId#3430447L, orderProposalItemId#3430448, orderProposalItemGroupId#3430449, originalReplenishmentRunId#3430450L, orderProposalHorizonGroupingId#3430451L, splitIndicator#3430452L, previousOrderProposal#3430453L, clusterId#3430454L, sequenceId#3430455L, sourceOfSupplyUuid#3430456, supplierGroup#3430457, supplier#3430458, subrange#3430459, product#3430460, plant#3430461, purchasingOrg#3430462, purchasingGroup#3430463, mrpController#3430464, orderDateTime#3430465, deliveryDateTime#3430466, availabilityDateTime#3430467, nextAvailabilityDateTime#3430468, isFallbackOrderOnly#3430469, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(5) Scan parquet
Output [45]: [orderProposalId#3430490L, orderProposalItemId#3430491, supplierGroup#3430492, supplier#3430493, plant#3430494, deliveryDateTime#3430495, subrange#3430496, supplyingPlant#3430497, productGroup#3430498, product#3430499, orderDateTime#3430500, availabilityDateTime#3430501, nextAvailabilityDateTime#3430502, mrpController#3430503, sourceOfSupplyUuid#3430504, purchasingOrg#3430505, purchasingGroup#3430506, isFallbackOrderOnly#3430507, orderProposalHorizonGroupingId#3430508L, splitIndicator#3430509L, previousOrderProposal#3430510L, clusterId#3430511L, worklistShardItemId#3430513L, orderProposalItemGroupId#3430514, externalProductId#3430515, externalPlantId#3430516, logisticUnits#3430517, orderQuantityBaseUom#3430518, orderQuantityBaseUomUuid#3430519, minimumOrderQuantity#3430520, constraintLabels#3430521, constraintOperators#3430522, constraintValues#3430523, constraintRanks#3430524, constraintIsActive#3430525, netPriceAmount#3430526, netPriceCurrencyCode#3430527, netPriceQuantity#3430528, netPriceQuantityUom#3430529, netPriceQuantityUomUuid#3430530, measurements#3430531, originalReplenishmentRunId#3430532L, optimizationGroups#3430533, shardId#3430534, sequenceId#3430512]
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#3430534), isnotnull(sequenceId#3430512), (shardId#3430534 = 0_5_10000000532), (sequenceId#3430512 = 3)]
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#3430490L, orderProposalItemId#3430491, supplierGroup#3430492, supplier#3430493, plant#3430494, deliveryDateTime#3430495, subrange#3430496, supplyingPlant#3430497, productGroup#3430498, product#3430499, orderDateTime#3430500, availabilityDateTime#3430501, nextAvailabilityDateTime#3430502, mrpController#3430503, sourceOfSupplyUuid#3430504, purchasingOrg#3430505, purchasingGroup#3430506, isFallbackOrderOnly#3430507, orderProposalHorizonGroupingId#3430508L, splitIndicator#3430509L, previousOrderProposal#3430510L, clusterId#3430511L, worklistShardItemId#3430513L, orderProposalItemGroupId#3430514, externalProductId#3430515, externalPlantId#3430516, logisticUnits#3430517, orderQuantityBaseUom#3430518, orderQuantityBaseUomUuid#3430519, minimumOrderQuantity#3430520, constraintLabels#3430521, constraintOperators#3430522, constraintValues#3430523, constraintRanks#3430524, constraintIsActive#3430525, netPriceAmount#3430526, netPriceCurrencyCode#3430527, netPriceQuantity#3430528, netPriceQuantityUom#3430529, netPriceQuantityUomUuid#3430530, measurements#3430531, originalReplenishmentRunId#3430532L, optimizationGroups#3430533, shardId#3430534, sequenceId#3430512]
(7) Filter [codegen id : 1]
Input [45]: [orderProposalId#3430490L, orderProposalItemId#3430491, supplierGroup#3430492, supplier#3430493, plant#3430494, deliveryDateTime#3430495, subrange#3430496, supplyingPlant#3430497, productGroup#3430498, product#3430499, orderDateTime#3430500, availabilityDateTime#3430501, nextAvailabilityDateTime#3430502, mrpController#3430503, sourceOfSupplyUuid#3430504, purchasingOrg#3430505, purchasingGroup#3430506, isFallbackOrderOnly#3430507, orderProposalHorizonGroupingId#3430508L, splitIndicator#3430509L, previousOrderProposal#3430510L, clusterId#3430511L, worklistShardItemId#3430513L, orderProposalItemGroupId#3430514, externalProductId#3430515, externalPlantId#3430516, logisticUnits#3430517, orderQuantityBaseUom#3430518, orderQuantityBaseUomUuid#3430519, minimumOrderQuantity#3430520, constraintLabels#3430521, constraintOperators#3430522, constraintValues#3430523, constraintRanks#3430524, constraintIsActive#3430525, netPriceAmount#3430526, netPriceCurrencyCode#3430527, netPriceQuantity#3430528, netPriceQuantityUom#3430529, netPriceQuantityUomUuid#3430530, measurements#3430531, originalReplenishmentRunId#3430532L, optimizationGroups#3430533, shardId#3430534, sequenceId#3430512]
Condition : ((isnotnull(availabilityDateTime#3430501) AND isnotnull(nextAvailabilityDateTime#3430502)) AND (nextAvailabilityDateTime#3430502 > availabilityDateTime#3430501))
(8) Project [codegen id : 1]
Output [44]: [orderProposalId#3430490L, orderProposalItemId#3430491, supplierGroup#3430492, supplier#3430493, plant#3430494, deliveryDateTime#3430495, subrange#3430496, supplyingPlant#3430497, productGroup#3430498, product#3430499, orderDateTime#3430500, availabilityDateTime#3430501, nextAvailabilityDateTime#3430502, mrpController#3430503, sourceOfSupplyUuid#3430504, purchasingOrg#3430505, purchasingGroup#3430506, isFallbackOrderOnly#3430507, orderProposalHorizonGroupingId#3430508L, splitIndicator#3430509L, previousOrderProposal#3430510L, clusterId#3430511L, sequenceId#3430512, worklistShardItemId#3430513L, orderProposalItemGroupId#3430514, externalProductId#3430515, externalPlantId#3430516, logisticUnits#3430517, orderQuantityBaseUom#3430518, orderQuantityBaseUomUuid#3430519, minimumOrderQuantity#3430520, constraintLabels#3430521, constraintOperators#3430522, constraintValues#3430523, constraintRanks#3430524, constraintIsActive#3430525, netPriceAmount#3430526, netPriceCurrencyCode#3430527, netPriceQuantity#3430528, netPriceQuantityUom#3430529, netPriceQuantityUomUuid#3430530, measurements#3430531, originalReplenishmentRunId#3430532L, optimizationGroups#3430533]
Input [45]: [orderProposalId#3430490L, orderProposalItemId#3430491, supplierGroup#3430492, supplier#3430493, plant#3430494, deliveryDateTime#3430495, subrange#3430496, supplyingPlant#3430497, productGroup#3430498, product#3430499, orderDateTime#3430500, availabilityDateTime#3430501, nextAvailabilityDateTime#3430502, mrpController#3430503, sourceOfSupplyUuid#3430504, purchasingOrg#3430505, purchasingGroup#3430506, isFallbackOrderOnly#3430507, orderProposalHorizonGroupingId#3430508L, splitIndicator#3430509L, previousOrderProposal#3430510L, clusterId#3430511L, worklistShardItemId#3430513L, orderProposalItemGroupId#3430514, externalProductId#3430515, externalPlantId#3430516, logisticUnits#3430517, orderQuantityBaseUom#3430518, orderQuantityBaseUomUuid#3430519, minimumOrderQuantity#3430520, constraintLabels#3430521, constraintOperators#3430522, constraintValues#3430523, constraintRanks#3430524, constraintIsActive#3430525, netPriceAmount#3430526, netPriceCurrencyCode#3430527, netPriceQuantity#3430528, netPriceQuantityUom#3430529, netPriceQuantityUomUuid#3430530, measurements#3430531, originalReplenishmentRunId#3430532L, optimizationGroups#3430533, shardId#3430534, sequenceId#3430512]
(9) Exchange
Input [44]: [orderProposalId#3430490L, orderProposalItemId#3430491, supplierGroup#3430492, supplier#3430493, plant#3430494, deliveryDateTime#3430495, subrange#3430496, supplyingPlant#3430497, productGroup#3430498, product#3430499, orderDateTime#3430500, availabilityDateTime#3430501, nextAvailabilityDateTime#3430502, mrpController#3430503, sourceOfSupplyUuid#3430504, purchasingOrg#3430505, purchasingGroup#3430506, isFallbackOrderOnly#3430507, orderProposalHorizonGroupingId#3430508L, splitIndicator#3430509L, previousOrderProposal#3430510L, clusterId#3430511L, sequenceId#3430512, worklistShardItemId#3430513L, orderProposalItemGroupId#3430514, externalProductId#3430515, externalPlantId#3430516, logisticUnits#3430517, orderQuantityBaseUom#3430518, orderQuantityBaseUomUuid#3430519, minimumOrderQuantity#3430520, constraintLabels#3430521, constraintOperators#3430522, constraintValues#3430523, constraintRanks#3430524, constraintIsActive#3430525, netPriceAmount#3430526, netPriceCurrencyCode#3430527, netPriceQuantity#3430528, netPriceQuantityUom#3430529, netPriceQuantityUomUuid#3430530, measurements#3430531, originalReplenishmentRunId#3430532L, optimizationGroups#3430533]
Arguments: hashpartitioning(worklistShardItemId#3430513L, 37), REPARTITION_BY_NUM, [plan_id=986924]
(10) ShuffleQueryStage
Output [44]: [orderProposalId#3430490L, orderProposalItemId#3430491, supplierGroup#3430492, supplier#3430493, plant#3430494, deliveryDateTime#3430495, subrange#3430496, supplyingPlant#3430497, productGroup#3430498, product#3430499, orderDateTime#3430500, availabilityDateTime#3430501, nextAvailabilityDateTime#3430502, mrpController#3430503, sourceOfSupplyUuid#3430504, purchasingOrg#3430505, purchasingGroup#3430506, isFallbackOrderOnly#3430507, orderProposalHorizonGroupingId#3430508L, splitIndicator#3430509L, previousOrderProposal#3430510L, clusterId#3430511L, sequenceId#3430512, worklistShardItemId#3430513L, orderProposalItemGroupId#3430514, externalProductId#3430515, externalPlantId#3430516, logisticUnits#3430517, orderQuantityBaseUom#3430518, orderQuantityBaseUomUuid#3430519, minimumOrderQuantity#3430520, constraintLabels#3430521, constraintOperators#3430522, constraintValues#3430523, constraintRanks#3430524, constraintIsActive#3430525, netPriceAmount#3430526, netPriceCurrencyCode#3430527, netPriceQuantity#3430528, netPriceQuantityUom#3430529, netPriceQuantityUomUuid#3430530, measurements#3430531, originalReplenishmentRunId#3430532L, optimizationGroups#3430533]
Arguments: 0
(11) Project [codegen id : 2]
Output [45]: [0_5_10000000532 AS shardId#3430445, worklistShardItemId#3430513L, orderProposalId#3430490L, orderProposalItemId#3430491, orderProposalItemGroupId#3430514, originalReplenishmentRunId#3430532L, orderProposalHorizonGroupingId#3430508L, splitIndicator#3430509L, previousOrderProposal#3430510L, clusterId#3430511L, cast(sequenceId#3430512 as bigint) AS sequenceId#3430455L, sourceOfSupplyUuid#3430504, supplierGroup#3430492, supplier#3430493, subrange#3430496, product#3430499, plant#3430494, purchasingOrg#3430505, purchasingGroup#3430506, mrpController#3430503, orderDateTime#3430500, deliveryDateTime#3430495, availabilityDateTime#3430501, nextAvailabilityDateTime#3430502, isFallbackOrderOnly#3430507, orderQuantityBaseUom#3430518, orderQuantityBaseUomUuid#3430519, netPriceQuantity#3430528, netPriceQuantityUom#3430529, netPriceQuantityUomUuid#3430530, netPriceAmount#3430526, netPriceCurrencyCode#3430527, measurements#3430531, minimumOrderQuantity#3430520, constraintLabels#3430521, constraintOperators#3430522, constraintRanks#3430524, constraintValues#3430523, constraintIsActive#3430525, logisticUnits#3430517, optimizationGroups#3430533, externalProductId#3430515, externalPlantId#3430516, supplyingPlant#3430497, productGroup#3430498]
Input [44]: [orderProposalId#3430490L, orderProposalItemId#3430491, supplierGroup#3430492, supplier#3430493, plant#3430494, deliveryDateTime#3430495, subrange#3430496, supplyingPlant#3430497, productGroup#3430498, product#3430499, orderDateTime#3430500, availabilityDateTime#3430501, nextAvailabilityDateTime#3430502, mrpController#3430503, sourceOfSupplyUuid#3430504, purchasingOrg#3430505, purchasingGroup#3430506, isFallbackOrderOnly#3430507, orderProposalHorizonGroupingId#3430508L, splitIndicator#3430509L, previousOrderProposal#3430510L, clusterId#3430511L, sequenceId#3430512, worklistShardItemId#3430513L, orderProposalItemGroupId#3430514, externalProductId#3430515, externalPlantId#3430516, logisticUnits#3430517, orderQuantityBaseUom#3430518, orderQuantityBaseUomUuid#3430519, minimumOrderQuantity#3430520, constraintLabels#3430521, constraintOperators#3430522, constraintValues#3430523, constraintRanks#3430524, constraintIsActive#3430525, netPriceAmount#3430526, netPriceCurrencyCode#3430527, netPriceQuantity#3430528, netPriceQuantityUom#3430529, netPriceQuantityUomUuid#3430530, measurements#3430531, originalReplenishmentRunId#3430532L, optimizationGroups#3430533]
(12) ResultQueryStage
Output [45]: [shardId#3430445, worklistShardItemId#3430513L, orderProposalId#3430490L, orderProposalItemId#3430491, orderProposalItemGroupId#3430514, originalReplenishmentRunId#3430532L, orderProposalHorizonGroupingId#3430508L, splitIndicator#3430509L, previousOrderProposal#3430510L, clusterId#3430511L, sequenceId#3430455L, sourceOfSupplyUuid#3430504, supplierGroup#3430492, supplier#3430493, subrange#3430496, product#3430499, plant#3430494, purchasingOrg#3430505, purchasingGroup#3430506, mrpController#3430503, orderDateTime#3430500, deliveryDateTime#3430495, availabilityDateTime#3430501, nextAvailabilityDateTime#3430502, isFallbackOrderOnly#3430507, orderQuantityBaseUom#3430518, orderQuantityBaseUomUuid#3430519, netPriceQuantity#3430528, netPriceQuantityUom#3430529, netPriceQuantityUomUuid#3430530, netPriceAmount#3430526, netPriceCurrencyCode#3430527, measurements#3430531, minimumOrderQuantity#3430520, constraintLabels#3430521, constraintOperators#3430522, constraintRanks#3430524, constraintValues#3430523, constraintIsActive#3430525, logisticUnits#3430517, optimizationGroups#3430533, externalProductId#3430515, externalPlantId#3430516, supplyingPlant#3430497, productGroup#3430498]
Arguments: 1
(13) Filter
Input [45]: [orderProposalId#3430490L, orderProposalItemId#3430491, supplierGroup#3430492, supplier#3430493, plant#3430494, deliveryDateTime#3430495, subrange#3430496, supplyingPlant#3430497, productGroup#3430498, product#3430499, orderDateTime#3430500, availabilityDateTime#3430501, nextAvailabilityDateTime#3430502, mrpController#3430503, sourceOfSupplyUuid#3430504, purchasingOrg#3430505, purchasingGroup#3430506, isFallbackOrderOnly#3430507, orderProposalHorizonGroupingId#3430508L, splitIndicator#3430509L, previousOrderProposal#3430510L, clusterId#3430511L, worklistShardItemId#3430513L, orderProposalItemGroupId#3430514, externalProductId#3430515, externalPlantId#3430516, logisticUnits#3430517, orderQuantityBaseUom#3430518, orderQuantityBaseUomUuid#3430519, minimumOrderQuantity#3430520, constraintLabels#3430521, constraintOperators#3430522, constraintValues#3430523, constraintRanks#3430524, constraintIsActive#3430525, netPriceAmount#3430526, netPriceCurrencyCode#3430527, netPriceQuantity#3430528, netPriceQuantityUom#3430529, netPriceQuantityUomUuid#3430530, measurements#3430531, originalReplenishmentRunId#3430532L, optimizationGroups#3430533, shardId#3430534, sequenceId#3430512]
Condition : ((isnotnull(availabilityDateTime#3430501) AND isnotnull(nextAvailabilityDateTime#3430502)) AND (nextAvailabilityDateTime#3430502 > availabilityDateTime#3430501))
(14) Project
Output [44]: [orderProposalId#3430490L, orderProposalItemId#3430491, supplierGroup#3430492, supplier#3430493, plant#3430494, deliveryDateTime#3430495, subrange#3430496, supplyingPlant#3430497, productGroup#3430498, product#3430499, orderDateTime#3430500, availabilityDateTime#3430501, nextAvailabilityDateTime#3430502, mrpController#3430503, sourceOfSupplyUuid#3430504, purchasingOrg#3430505, purchasingGroup#3430506, isFallbackOrderOnly#3430507, orderProposalHorizonGroupingId#3430508L, splitIndicator#3430509L, previousOrderProposal#3430510L, clusterId#3430511L, sequenceId#3430512, worklistShardItemId#3430513L, orderProposalItemGroupId#3430514, externalProductId#3430515, externalPlantId#3430516, logisticUnits#3430517, orderQuantityBaseUom#3430518, orderQuantityBaseUomUuid#3430519, minimumOrderQuantity#3430520, constraintLabels#3430521, constraintOperators#3430522, constraintValues#3430523, constraintRanks#3430524, constraintIsActive#3430525, netPriceAmount#3430526, netPriceCurrencyCode#3430527, netPriceQuantity#3430528, netPriceQuantityUom#3430529, netPriceQuantityUomUuid#3430530, measurements#3430531, originalReplenishmentRunId#3430532L, optimizationGroups#3430533]
Input [45]: [orderProposalId#3430490L, orderProposalItemId#3430491, supplierGroup#3430492, supplier#3430493, plant#3430494, deliveryDateTime#3430495, subrange#3430496, supplyingPlant#3430497, productGroup#3430498, product#3430499, orderDateTime#3430500, availabilityDateTime#3430501, nextAvailabilityDateTime#3430502, mrpController#3430503, sourceOfSupplyUuid#3430504, purchasingOrg#3430505, purchasingGroup#3430506, isFallbackOrderOnly#3430507, orderProposalHorizonGroupingId#3430508L, splitIndicator#3430509L, previousOrderProposal#3430510L, clusterId#3430511L, worklistShardItemId#3430513L, orderProposalItemGroupId#3430514, externalProductId#3430515, externalPlantId#3430516, logisticUnits#3430517, orderQuantityBaseUom#3430518, orderQuantityBaseUomUuid#3430519, minimumOrderQuantity#3430520, constraintLabels#3430521, constraintOperators#3430522, constraintValues#3430523, constraintRanks#3430524, constraintIsActive#3430525, netPriceAmount#3430526, netPriceCurrencyCode#3430527, netPriceQuantity#3430528, netPriceQuantityUom#3430529, netPriceQuantityUomUuid#3430530, measurements#3430531, originalReplenishmentRunId#3430532L, optimizationGroups#3430533, shardId#3430534, sequenceId#3430512]
(15) Exchange
Input [44]: [orderProposalId#3430490L, orderProposalItemId#3430491, supplierGroup#3430492, supplier#3430493, plant#3430494, deliveryDateTime#3430495, subrange#3430496, supplyingPlant#3430497, productGroup#3430498, product#3430499, orderDateTime#3430500, availabilityDateTime#3430501, nextAvailabilityDateTime#3430502, mrpController#3430503, sourceOfSupplyUuid#3430504, purchasingOrg#3430505, purchasingGroup#3430506, isFallbackOrderOnly#3430507, orderProposalHorizonGroupingId#3430508L, splitIndicator#3430509L, previousOrderProposal#3430510L, clusterId#3430511L, sequenceId#3430512, worklistShardItemId#3430513L, orderProposalItemGroupId#3430514, externalProductId#3430515, externalPlantId#3430516, logisticUnits#3430517, orderQuantityBaseUom#3430518, orderQuantityBaseUomUuid#3430519, minimumOrderQuantity#3430520, constraintLabels#3430521, constraintOperators#3430522, constraintValues#3430523, constraintRanks#3430524, constraintIsActive#3430525, netPriceAmount#3430526, netPriceCurrencyCode#3430527, netPriceQuantity#3430528, netPriceQuantityUom#3430529, netPriceQuantityUomUuid#3430530, measurements#3430531, originalReplenishmentRunId#3430532L, optimizationGroups#3430533]
Arguments: hashpartitioning(worklistShardItemId#3430513L, 37), REPARTITION_BY_NUM, [plan_id=986896]
(16) Project
Output [45]: [0_5_10000000532 AS shardId#3430445, worklistShardItemId#3430513L, orderProposalId#3430490L, orderProposalItemId#3430491, orderProposalItemGroupId#3430514, originalReplenishmentRunId#3430532L, orderProposalHorizonGroupingId#3430508L, splitIndicator#3430509L, previousOrderProposal#3430510L, clusterId#3430511L, cast(sequenceId#3430512 as bigint) AS sequenceId#3430455L, sourceOfSupplyUuid#3430504, supplierGroup#3430492, supplier#3430493, subrange#3430496, product#3430499, plant#3430494, purchasingOrg#3430505, purchasingGroup#3430506, mrpController#3430503, orderDateTime#3430500, deliveryDateTime#3430495, availabilityDateTime#3430501, nextAvailabilityDateTime#3430502, isFallbackOrderOnly#3430507, orderQuantityBaseUom#3430518, orderQuantityBaseUomUuid#3430519, netPriceQuantity#3430528, netPriceQuantityUom#3430529, netPriceQuantityUomUuid#3430530, netPriceAmount#3430526, netPriceCurrencyCode#3430527, measurements#3430531, minimumOrderQuantity#3430520, constraintLabels#3430521, constraintOperators#3430522, constraintRanks#3430524, constraintValues#3430523, constraintIsActive#3430525, logisticUnits#3430517, optimizationGroups#3430533, externalProductId#3430515, externalPlantId#3430516, supplyingPlant#3430497, productGroup#3430498]
Input [44]: [orderProposalId#3430490L, orderProposalItemId#3430491, supplierGroup#3430492, supplier#3430493, plant#3430494, deliveryDateTime#3430495, subrange#3430496, supplyingPlant#3430497, productGroup#3430498, product#3430499, orderDateTime#3430500, availabilityDateTime#3430501, nextAvailabilityDateTime#3430502, mrpController#3430503, sourceOfSupplyUuid#3430504, purchasingOrg#3430505, purchasingGroup#3430506, isFallbackOrderOnly#3430507, orderProposalHorizonGroupingId#3430508L, splitIndicator#3430509L, previousOrderProposal#3430510L, clusterId#3430511L, sequenceId#3430512, worklistShardItemId#3430513L, orderProposalItemGroupId#3430514, externalProductId#3430515, externalPlantId#3430516, logisticUnits#3430517, orderQuantityBaseUom#3430518, orderQuantityBaseUomUuid#3430519, minimumOrderQuantity#3430520, constraintLabels#3430521, constraintOperators#3430522, constraintValues#3430523, constraintRanks#3430524, constraintIsActive#3430525, netPriceAmount#3430526, netPriceCurrencyCode#3430527, netPriceQuantity#3430528, netPriceQuantityUom#3430529, netPriceQuantityUomUuid#3430530, measurements#3430531, originalReplenishmentRunId#3430532L, optimizationGroups#3430533]
(17) AdaptiveSparkPlan
Output [45]: [shardId#3430445, worklistShardItemId#3430513L, orderProposalId#3430490L, orderProposalItemId#3430491, orderProposalItemGroupId#3430514, originalReplenishmentRunId#3430532L, orderProposalHorizonGroupingId#3430508L, splitIndicator#3430509L, previousOrderProposal#3430510L, clusterId#3430511L, sequenceId#3430455L, sourceOfSupplyUuid#3430504, supplierGroup#3430492, supplier#3430493, subrange#3430496, product#3430499, plant#3430494, purchasingOrg#3430505, purchasingGroup#3430506, mrpController#3430503, orderDateTime#3430500, deliveryDateTime#3430495, availabilityDateTime#3430501, nextAvailabilityDateTime#3430502, isFallbackOrderOnly#3430507, orderQuantityBaseUom#3430518, orderQuantityBaseUomUuid#3430519, netPriceQuantity#3430528, netPriceQuantityUom#3430529, netPriceQuantityUomUuid#3430530, netPriceAmount#3430526, netPriceCurrencyCode#3430527, measurements#3430531, minimumOrderQuantity#3430520, constraintLabels#3430521, constraintOperators#3430522, constraintRanks#3430524, constraintValues#3430523, constraintIsActive#3430525, logisticUnits#3430517, optimizationGroups#3430533, externalProductId#3430515, externalPlantId#3430516, supplyingPlant#3430497, productGroup#3430498]
Arguments: isFinalPlan=true
(18) TableCacheQueryStage
Output [3]: [shardId#3430445, worklistShardItemId#3430446L, orderProposalId#3430447L]
Arguments: 0
(19) Filter [codegen id : 1]
Input [3]: [shardId#3430445, worklistShardItemId#3430446L, orderProposalId#3430447L]
Condition : (isnotnull(shardId#3430445) AND isnotnull(orderProposalId#3430447L))
(20) ObjectHashAggregate
Input [3]: [shardId#3430445, worklistShardItemId#3430446L, orderProposalId#3430447L]
Keys [2]: [shardId#3430445, orderProposalId#3430447L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#3430446L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#3437194]
Results [3]: [shardId#3430445, orderProposalId#3430447L, buf#3437195]
(21) Exchange
Input [3]: [shardId#3430445, orderProposalId#3430447L, buf#3437195]
Arguments: hashpartitioning(shardId#3430445, orderProposalId#3430447L, 37), ENSURE_REQUIREMENTS, [plan_id=987290]
(22) ShuffleQueryStage [codegen id : 7]
Output [3]: [shardId#3430445, orderProposalId#3430447L, buf#3437195]
Arguments: 2
(23) ObjectHashAggregate [codegen id : 7]
Input [3]: [shardId#3430445, orderProposalId#3430447L, buf#3437195]
Keys [2]: [shardId#3430445, orderProposalId#3430447L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#3430446L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#3430446L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#3435690]
Results [7]: [shardId#3430445, orderProposalId#3430447L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#3430446L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#3435690, lambdafunction(struct(worklistShardItemId, lambda x_11396#3435711.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_11396#3435711.quantityAfterProdPlantOptimization, qty, lambda x_11396#3435711.optimalQuantity), lambda x_11396#3435711, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#3435712, [] AS optimizationGroups#3435706, false AS isOptimal#3435691, 2026-08-31 13:58:05.374927 AS lastModified#3435710, [] AS optimizationInsights#3435707]
(24) Union
(25) Scan ExistingRDD [codegen id : 3]
Output [7]: [shardId#3435722, orderProposalId#3435723L, items#3435724, optimizationGroups#3435725, isOptimal#3435726, lastModified#3435727, optimizationInsights#3435728]
Arguments: [shardId#3435722, orderProposalId#3435723L, items#3435724, optimizationGroups#3435725, isOptimal#3435726, lastModified#3435727, optimizationInsights#3435728], MapPartitionsRDD[146064] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(26) Filter [codegen id : 3]
Input [7]: [shardId#3435722, orderProposalId#3435723L, items#3435724, optimizationGroups#3435725, isOptimal#3435726, lastModified#3435727, optimizationInsights#3435728]
Condition : (isnotnull(shardId#3435722) AND isnotnull(orderProposalId#3435723L))
(27) Project [codegen id : 3]
Output [3]: [shardId#3435722, orderProposalId#3435723L, lastModified#3435727]
Input [7]: [shardId#3435722, orderProposalId#3435723L, items#3435724, optimizationGroups#3435725, isOptimal#3435726, lastModified#3435727, optimizationInsights#3435728]
(28) InMemoryTableScan
Output [2]: [shardId#3435729, orderProposalId#3435731L]
Arguments: [shardId#3435729, orderProposalId#3435731L], [isnotnull(shardId#3435729), isnotnull(orderProposalId#3435731L)]
(29) InMemoryRelation
Arguments: [shardId#3435729, worklistShardItemId#3435730L, orderProposalId#3435731L, orderProposalItemId#3435732, orderProposalItemGroupId#3435733, originalReplenishmentRunId#3435734L, orderProposalHorizonGroupingId#3435735L, splitIndicator#3435736L, previousOrderProposal#3435737L, clusterId#3435738L, sequenceId#3435739L, sourceOfSupplyUuid#3435740, supplierGroup#3435741, supplier#3435742, subrange#3435743, product#3435744, plant#3435745, purchasingOrg#3435746, purchasingGroup#3435747, mrpController#3435748, orderDateTime#3435749, deliveryDateTime#3435750, availabilityDateTime#3435751, nextAvailabilityDateTime#3435752, isFallbackOrderOnly#3435753, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(30) TableCacheQueryStage
Output [2]: [shardId#3435729, orderProposalId#3435731L]
Arguments: 1
(31) Filter [codegen id : 2]
Input [2]: [shardId#3435729, orderProposalId#3435731L]
Condition : (isnotnull(shardId#3435729) AND isnotnull(orderProposalId#3435731L))
(32) HashAggregate [codegen id : 2]
Input [2]: [shardId#3435729, orderProposalId#3435731L]
Keys [2]: [shardId#3435729, orderProposalId#3435731L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#3435729, orderProposalId#3435731L]
(33) Exchange
Input [2]: [shardId#3435729, orderProposalId#3435731L]
Arguments: hashpartitioning(shardId#3435729, orderProposalId#3435731L, 37), ENSURE_REQUIREMENTS, [plan_id=987397]
(34) ShuffleQueryStage
Output [2]: [shardId#3435729, orderProposalId#3435731L]
Arguments: 3
(35) AQEShuffleRead
Input [2]: [shardId#3435729, orderProposalId#3435731L]
Arguments: coalesced
(36) HashAggregate [codegen id : 4]
Input [2]: [shardId#3435729, orderProposalId#3435731L]
Keys [2]: [shardId#3435729, orderProposalId#3435731L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#3435729, orderProposalId#3435731L, 2026-08-31 13:58:05.374927 AS lastModified#3435826]
(37) Union
(38) HashAggregate [codegen id : 5]
Input [3]: [shardId#3435722, orderProposalId#3435723L, lastModified#3435727]
Keys [2]: [shardId#3435722, orderProposalId#3435723L]
Functions [1]: [partial_max(lastModified#3435727)]
Aggregate Attributes [1]: [max#3437196]
Results [3]: [shardId#3435722, orderProposalId#3435723L, max#3437197]
(39) Exchange
Input [3]: [shardId#3435722, orderProposalId#3435723L, max#3437197]
Arguments: hashpartitioning(shardId#3435722, orderProposalId#3435723L, 37), ENSURE_REQUIREMENTS, [plan_id=987496]
(40) ShuffleQueryStage
Output [3]: [shardId#3435722, orderProposalId#3435723L, max#3437197]
Arguments: 4
(41) AQEShuffleRead
Input [3]: [shardId#3435722, orderProposalId#3435723L, max#3437197]
Arguments: coalesced
(42) HashAggregate [codegen id : 6]
Input [3]: [shardId#3435722, orderProposalId#3435723L, max#3437197]
Keys [2]: [shardId#3435722, orderProposalId#3435723L]
Functions [1]: [max(lastModified#3435727)]
Aggregate Attributes [1]: [max(lastModified#3435727)#3435721]
Results [3]: [shardId#3435722, orderProposalId#3435723L, max(lastModified#3435727)#3435721 AS lastModified#3435713]
(43) Filter [codegen id : 6]
Input [3]: [shardId#3435722, orderProposalId#3435723L, lastModified#3435713]
Condition : isnotnull(lastModified#3435713)
(44) BroadcastExchange
Input [3]: [shardId#3435722, orderProposalId#3435723L, lastModified#3435713]
Arguments: HashedRelationBroadcastMode(List(input[0, string, true], input[1, bigint, true], input[2, timestamp, false]),false), [plan_id=987559]
(45) BroadcastQueryStage
Output [3]: [shardId#3435722, orderProposalId#3435723L, lastModified#3435713]
Arguments: 5
(46) BroadcastHashJoin [codegen id : 8]
Left keys [3]: [shardId#3435699, orderProposalId#3435700L, lastModified#3435704]
Right keys [3]: [shardId#3435722, orderProposalId#3435723L, lastModified#3435713]
Join type: Inner
Join condition: None
(47) Project [codegen id : 8]
Output [7]: [shardId#3435699, orderProposalId#3435700L, items#3435701, optimizationGroups#3435702, isOptimal#3435703, lastModified#3435704, optimizationInsights#3435705]
Input [10]: [shardId#3435699, orderProposalId#3435700L, items#3435701, optimizationGroups#3435702, isOptimal#3435703, lastModified#3435704, optimizationInsights#3435705, shardId#3435722, orderProposalId#3435723L, lastModified#3435713]
(48) DeserializeToObject
Input [7]: [shardId#3435699, orderProposalId#3435700L, items#3435701, optimizationGroups#3435702, isOptimal#3435703, lastModified#3435704, optimizationInsights#3435705]
Arguments: createexternalrow(invoke(shardId#3435699.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#3435700L)), 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#3435701, 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#3435702, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#3435703)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#3435704)), 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#3435705, 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#3435843: org.apache.spark.sql.Row
(49) ResultQueryStage
Output [1]: [obj#3435843]
Arguments: 6
(50) Scan ExistingRDD
Output [7]: [shardId#3435699, orderProposalId#3435700L, items#3435701, optimizationGroups#3435702, isOptimal#3435703, lastModified#3435704, optimizationInsights#3435705]
Arguments: [shardId#3435699, orderProposalId#3435700L, items#3435701, optimizationGroups#3435702, isOptimal#3435703, lastModified#3435704, optimizationInsights#3435705], MapPartitionsRDD[146064] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(51) Filter
Input [7]: [shardId#3435699, orderProposalId#3435700L, items#3435701, optimizationGroups#3435702, isOptimal#3435703, lastModified#3435704, optimizationInsights#3435705]
Condition : ((isnotnull(shardId#3435699) AND isnotnull(orderProposalId#3435700L)) AND isnotnull(lastModified#3435704))
(52) Filter
Input [3]: [shardId#3430445, worklistShardItemId#3430446L, orderProposalId#3430447L]
Condition : (isnotnull(shardId#3430445) AND isnotnull(orderProposalId#3430447L))
(53) ObjectHashAggregate
Input [3]: [shardId#3430445, worklistShardItemId#3430446L, orderProposalId#3430447L]
Keys [2]: [shardId#3430445, orderProposalId#3430447L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#3430446L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#3437194]
Results [3]: [shardId#3430445, orderProposalId#3430447L, buf#3437195]
(54) Exchange
Input [3]: [shardId#3430445, orderProposalId#3430447L, buf#3437195]
Arguments: hashpartitioning(shardId#3430445, orderProposalId#3430447L, 37), ENSURE_REQUIREMENTS, [plan_id=987119]
(55) ObjectHashAggregate
Input [3]: [shardId#3430445, orderProposalId#3430447L, buf#3437195]
Keys [2]: [shardId#3430445, orderProposalId#3430447L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#3430446L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#3430446L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#3435690]
Results [7]: [shardId#3430445, orderProposalId#3430447L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#3430446L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#3435690, lambdafunction(struct(worklistShardItemId, lambda x_11396#3435711.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_11396#3435711.quantityAfterProdPlantOptimization, qty, lambda x_11396#3435711.optimalQuantity), lambda x_11396#3435711, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#3435712, [] AS optimizationGroups#3435706, false AS isOptimal#3435691, 2026-08-31 13:58:05.374927 AS lastModified#3435710, [] AS optimizationInsights#3435707]
(56) Union
(57) Exchange
Input [7]: [shardId#3435699, orderProposalId#3435700L, items#3435701, optimizationGroups#3435702, isOptimal#3435703, lastModified#3435704, optimizationInsights#3435705]
Arguments: hashpartitioning(shardId#3435699, orderProposalId#3435700L, lastModified#3435704, 37), ENSURE_REQUIREMENTS, [plan_id=987132]
(58) Sort
Input [7]: [shardId#3435699, orderProposalId#3435700L, items#3435701, optimizationGroups#3435702, isOptimal#3435703, lastModified#3435704, optimizationInsights#3435705]
Arguments: [shardId#3435699 ASC NULLS FIRST, orderProposalId#3435700L ASC NULLS FIRST, lastModified#3435704 ASC NULLS FIRST], false, 0
(59) Filter
Input [2]: [shardId#3435729, orderProposalId#3435731L]
Condition : (isnotnull(shardId#3435729) AND isnotnull(orderProposalId#3435731L))
(60) HashAggregate
Input [2]: [shardId#3435729, orderProposalId#3435731L]
Keys [2]: [shardId#3435729, orderProposalId#3435731L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#3435729, orderProposalId#3435731L]
(61) Exchange
Input [2]: [shardId#3435729, orderProposalId#3435731L]
Arguments: hashpartitioning(shardId#3435729, orderProposalId#3435731L, 37), ENSURE_REQUIREMENTS, [plan_id=987122]
(62) HashAggregate
Input [2]: [shardId#3435729, orderProposalId#3435731L]
Keys [2]: [shardId#3435729, orderProposalId#3435731L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#3435729, orderProposalId#3435731L, 2026-08-31 13:58:05.374927 AS lastModified#3435826]
(63) Union
(64) HashAggregate
Input [3]: [shardId#3435722, orderProposalId#3435723L, lastModified#3435727]
Keys [2]: [shardId#3435722, orderProposalId#3435723L]
Functions [1]: [partial_max(lastModified#3435727)]
Aggregate Attributes [1]: [max#3437196]
Results [3]: [shardId#3435722, orderProposalId#3435723L, max#3437197]
(65) Exchange
Input [3]: [shardId#3435722, orderProposalId#3435723L, max#3437197]
Arguments: hashpartitioning(shardId#3435722, orderProposalId#3435723L, 37), ENSURE_REQUIREMENTS, [plan_id=987127]
(66) HashAggregate
Input [3]: [shardId#3435722, orderProposalId#3435723L, max#3437197]
Keys [2]: [shardId#3435722, orderProposalId#3435723L]
Functions [1]: [max(lastModified#3435727)]
Aggregate Attributes [1]: [max(lastModified#3435727)#3435721]
Results [3]: [shardId#3435722, orderProposalId#3435723L, max(lastModified#3435727)#3435721 AS lastModified#3435713]
(67) Filter
Input [3]: [shardId#3435722, orderProposalId#3435723L, lastModified#3435713]
Condition : isnotnull(lastModified#3435713)
(68) Exchange
Input [3]: [shardId#3435722, orderProposalId#3435723L, lastModified#3435713]
Arguments: hashpartitioning(shardId#3435722, orderProposalId#3435723L, lastModified#3435713, 37), ENSURE_REQUIREMENTS, [plan_id=987133]
(69) Sort
Input [3]: [shardId#3435722, orderProposalId#3435723L, lastModified#3435713]
Arguments: [shardId#3435722 ASC NULLS FIRST, orderProposalId#3435723L ASC NULLS FIRST, lastModified#3435713 ASC NULLS FIRST], false, 0
(70) SortMergeJoin
Left keys [3]: [shardId#3435699, orderProposalId#3435700L, lastModified#3435704]
Right keys [3]: [shardId#3435722, orderProposalId#3435723L, lastModified#3435713]
Join type: Inner
Join condition: None
(71) Project
Output [7]: [shardId#3435699, orderProposalId#3435700L, items#3435701, optimizationGroups#3435702, isOptimal#3435703, lastModified#3435704, optimizationInsights#3435705]
Input [10]: [shardId#3435699, orderProposalId#3435700L, items#3435701, optimizationGroups#3435702, isOptimal#3435703, lastModified#3435704, optimizationInsights#3435705, shardId#3435722, orderProposalId#3435723L, lastModified#3435713]
(72) DeserializeToObject
Input [7]: [shardId#3435699, orderProposalId#3435700L, items#3435701, optimizationGroups#3435702, isOptimal#3435703, lastModified#3435704, optimizationInsights#3435705]
Arguments: createexternalrow(invoke(shardId#3435699.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#3435700L)), 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#3435701, 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#3435702, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#3435703)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#3435704)), 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#3435705, 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#3435843: org.apache.spark.sql.Row
(73) AdaptiveSparkPlan
Output [1]: [obj#3435843]
Arguments: isFinalPlan=true