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#3621291.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#3621292L)), 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#3621293, 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#3621294, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#3621295)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#3621296)), 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#3621297, 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#3621435: 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#3621291, orderProposalId#3621292L, items#3621293, optimizationGroups#3621294, isOptimal#3621295, lastModified#3621296, optimizationInsights#3621297]"];
4 [id="node4" labelType="html" label="<br><b>BroadcastHashJoin</b><br><br>" tooltip="BroadcastHashJoin [shardId#3621291, orderProposalId#3621292L, lastModified#3621296], [shardId#3621314, orderProposalId#3621315L, lastModified#3621305], 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#3621291) AND isnotnull(orderProposalId#3621292L)) AND isnotnull(lastModified#3621296))"];
8 [id="node8" labelType="html" label="<br><b>Scan ExistingRDD</b><br><br>" tooltip="Scan ExistingRDD[shardId#3621291,orderProposalId#3621292L,items#3621293,optimizationGroups#3621294,isOptimal#3621295,lastModified#3621296,optimizationInsights#3621297]"];
}
9 [id="node9" labelType="html" label="<br><b>ObjectHashAggregate</b><br><br>" tooltip="ObjectHashAggregate(keys=[shardId#3617984, orderProposalId#3617986L], functions=[collect_list(struct(worklistShardItemId, worklistShardItemId#3617985L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)])"];
10 [id="node10" labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 36<br>partition data size total (min, med, max (stageId: taskId))<br>2.3 MiB (51.9 KiB, 64.4 KiB, 107.2 KiB (driver))<br>number of coalesced partitions: 1" tooltip="AQEShuffleRead coalesced"];
11 [id="node11" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 65,484<br>data size total (min, med, max (stageId: taskId))<br>9.6 MiB (253.5 KiB, 265.1 KiB, 270.0 KiB (stage 341305.0: task 948730))<br>shuffle write time total (min, med, max (stageId: taskId))<br>89 ms (1 ms, 2 ms, 9 ms (stage 341305.0: task 948772))<br>number of partitions: 37<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>2.2 MiB (58.6 KiB, 60.6 KiB, 61.5 KiB (stage 341305.0: task 948730))" tooltip="Exchange hashpartitioning(shardId#3617984, orderProposalId#3617986L, 37), ENSURE_REQUIREMENTS, [plan_id=1036692]"];
12 [id="node12" labelType="html" label="<b>ObjectHashAggregate</b><br><br>number of output rows: 65,484<br>time in aggregation build total (min, med, max (stageId: taskId))<br>5.2 s (6 ms, 8 ms, 638 ms (stage 341305.0: task 948735))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 341305.0: task 948728))<br>number of sort fallback tasks: 37" tooltip="ObjectHashAggregate(keys=[shardId#3617984, orderProposalId#3617986L], functions=[partial_collect_list(struct(worklistShardItemId, worklistShardItemId#3617985L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)])"];
subgraph cluster13 {
isCluster="true";
id="cluster13";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n4.6 s (4 ms, 6 ms, 601 ms (stage 341305.0: task 948732))";
tooltip="WholeStageCodegen (1)";
14 [id="node14" labelType="html" label="<b>Filter</b><br><br>number of output rows: 119,861" tooltip="Filter (isnotnull(shardId#3617984) AND isnotnull(orderProposalId#3617986L))"];
}
15 [id="node15" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 119,861" tooltip="InMemoryTableScan [shardId#3617984, worklistShardItemId#3617985L, orderProposalId#3617986L], [isnotnull(shardId#3617984), isnotnull(orderProposalId#3617986L)]"];
16 [id="node16" labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>" tooltip="AdaptiveSparkPlan isFinalPlan=true"];
subgraph cluster17 {
isCluster="true";
id="cluster17";
label="WholeStageCodegen (2)\n \nduration: 0 ms";
tooltip="WholeStageCodegen (2)";
18 [id="node18" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [0_5_10000000532 AS shardId#3617984, worklistShardItemId#3618052L, orderProposalId#3618029L, orderProposalItemId#3618030, orderProposalItemGroupId#3618053, originalReplenishmentRunId#3618071L, orderProposalHorizonGroupingId#3618047L, splitIndicator#3618048L, previousOrderProposal#3618049L, clusterId#3618050L, cast(sequenceId#3618051 as bigint) AS sequenceId#3617994L, sourceOfSupplyUuid#3618043, supplierGroup#3618031, supplier#3618032, subrange#3618035, product#3618038, plant#3618033, purchasingOrg#3618044, purchasingGroup#3618045, mrpController#3618042, orderDateTime#3618039, deliveryDateTime#3618034, availabilityDateTime#3618040, nextAvailabilityDateTime#3618041, isFallbackOrderOnly#3618046, ... 20 more fields]"];
}
19 [id="node19" 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#3618052L, 37), REPARTITION_BY_NUM, [plan_id=1036274]"];
subgraph cluster20 {
isCluster="true";
id="cluster20";
label="WholeStageCodegen (1)";
tooltip="WholeStageCodegen (1)";
21 [id="node21" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [orderProposalId#3618029L, orderProposalItemId#3618030, supplierGroup#3618031, supplier#3618032, plant#3618033, deliveryDateTime#3618034, subrange#3618035, supplyingPlant#3618036, productGroup#3618037, product#3618038, orderDateTime#3618039, availabilityDateTime#3618040, nextAvailabilityDateTime#3618041, mrpController#3618042, sourceOfSupplyUuid#3618043, purchasingOrg#3618044, purchasingGroup#3618045, isFallbackOrderOnly#3618046, orderProposalHorizonGroupingId#3618047L, splitIndicator#3618048L, previousOrderProposal#3618049L, clusterId#3618050L, sequenceId#3618051, worklistShardItemId#3618052L, orderProposalItemGroupId#3618053, ... 19 more fields]"];
22 [id="node22" labelType="html" label="<br><b>Filter</b><br><br>" tooltip="Filter ((isnotnull(availabilityDateTime#3618040) AND isnotnull(nextAvailabilityDateTime#3618041)) AND (nextAvailabilityDateTime#3618041 > availabilityDateTime#3618040))"];
23 [id="node23" labelType="html" label="<br><b>ColumnarToRow</b><br><br>" tooltip="ColumnarToRow"];
}
24 [id="node24" labelType="html" label="<br><b>Scan parquet </b><br><br>" tooltip="FileScan parquet [orderProposalId#3618029L,orderProposalItemId#3618030,supplierGroup#3618031,supplier#3618032,plant#3618033,deliveryDateTime#3618034,subrange#3618035,supplyingPlant#3618036,productGroup#3618037,product#3618038,orderDateTime#3618039,availabilityDateTime#3618040,nextAvailabilityDateTime#3618041,mrpController#3618042,sourceOfSupplyUuid#3618043,purchasingOrg#3618044,purchasingGroup#3618045,isFallbackOrderOnly#3618046,orderProposalHorizonGroupingId#3618047L,splitIndicator#3618048L,previousOrderProposal#3618049L,clusterId#3618050L,worklistShardItemId#3618052L,orderProposalItemGroupId#3618053,externalProductId#3618054,... 20 more fields] Batched: true, DataFilters: [isnotnull(availabilityDateTime#3618040), isnotnull(nextAvailabilityDateTime#3618041), (nextAvail..., Format: Parquet, Location: PreparedDeltaFileIndex(1 paths)[hdlfs://7da5304c-1f57-47fa-b75a-0f0b4349c280.files.hdl.prod-eu20...., PartitionFilters: [isnotnull(shardId#3618073), isnotnull(sequenceId#3618051), (shardId#3618073 = 0_5_10000000532), ..., PushedFilters: [IsNotNull(availabilityDateTime), IsNotNull(nextAvailabilityDateTime)], ReadSchema: struct<orderProposalId:bigint,orderProposalItemId:string,supplierGroup:string,supplier:string,pla..."];
25 [id="node25" labelType="html" label="<b>BroadcastExchange</b><br><br>time to broadcast: 1 ms<br>time to build: 6 ms<br>time to collect: 59 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=1036895]"];
subgraph cluster26 {
isCluster="true";
id="cluster26";
label="WholeStageCodegen (6)\n \nduration: 7 ms";
tooltip="WholeStageCodegen (6)";
27 [id="node27" labelType="html" label="<b>Filter</b><br><br>number of output rows: 2,360" tooltip="Filter isnotnull(lastModified#3621305)"];
28 [id="node28" 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#3621314, orderProposalId#3621315L], functions=[max(lastModified#3621319)])"];
}
29 [id="node29" labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 32.8 KiB<br>number of coalesced partitions: 1" tooltip="AQEShuffleRead coalesced"];
30 [id="node30" 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: 10.3 KiB<br>merged fetch fallback count: 0<br>local blocks read: 12<br>remote merged chunks fetched: 0<br>remote blocks read: 25<br>data size total (min, med, max (stageId: taskId))<br>110.6 KiB (6.0 KiB, 6.9 KiB, 11.0 KiB (stage 341311.0: task 948842))<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 341311.0: task 948829))<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: 20.8 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 (1717.0 B, 1972.0 B, 3.1 KiB (stage 341311.0: task 948842))" tooltip="Exchange hashpartitioning(shardId#3621314, orderProposalId#3621315L, 37), ENSURE_REQUIREMENTS, [plan_id=1036832]"];
subgraph cluster31 {
isCluster="true";
id="cluster31";
label="WholeStageCodegen (5)\n \nduration: total (min, med, max (stageId: taskId))\n626 ms (0 ms, 18 ms, 34 ms (stage 341311.0: task 948802))";
tooltip="WholeStageCodegen (5)";
32 [id="node32" 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>260 ms (0 ms, 0 ms, 25 ms (stage 341311.0: task 948835))<br>peak memory total (min, med, max (stageId: taskId))<br>11.3 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 341311.0: task 948807))<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#3621314, orderProposalId#3621315L], functions=[partial_max(lastModified#3621319)])"];
}
33 [id="node33" labelType="html" label="<br><b>Union</b><br><br>" tooltip="Union"];
subgraph cluster34 {
isCluster="true";
id="cluster34";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n717 ms (0 ms, 1 ms, 72 ms (stage 341311.0: task 948802))";
tooltip="WholeStageCodegen (3)";
35 [id="node35" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#3621314, orderProposalId#3621315L, lastModified#3621319]"];
36 [id="node36" labelType="html" label="<b>Filter</b><br><br>number of output rows: 0" tooltip="Filter (isnotnull(shardId#3621314) AND isnotnull(orderProposalId#3621315L))"];
37 [id="node37" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 0" tooltip="Scan ExistingRDD[shardId#3621314,orderProposalId#3621315L,items#3621316,optimizationGroups#3621317,isOptimal#3621318,lastModified#3621319,optimizationInsights#3621320]"];
}
subgraph cluster38 {
isCluster="true";
id="cluster38";
label="WholeStageCodegen (4)\n \nduration: total (min, med, max (stageId: taskId))\n277 ms (12 ms, 18 ms, 26 ms (stage 341311.0: task 948835))";
tooltip="WholeStageCodegen (4)";
39 [id="node39" 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>210 ms (10 ms, 12 ms, 21 ms (stage 341311.0: task 948835))<br>peak memory total (min, med, max (stageId: taskId))<br>3.8 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 341311.0: task 948833))<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#3621321, orderProposalId#3621323L], functions=[])"];
}
40 [id="node40" labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 15<br>partition data size total (min, med, max (stageId: taskId))<br>930.2 KiB (50.4 KiB, 57.4 KiB, 93.3 KiB (driver))<br>number of coalesced partitions: 15" tooltip="AQEShuffleRead coalesced"];
41 [id="node41" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 65,484<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 65,484<br>local bytes read total (min, med, max (stageId: taskId))<br>462.9 KiB (21.3 KiB, 30.2 KiB, 50.2 KiB (stage 341311.0: task 948842))<br>merged fetch fallback count: 0<br>local blocks read: 717<br>remote merged chunks fetched: 0<br>remote blocks read: 652<br>data size total (min, med, max (stageId: taskId))<br>2.5 MiB (66.9 KiB, 69.1 KiB, 70.5 KiB (stage 341306.0: task 948770))<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>77 ms (1 ms, 1 ms, 2 ms (stage 341306.0: task 948743))<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 341311.0: task 948833))<br>remote bytes read total (min, med, max (stageId: taskId))<br>424.3 KiB (20.7 KiB, 26.7 KiB, 41.3 KiB (stage 341311.0: task 948831))<br>number of partitions: 37<br>remote reqs duration total (min, med, max (stageId: taskId))<br>56 ms (1 ms, 4 ms, 6 ms (stage 341311.0: task 948842))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>887.2 KiB (23.3 KiB, 24.0 KiB, 24.4 KiB (stage 341306.0: task 948770))" tooltip="Exchange hashpartitioning(shardId#3621321, orderProposalId#3621323L, 37), ENSURE_REQUIREMENTS, [plan_id=1036728]"];
subgraph cluster42 {
isCluster="true";
id="cluster42";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n765 ms (9 ms, 18 ms, 45 ms (stage 341306.0: task 948745))";
tooltip="WholeStageCodegen (2)";
43 [id="node43" 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>327 ms (3 ms, 9 ms, 12 ms (stage 341306.0: task 948739))<br>peak memory total (min, med, max (stageId: taskId))<br>9.3 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 341306.0: task 948740))<br>number of output rows: 65,484<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#3621321, orderProposalId#3621323L], functions=[])"];
44 [id="node44" labelType="html" label="<b>Filter</b><br><br>number of output rows: 119,861" tooltip="Filter (isnotnull(shardId#3621321) AND isnotnull(orderProposalId#3621323L))"];
}
45 [id="node45" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 119,861" tooltip="InMemoryTableScan [shardId#3621321, orderProposalId#3621323L], [isnotnull(shardId#3621321), isnotnull(orderProposalId#3621323L)]"];
46 [id="node46" labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>" tooltip="AdaptiveSparkPlan isFinalPlan=true"];
subgraph cluster47 {
isCluster="true";
id="cluster47";
label="WholeStageCodegen (2)\n \nduration: 0 ms";
tooltip="WholeStageCodegen (2)";
48 [id="node48" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [0_5_10000000532 AS shardId#3617984, worklistShardItemId#3618052L, orderProposalId#3618029L, orderProposalItemId#3618030, orderProposalItemGroupId#3618053, originalReplenishmentRunId#3618071L, orderProposalHorizonGroupingId#3618047L, splitIndicator#3618048L, previousOrderProposal#3618049L, clusterId#3618050L, cast(sequenceId#3618051 as bigint) AS sequenceId#3617994L, sourceOfSupplyUuid#3618043, supplierGroup#3618031, supplier#3618032, subrange#3618035, product#3618038, plant#3618033, purchasingOrg#3618044, purchasingGroup#3618045, mrpController#3618042, orderDateTime#3618039, deliveryDateTime#3618034, availabilityDateTime#3618040, nextAvailabilityDateTime#3618041, isFallbackOrderOnly#3618046, ... 20 more fields]"];
}
1->0;
3->1;
4->3;
5->4;
7->5;
8->7;
9->5;
10->9;
11->10;
12->11;
14->12;
15->14;
16->15;
18->16;
19->18;
21->19;
22->21;
23->22;
24->23;
25->4;
27->25;
28->27;
29->28;
30->29;
32->30;
33->32;
35->33;
36->35;
37->36;
39->33;
40->39;
41->40;
43->41;
44->43;
45->44;
46->45;
48->46;
19->48;
}
== Physical Plan ==
AdaptiveSparkPlan (74)
+- == Final Plan ==
ResultQueryStage (50), Statistics(sizeInBytes=8.0 EiB)
+- DeserializeToObject (49)
+- * Project (48)
+- * BroadcastHashJoin Inner BuildRight (47)
:- Union (25)
: :- * Filter (2)
: : +- * Scan ExistingRDD (1)
: +- ObjectHashAggregate (24)
: +- AQEShuffleRead (23)
: +- ShuffleQueryStage (22), Statistics(sizeInBytes=9.6 MiB, rowCount=6.55E+4)
: +- Exchange (21)
: +- ObjectHashAggregate (20)
: +- * Filter (19)
: +- TableCacheQueryStage (18), Statistics(sizeInBytes=138.1 MiB, rowCount=1.20E+5)
: +- InMemoryTableScan (3)
: +- InMemoryRelation (4)
: +- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=155.6 MiB, rowCount=1.20E+5)
+- Exchange (9)
+- * Project (8)
+- * Filter (7)
+- * ColumnarToRow (6)
+- Scan parquet (5)
+- == Initial Plan ==
Project (16)
+- Exchange (15)
+- Project (14)
+- Filter (13)
+- Scan parquet (5)
+- BroadcastQueryStage (46), Statistics(sizeInBytes=2.1 MiB, rowCount=2.36E+3)
+- BroadcastExchange (45)
+- * Filter (44)
+- * HashAggregate (43)
+- AQEShuffleRead (42)
+- ShuffleQueryStage (41), Statistics(sizeInBytes=110.6 KiB, rowCount=2.36E+3)
+- Exchange (40)
+- * HashAggregate (39)
+- Union (38)
:- * Project (28)
: +- * Filter (27)
: +- * Scan ExistingRDD (26)
+- * HashAggregate (37)
+- AQEShuffleRead (36)
+- ShuffleQueryStage (35), Statistics(sizeInBytes=2.5 MiB, rowCount=6.55E+4)
+- Exchange (34)
+- * HashAggregate (33)
+- * Filter (32)
+- TableCacheQueryStage (31), Statistics(sizeInBytes=138.1 MiB, rowCount=1.20E+5)
+- InMemoryTableScan (29)
+- InMemoryRelation (30)
+- 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 (73)
+- Project (72)
+- SortMergeJoin Inner (71)
:- Sort (59)
: +- Exchange (58)
: +- Union (57)
: :- Filter (52)
: : +- Scan ExistingRDD (51)
: +- ObjectHashAggregate (56)
: +- Exchange (55)
: +- ObjectHashAggregate (54)
: +- Filter (53)
: +- 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 (70)
+- Exchange (69)
+- Filter (68)
+- HashAggregate (67)
+- Exchange (66)
+- HashAggregate (65)
+- Union (64)
:- Project (28)
: +- Filter (27)
: +- Scan ExistingRDD (26)
+- HashAggregate (63)
+- Exchange (62)
+- HashAggregate (61)
+- Filter (60)
+- InMemoryTableScan (29)
+- InMemoryRelation (30)
+- 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#3621291, orderProposalId#3621292L, items#3621293, optimizationGroups#3621294, isOptimal#3621295, lastModified#3621296, optimizationInsights#3621297]
Arguments: [shardId#3621291, orderProposalId#3621292L, items#3621293, optimizationGroups#3621294, isOptimal#3621295, lastModified#3621296, optimizationInsights#3621297], MapPartitionsRDD[154432] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(2) Filter [codegen id : 7]
Input [7]: [shardId#3621291, orderProposalId#3621292L, items#3621293, optimizationGroups#3621294, isOptimal#3621295, lastModified#3621296, optimizationInsights#3621297]
Condition : ((isnotnull(shardId#3621291) AND isnotnull(orderProposalId#3621292L)) AND isnotnull(lastModified#3621296))
(3) InMemoryTableScan
Output [3]: [shardId#3617984, worklistShardItemId#3617985L, orderProposalId#3617986L]
Arguments: [shardId#3617984, worklistShardItemId#3617985L, orderProposalId#3617986L], [isnotnull(shardId#3617984), isnotnull(orderProposalId#3617986L)]
(4) InMemoryRelation
Arguments: [shardId#3617984, worklistShardItemId#3617985L, orderProposalId#3617986L, orderProposalItemId#3617987, orderProposalItemGroupId#3617988, originalReplenishmentRunId#3617989L, orderProposalHorizonGroupingId#3617990L, splitIndicator#3617991L, previousOrderProposal#3617992L, clusterId#3617993L, sequenceId#3617994L, sourceOfSupplyUuid#3617995, supplierGroup#3617996, supplier#3617997, subrange#3617998, product#3617999, plant#3618000, purchasingOrg#3618001, purchasingGroup#3618002, mrpController#3618003, orderDateTime#3618004, deliveryDateTime#3618005, availabilityDateTime#3618006, nextAvailabilityDateTime#3618007, isFallbackOrderOnly#3618008, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(5) Scan parquet
Output [45]: [orderProposalId#3618029L, orderProposalItemId#3618030, supplierGroup#3618031, supplier#3618032, plant#3618033, deliveryDateTime#3618034, subrange#3618035, supplyingPlant#3618036, productGroup#3618037, product#3618038, orderDateTime#3618039, availabilityDateTime#3618040, nextAvailabilityDateTime#3618041, mrpController#3618042, sourceOfSupplyUuid#3618043, purchasingOrg#3618044, purchasingGroup#3618045, isFallbackOrderOnly#3618046, orderProposalHorizonGroupingId#3618047L, splitIndicator#3618048L, previousOrderProposal#3618049L, clusterId#3618050L, worklistShardItemId#3618052L, orderProposalItemGroupId#3618053, externalProductId#3618054, externalPlantId#3618055, logisticUnits#3618056, orderQuantityBaseUom#3618057, orderQuantityBaseUomUuid#3618058, minimumOrderQuantity#3618059, constraintLabels#3618060, constraintOperators#3618061, constraintValues#3618062, constraintRanks#3618063, constraintIsActive#3618064, netPriceAmount#3618065, netPriceCurrencyCode#3618066, netPriceQuantity#3618067, netPriceQuantityUom#3618068, netPriceQuantityUomUuid#3618069, measurements#3618070, originalReplenishmentRunId#3618071L, optimizationGroups#3618072, shardId#3618073, sequenceId#3618051]
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#3618073), isnotnull(sequenceId#3618051), (shardId#3618073 = 0_5_10000000532), (sequenceId#3618051 = 6)]
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#3618029L, orderProposalItemId#3618030, supplierGroup#3618031, supplier#3618032, plant#3618033, deliveryDateTime#3618034, subrange#3618035, supplyingPlant#3618036, productGroup#3618037, product#3618038, orderDateTime#3618039, availabilityDateTime#3618040, nextAvailabilityDateTime#3618041, mrpController#3618042, sourceOfSupplyUuid#3618043, purchasingOrg#3618044, purchasingGroup#3618045, isFallbackOrderOnly#3618046, orderProposalHorizonGroupingId#3618047L, splitIndicator#3618048L, previousOrderProposal#3618049L, clusterId#3618050L, worklistShardItemId#3618052L, orderProposalItemGroupId#3618053, externalProductId#3618054, externalPlantId#3618055, logisticUnits#3618056, orderQuantityBaseUom#3618057, orderQuantityBaseUomUuid#3618058, minimumOrderQuantity#3618059, constraintLabels#3618060, constraintOperators#3618061, constraintValues#3618062, constraintRanks#3618063, constraintIsActive#3618064, netPriceAmount#3618065, netPriceCurrencyCode#3618066, netPriceQuantity#3618067, netPriceQuantityUom#3618068, netPriceQuantityUomUuid#3618069, measurements#3618070, originalReplenishmentRunId#3618071L, optimizationGroups#3618072, shardId#3618073, sequenceId#3618051]
(7) Filter [codegen id : 1]
Input [45]: [orderProposalId#3618029L, orderProposalItemId#3618030, supplierGroup#3618031, supplier#3618032, plant#3618033, deliveryDateTime#3618034, subrange#3618035, supplyingPlant#3618036, productGroup#3618037, product#3618038, orderDateTime#3618039, availabilityDateTime#3618040, nextAvailabilityDateTime#3618041, mrpController#3618042, sourceOfSupplyUuid#3618043, purchasingOrg#3618044, purchasingGroup#3618045, isFallbackOrderOnly#3618046, orderProposalHorizonGroupingId#3618047L, splitIndicator#3618048L, previousOrderProposal#3618049L, clusterId#3618050L, worklistShardItemId#3618052L, orderProposalItemGroupId#3618053, externalProductId#3618054, externalPlantId#3618055, logisticUnits#3618056, orderQuantityBaseUom#3618057, orderQuantityBaseUomUuid#3618058, minimumOrderQuantity#3618059, constraintLabels#3618060, constraintOperators#3618061, constraintValues#3618062, constraintRanks#3618063, constraintIsActive#3618064, netPriceAmount#3618065, netPriceCurrencyCode#3618066, netPriceQuantity#3618067, netPriceQuantityUom#3618068, netPriceQuantityUomUuid#3618069, measurements#3618070, originalReplenishmentRunId#3618071L, optimizationGroups#3618072, shardId#3618073, sequenceId#3618051]
Condition : ((isnotnull(availabilityDateTime#3618040) AND isnotnull(nextAvailabilityDateTime#3618041)) AND (nextAvailabilityDateTime#3618041 > availabilityDateTime#3618040))
(8) Project [codegen id : 1]
Output [44]: [orderProposalId#3618029L, orderProposalItemId#3618030, supplierGroup#3618031, supplier#3618032, plant#3618033, deliveryDateTime#3618034, subrange#3618035, supplyingPlant#3618036, productGroup#3618037, product#3618038, orderDateTime#3618039, availabilityDateTime#3618040, nextAvailabilityDateTime#3618041, mrpController#3618042, sourceOfSupplyUuid#3618043, purchasingOrg#3618044, purchasingGroup#3618045, isFallbackOrderOnly#3618046, orderProposalHorizonGroupingId#3618047L, splitIndicator#3618048L, previousOrderProposal#3618049L, clusterId#3618050L, sequenceId#3618051, worklistShardItemId#3618052L, orderProposalItemGroupId#3618053, externalProductId#3618054, externalPlantId#3618055, logisticUnits#3618056, orderQuantityBaseUom#3618057, orderQuantityBaseUomUuid#3618058, minimumOrderQuantity#3618059, constraintLabels#3618060, constraintOperators#3618061, constraintValues#3618062, constraintRanks#3618063, constraintIsActive#3618064, netPriceAmount#3618065, netPriceCurrencyCode#3618066, netPriceQuantity#3618067, netPriceQuantityUom#3618068, netPriceQuantityUomUuid#3618069, measurements#3618070, originalReplenishmentRunId#3618071L, optimizationGroups#3618072]
Input [45]: [orderProposalId#3618029L, orderProposalItemId#3618030, supplierGroup#3618031, supplier#3618032, plant#3618033, deliveryDateTime#3618034, subrange#3618035, supplyingPlant#3618036, productGroup#3618037, product#3618038, orderDateTime#3618039, availabilityDateTime#3618040, nextAvailabilityDateTime#3618041, mrpController#3618042, sourceOfSupplyUuid#3618043, purchasingOrg#3618044, purchasingGroup#3618045, isFallbackOrderOnly#3618046, orderProposalHorizonGroupingId#3618047L, splitIndicator#3618048L, previousOrderProposal#3618049L, clusterId#3618050L, worklistShardItemId#3618052L, orderProposalItemGroupId#3618053, externalProductId#3618054, externalPlantId#3618055, logisticUnits#3618056, orderQuantityBaseUom#3618057, orderQuantityBaseUomUuid#3618058, minimumOrderQuantity#3618059, constraintLabels#3618060, constraintOperators#3618061, constraintValues#3618062, constraintRanks#3618063, constraintIsActive#3618064, netPriceAmount#3618065, netPriceCurrencyCode#3618066, netPriceQuantity#3618067, netPriceQuantityUom#3618068, netPriceQuantityUomUuid#3618069, measurements#3618070, originalReplenishmentRunId#3618071L, optimizationGroups#3618072, shardId#3618073, sequenceId#3618051]
(9) Exchange
Input [44]: [orderProposalId#3618029L, orderProposalItemId#3618030, supplierGroup#3618031, supplier#3618032, plant#3618033, deliveryDateTime#3618034, subrange#3618035, supplyingPlant#3618036, productGroup#3618037, product#3618038, orderDateTime#3618039, availabilityDateTime#3618040, nextAvailabilityDateTime#3618041, mrpController#3618042, sourceOfSupplyUuid#3618043, purchasingOrg#3618044, purchasingGroup#3618045, isFallbackOrderOnly#3618046, orderProposalHorizonGroupingId#3618047L, splitIndicator#3618048L, previousOrderProposal#3618049L, clusterId#3618050L, sequenceId#3618051, worklistShardItemId#3618052L, orderProposalItemGroupId#3618053, externalProductId#3618054, externalPlantId#3618055, logisticUnits#3618056, orderQuantityBaseUom#3618057, orderQuantityBaseUomUuid#3618058, minimumOrderQuantity#3618059, constraintLabels#3618060, constraintOperators#3618061, constraintValues#3618062, constraintRanks#3618063, constraintIsActive#3618064, netPriceAmount#3618065, netPriceCurrencyCode#3618066, netPriceQuantity#3618067, netPriceQuantityUom#3618068, netPriceQuantityUomUuid#3618069, measurements#3618070, originalReplenishmentRunId#3618071L, optimizationGroups#3618072]
Arguments: hashpartitioning(worklistShardItemId#3618052L, 37), REPARTITION_BY_NUM, [plan_id=1036274]
(10) ShuffleQueryStage
Output [44]: [orderProposalId#3618029L, orderProposalItemId#3618030, supplierGroup#3618031, supplier#3618032, plant#3618033, deliveryDateTime#3618034, subrange#3618035, supplyingPlant#3618036, productGroup#3618037, product#3618038, orderDateTime#3618039, availabilityDateTime#3618040, nextAvailabilityDateTime#3618041, mrpController#3618042, sourceOfSupplyUuid#3618043, purchasingOrg#3618044, purchasingGroup#3618045, isFallbackOrderOnly#3618046, orderProposalHorizonGroupingId#3618047L, splitIndicator#3618048L, previousOrderProposal#3618049L, clusterId#3618050L, sequenceId#3618051, worklistShardItemId#3618052L, orderProposalItemGroupId#3618053, externalProductId#3618054, externalPlantId#3618055, logisticUnits#3618056, orderQuantityBaseUom#3618057, orderQuantityBaseUomUuid#3618058, minimumOrderQuantity#3618059, constraintLabels#3618060, constraintOperators#3618061, constraintValues#3618062, constraintRanks#3618063, constraintIsActive#3618064, netPriceAmount#3618065, netPriceCurrencyCode#3618066, netPriceQuantity#3618067, netPriceQuantityUom#3618068, netPriceQuantityUomUuid#3618069, measurements#3618070, originalReplenishmentRunId#3618071L, optimizationGroups#3618072]
Arguments: 0
(11) Project [codegen id : 2]
Output [45]: [0_5_10000000532 AS shardId#3617984, worklistShardItemId#3618052L, orderProposalId#3618029L, orderProposalItemId#3618030, orderProposalItemGroupId#3618053, originalReplenishmentRunId#3618071L, orderProposalHorizonGroupingId#3618047L, splitIndicator#3618048L, previousOrderProposal#3618049L, clusterId#3618050L, cast(sequenceId#3618051 as bigint) AS sequenceId#3617994L, sourceOfSupplyUuid#3618043, supplierGroup#3618031, supplier#3618032, subrange#3618035, product#3618038, plant#3618033, purchasingOrg#3618044, purchasingGroup#3618045, mrpController#3618042, orderDateTime#3618039, deliveryDateTime#3618034, availabilityDateTime#3618040, nextAvailabilityDateTime#3618041, isFallbackOrderOnly#3618046, orderQuantityBaseUom#3618057, orderQuantityBaseUomUuid#3618058, netPriceQuantity#3618067, netPriceQuantityUom#3618068, netPriceQuantityUomUuid#3618069, netPriceAmount#3618065, netPriceCurrencyCode#3618066, measurements#3618070, minimumOrderQuantity#3618059, constraintLabels#3618060, constraintOperators#3618061, constraintRanks#3618063, constraintValues#3618062, constraintIsActive#3618064, logisticUnits#3618056, optimizationGroups#3618072, externalProductId#3618054, externalPlantId#3618055, supplyingPlant#3618036, productGroup#3618037]
Input [44]: [orderProposalId#3618029L, orderProposalItemId#3618030, supplierGroup#3618031, supplier#3618032, plant#3618033, deliveryDateTime#3618034, subrange#3618035, supplyingPlant#3618036, productGroup#3618037, product#3618038, orderDateTime#3618039, availabilityDateTime#3618040, nextAvailabilityDateTime#3618041, mrpController#3618042, sourceOfSupplyUuid#3618043, purchasingOrg#3618044, purchasingGroup#3618045, isFallbackOrderOnly#3618046, orderProposalHorizonGroupingId#3618047L, splitIndicator#3618048L, previousOrderProposal#3618049L, clusterId#3618050L, sequenceId#3618051, worklistShardItemId#3618052L, orderProposalItemGroupId#3618053, externalProductId#3618054, externalPlantId#3618055, logisticUnits#3618056, orderQuantityBaseUom#3618057, orderQuantityBaseUomUuid#3618058, minimumOrderQuantity#3618059, constraintLabels#3618060, constraintOperators#3618061, constraintValues#3618062, constraintRanks#3618063, constraintIsActive#3618064, netPriceAmount#3618065, netPriceCurrencyCode#3618066, netPriceQuantity#3618067, netPriceQuantityUom#3618068, netPriceQuantityUomUuid#3618069, measurements#3618070, originalReplenishmentRunId#3618071L, optimizationGroups#3618072]
(12) ResultQueryStage
Output [45]: [shardId#3617984, worklistShardItemId#3618052L, orderProposalId#3618029L, orderProposalItemId#3618030, orderProposalItemGroupId#3618053, originalReplenishmentRunId#3618071L, orderProposalHorizonGroupingId#3618047L, splitIndicator#3618048L, previousOrderProposal#3618049L, clusterId#3618050L, sequenceId#3617994L, sourceOfSupplyUuid#3618043, supplierGroup#3618031, supplier#3618032, subrange#3618035, product#3618038, plant#3618033, purchasingOrg#3618044, purchasingGroup#3618045, mrpController#3618042, orderDateTime#3618039, deliveryDateTime#3618034, availabilityDateTime#3618040, nextAvailabilityDateTime#3618041, isFallbackOrderOnly#3618046, orderQuantityBaseUom#3618057, orderQuantityBaseUomUuid#3618058, netPriceQuantity#3618067, netPriceQuantityUom#3618068, netPriceQuantityUomUuid#3618069, netPriceAmount#3618065, netPriceCurrencyCode#3618066, measurements#3618070, minimumOrderQuantity#3618059, constraintLabels#3618060, constraintOperators#3618061, constraintRanks#3618063, constraintValues#3618062, constraintIsActive#3618064, logisticUnits#3618056, optimizationGroups#3618072, externalProductId#3618054, externalPlantId#3618055, supplyingPlant#3618036, productGroup#3618037]
Arguments: 1
(13) Filter
Input [45]: [orderProposalId#3618029L, orderProposalItemId#3618030, supplierGroup#3618031, supplier#3618032, plant#3618033, deliveryDateTime#3618034, subrange#3618035, supplyingPlant#3618036, productGroup#3618037, product#3618038, orderDateTime#3618039, availabilityDateTime#3618040, nextAvailabilityDateTime#3618041, mrpController#3618042, sourceOfSupplyUuid#3618043, purchasingOrg#3618044, purchasingGroup#3618045, isFallbackOrderOnly#3618046, orderProposalHorizonGroupingId#3618047L, splitIndicator#3618048L, previousOrderProposal#3618049L, clusterId#3618050L, worklistShardItemId#3618052L, orderProposalItemGroupId#3618053, externalProductId#3618054, externalPlantId#3618055, logisticUnits#3618056, orderQuantityBaseUom#3618057, orderQuantityBaseUomUuid#3618058, minimumOrderQuantity#3618059, constraintLabels#3618060, constraintOperators#3618061, constraintValues#3618062, constraintRanks#3618063, constraintIsActive#3618064, netPriceAmount#3618065, netPriceCurrencyCode#3618066, netPriceQuantity#3618067, netPriceQuantityUom#3618068, netPriceQuantityUomUuid#3618069, measurements#3618070, originalReplenishmentRunId#3618071L, optimizationGroups#3618072, shardId#3618073, sequenceId#3618051]
Condition : ((isnotnull(availabilityDateTime#3618040) AND isnotnull(nextAvailabilityDateTime#3618041)) AND (nextAvailabilityDateTime#3618041 > availabilityDateTime#3618040))
(14) Project
Output [44]: [orderProposalId#3618029L, orderProposalItemId#3618030, supplierGroup#3618031, supplier#3618032, plant#3618033, deliveryDateTime#3618034, subrange#3618035, supplyingPlant#3618036, productGroup#3618037, product#3618038, orderDateTime#3618039, availabilityDateTime#3618040, nextAvailabilityDateTime#3618041, mrpController#3618042, sourceOfSupplyUuid#3618043, purchasingOrg#3618044, purchasingGroup#3618045, isFallbackOrderOnly#3618046, orderProposalHorizonGroupingId#3618047L, splitIndicator#3618048L, previousOrderProposal#3618049L, clusterId#3618050L, sequenceId#3618051, worklistShardItemId#3618052L, orderProposalItemGroupId#3618053, externalProductId#3618054, externalPlantId#3618055, logisticUnits#3618056, orderQuantityBaseUom#3618057, orderQuantityBaseUomUuid#3618058, minimumOrderQuantity#3618059, constraintLabels#3618060, constraintOperators#3618061, constraintValues#3618062, constraintRanks#3618063, constraintIsActive#3618064, netPriceAmount#3618065, netPriceCurrencyCode#3618066, netPriceQuantity#3618067, netPriceQuantityUom#3618068, netPriceQuantityUomUuid#3618069, measurements#3618070, originalReplenishmentRunId#3618071L, optimizationGroups#3618072]
Input [45]: [orderProposalId#3618029L, orderProposalItemId#3618030, supplierGroup#3618031, supplier#3618032, plant#3618033, deliveryDateTime#3618034, subrange#3618035, supplyingPlant#3618036, productGroup#3618037, product#3618038, orderDateTime#3618039, availabilityDateTime#3618040, nextAvailabilityDateTime#3618041, mrpController#3618042, sourceOfSupplyUuid#3618043, purchasingOrg#3618044, purchasingGroup#3618045, isFallbackOrderOnly#3618046, orderProposalHorizonGroupingId#3618047L, splitIndicator#3618048L, previousOrderProposal#3618049L, clusterId#3618050L, worklistShardItemId#3618052L, orderProposalItemGroupId#3618053, externalProductId#3618054, externalPlantId#3618055, logisticUnits#3618056, orderQuantityBaseUom#3618057, orderQuantityBaseUomUuid#3618058, minimumOrderQuantity#3618059, constraintLabels#3618060, constraintOperators#3618061, constraintValues#3618062, constraintRanks#3618063, constraintIsActive#3618064, netPriceAmount#3618065, netPriceCurrencyCode#3618066, netPriceQuantity#3618067, netPriceQuantityUom#3618068, netPriceQuantityUomUuid#3618069, measurements#3618070, originalReplenishmentRunId#3618071L, optimizationGroups#3618072, shardId#3618073, sequenceId#3618051]
(15) Exchange
Input [44]: [orderProposalId#3618029L, orderProposalItemId#3618030, supplierGroup#3618031, supplier#3618032, plant#3618033, deliveryDateTime#3618034, subrange#3618035, supplyingPlant#3618036, productGroup#3618037, product#3618038, orderDateTime#3618039, availabilityDateTime#3618040, nextAvailabilityDateTime#3618041, mrpController#3618042, sourceOfSupplyUuid#3618043, purchasingOrg#3618044, purchasingGroup#3618045, isFallbackOrderOnly#3618046, orderProposalHorizonGroupingId#3618047L, splitIndicator#3618048L, previousOrderProposal#3618049L, clusterId#3618050L, sequenceId#3618051, worklistShardItemId#3618052L, orderProposalItemGroupId#3618053, externalProductId#3618054, externalPlantId#3618055, logisticUnits#3618056, orderQuantityBaseUom#3618057, orderQuantityBaseUomUuid#3618058, minimumOrderQuantity#3618059, constraintLabels#3618060, constraintOperators#3618061, constraintValues#3618062, constraintRanks#3618063, constraintIsActive#3618064, netPriceAmount#3618065, netPriceCurrencyCode#3618066, netPriceQuantity#3618067, netPriceQuantityUom#3618068, netPriceQuantityUomUuid#3618069, measurements#3618070, originalReplenishmentRunId#3618071L, optimizationGroups#3618072]
Arguments: hashpartitioning(worklistShardItemId#3618052L, 37), REPARTITION_BY_NUM, [plan_id=1036246]
(16) Project
Output [45]: [0_5_10000000532 AS shardId#3617984, worklistShardItemId#3618052L, orderProposalId#3618029L, orderProposalItemId#3618030, orderProposalItemGroupId#3618053, originalReplenishmentRunId#3618071L, orderProposalHorizonGroupingId#3618047L, splitIndicator#3618048L, previousOrderProposal#3618049L, clusterId#3618050L, cast(sequenceId#3618051 as bigint) AS sequenceId#3617994L, sourceOfSupplyUuid#3618043, supplierGroup#3618031, supplier#3618032, subrange#3618035, product#3618038, plant#3618033, purchasingOrg#3618044, purchasingGroup#3618045, mrpController#3618042, orderDateTime#3618039, deliveryDateTime#3618034, availabilityDateTime#3618040, nextAvailabilityDateTime#3618041, isFallbackOrderOnly#3618046, orderQuantityBaseUom#3618057, orderQuantityBaseUomUuid#3618058, netPriceQuantity#3618067, netPriceQuantityUom#3618068, netPriceQuantityUomUuid#3618069, netPriceAmount#3618065, netPriceCurrencyCode#3618066, measurements#3618070, minimumOrderQuantity#3618059, constraintLabels#3618060, constraintOperators#3618061, constraintRanks#3618063, constraintValues#3618062, constraintIsActive#3618064, logisticUnits#3618056, optimizationGroups#3618072, externalProductId#3618054, externalPlantId#3618055, supplyingPlant#3618036, productGroup#3618037]
Input [44]: [orderProposalId#3618029L, orderProposalItemId#3618030, supplierGroup#3618031, supplier#3618032, plant#3618033, deliveryDateTime#3618034, subrange#3618035, supplyingPlant#3618036, productGroup#3618037, product#3618038, orderDateTime#3618039, availabilityDateTime#3618040, nextAvailabilityDateTime#3618041, mrpController#3618042, sourceOfSupplyUuid#3618043, purchasingOrg#3618044, purchasingGroup#3618045, isFallbackOrderOnly#3618046, orderProposalHorizonGroupingId#3618047L, splitIndicator#3618048L, previousOrderProposal#3618049L, clusterId#3618050L, sequenceId#3618051, worklistShardItemId#3618052L, orderProposalItemGroupId#3618053, externalProductId#3618054, externalPlantId#3618055, logisticUnits#3618056, orderQuantityBaseUom#3618057, orderQuantityBaseUomUuid#3618058, minimumOrderQuantity#3618059, constraintLabels#3618060, constraintOperators#3618061, constraintValues#3618062, constraintRanks#3618063, constraintIsActive#3618064, netPriceAmount#3618065, netPriceCurrencyCode#3618066, netPriceQuantity#3618067, netPriceQuantityUom#3618068, netPriceQuantityUomUuid#3618069, measurements#3618070, originalReplenishmentRunId#3618071L, optimizationGroups#3618072]
(17) AdaptiveSparkPlan
Output [45]: [shardId#3617984, worklistShardItemId#3618052L, orderProposalId#3618029L, orderProposalItemId#3618030, orderProposalItemGroupId#3618053, originalReplenishmentRunId#3618071L, orderProposalHorizonGroupingId#3618047L, splitIndicator#3618048L, previousOrderProposal#3618049L, clusterId#3618050L, sequenceId#3617994L, sourceOfSupplyUuid#3618043, supplierGroup#3618031, supplier#3618032, subrange#3618035, product#3618038, plant#3618033, purchasingOrg#3618044, purchasingGroup#3618045, mrpController#3618042, orderDateTime#3618039, deliveryDateTime#3618034, availabilityDateTime#3618040, nextAvailabilityDateTime#3618041, isFallbackOrderOnly#3618046, orderQuantityBaseUom#3618057, orderQuantityBaseUomUuid#3618058, netPriceQuantity#3618067, netPriceQuantityUom#3618068, netPriceQuantityUomUuid#3618069, netPriceAmount#3618065, netPriceCurrencyCode#3618066, measurements#3618070, minimumOrderQuantity#3618059, constraintLabels#3618060, constraintOperators#3618061, constraintRanks#3618063, constraintValues#3618062, constraintIsActive#3618064, logisticUnits#3618056, optimizationGroups#3618072, externalProductId#3618054, externalPlantId#3618055, supplyingPlant#3618036, productGroup#3618037]
Arguments: isFinalPlan=true
(18) TableCacheQueryStage
Output [3]: [shardId#3617984, worklistShardItemId#3617985L, orderProposalId#3617986L]
Arguments: 0
(19) Filter [codegen id : 1]
Input [3]: [shardId#3617984, worklistShardItemId#3617985L, orderProposalId#3617986L]
Condition : (isnotnull(shardId#3617984) AND isnotnull(orderProposalId#3617986L))
(20) ObjectHashAggregate
Input [3]: [shardId#3617984, worklistShardItemId#3617985L, orderProposalId#3617986L]
Keys [2]: [shardId#3617984, orderProposalId#3617986L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#3617985L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#3622786]
Results [3]: [shardId#3617984, orderProposalId#3617986L, buf#3622787]
(21) Exchange
Input [3]: [shardId#3617984, orderProposalId#3617986L, buf#3622787]
Arguments: hashpartitioning(shardId#3617984, orderProposalId#3617986L, 37), ENSURE_REQUIREMENTS, [plan_id=1036692]
(22) ShuffleQueryStage [codegen id : 7]
Output [3]: [shardId#3617984, orderProposalId#3617986L, buf#3622787]
Arguments: 2
(23) AQEShuffleRead [codegen id : 7]
Input [3]: [shardId#3617984, orderProposalId#3617986L, buf#3622787]
Arguments: coalesced
(24) ObjectHashAggregate [codegen id : 7]
Input [3]: [shardId#3617984, orderProposalId#3617986L, buf#3622787]
Keys [2]: [shardId#3617984, orderProposalId#3617986L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#3617985L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#3617985L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#3621282]
Results [7]: [shardId#3617984, orderProposalId#3617986L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#3617985L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#3621282, lambdafunction(struct(worklistShardItemId, lambda x_12035#3621303.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_12035#3621303.quantityAfterProdPlantOptimization, qty, lambda x_12035#3621303.optimalQuantity), lambda x_12035#3621303, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#3621304, [] AS optimizationGroups#3621298, false AS isOptimal#3621283, 2026-08-31 14:36:38.635173 AS lastModified#3621302, [] AS optimizationInsights#3621299]
(25) Union
(26) Scan ExistingRDD [codegen id : 3]
Output [7]: [shardId#3621314, orderProposalId#3621315L, items#3621316, optimizationGroups#3621317, isOptimal#3621318, lastModified#3621319, optimizationInsights#3621320]
Arguments: [shardId#3621314, orderProposalId#3621315L, items#3621316, optimizationGroups#3621317, isOptimal#3621318, lastModified#3621319, optimizationInsights#3621320], MapPartitionsRDD[154432] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(27) Filter [codegen id : 3]
Input [7]: [shardId#3621314, orderProposalId#3621315L, items#3621316, optimizationGroups#3621317, isOptimal#3621318, lastModified#3621319, optimizationInsights#3621320]
Condition : (isnotnull(shardId#3621314) AND isnotnull(orderProposalId#3621315L))
(28) Project [codegen id : 3]
Output [3]: [shardId#3621314, orderProposalId#3621315L, lastModified#3621319]
Input [7]: [shardId#3621314, orderProposalId#3621315L, items#3621316, optimizationGroups#3621317, isOptimal#3621318, lastModified#3621319, optimizationInsights#3621320]
(29) InMemoryTableScan
Output [2]: [shardId#3621321, orderProposalId#3621323L]
Arguments: [shardId#3621321, orderProposalId#3621323L], [isnotnull(shardId#3621321), isnotnull(orderProposalId#3621323L)]
(30) InMemoryRelation
Arguments: [shardId#3621321, worklistShardItemId#3621322L, orderProposalId#3621323L, orderProposalItemId#3621324, orderProposalItemGroupId#3621325, originalReplenishmentRunId#3621326L, orderProposalHorizonGroupingId#3621327L, splitIndicator#3621328L, previousOrderProposal#3621329L, clusterId#3621330L, sequenceId#3621331L, sourceOfSupplyUuid#3621332, supplierGroup#3621333, supplier#3621334, subrange#3621335, product#3621336, plant#3621337, purchasingOrg#3621338, purchasingGroup#3621339, mrpController#3621340, orderDateTime#3621341, deliveryDateTime#3621342, availabilityDateTime#3621343, nextAvailabilityDateTime#3621344, isFallbackOrderOnly#3621345, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(31) TableCacheQueryStage
Output [2]: [shardId#3621321, orderProposalId#3621323L]
Arguments: 1
(32) Filter [codegen id : 2]
Input [2]: [shardId#3621321, orderProposalId#3621323L]
Condition : (isnotnull(shardId#3621321) AND isnotnull(orderProposalId#3621323L))
(33) HashAggregate [codegen id : 2]
Input [2]: [shardId#3621321, orderProposalId#3621323L]
Keys [2]: [shardId#3621321, orderProposalId#3621323L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#3621321, orderProposalId#3621323L]
(34) Exchange
Input [2]: [shardId#3621321, orderProposalId#3621323L]
Arguments: hashpartitioning(shardId#3621321, orderProposalId#3621323L, 37), ENSURE_REQUIREMENTS, [plan_id=1036728]
(35) ShuffleQueryStage
Output [2]: [shardId#3621321, orderProposalId#3621323L]
Arguments: 3
(36) AQEShuffleRead
Input [2]: [shardId#3621321, orderProposalId#3621323L]
Arguments: coalesced
(37) HashAggregate [codegen id : 4]
Input [2]: [shardId#3621321, orderProposalId#3621323L]
Keys [2]: [shardId#3621321, orderProposalId#3621323L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#3621321, orderProposalId#3621323L, 2026-08-31 14:36:38.635173 AS lastModified#3621418]
(38) Union
(39) HashAggregate [codegen id : 5]
Input [3]: [shardId#3621314, orderProposalId#3621315L, lastModified#3621319]
Keys [2]: [shardId#3621314, orderProposalId#3621315L]
Functions [1]: [partial_max(lastModified#3621319)]
Aggregate Attributes [1]: [max#3622788]
Results [3]: [shardId#3621314, orderProposalId#3621315L, max#3622789]
(40) Exchange
Input [3]: [shardId#3621314, orderProposalId#3621315L, max#3622789]
Arguments: hashpartitioning(shardId#3621314, orderProposalId#3621315L, 37), ENSURE_REQUIREMENTS, [plan_id=1036832]
(41) ShuffleQueryStage
Output [3]: [shardId#3621314, orderProposalId#3621315L, max#3622789]
Arguments: 4
(42) AQEShuffleRead
Input [3]: [shardId#3621314, orderProposalId#3621315L, max#3622789]
Arguments: coalesced
(43) HashAggregate [codegen id : 6]
Input [3]: [shardId#3621314, orderProposalId#3621315L, max#3622789]
Keys [2]: [shardId#3621314, orderProposalId#3621315L]
Functions [1]: [max(lastModified#3621319)]
Aggregate Attributes [1]: [max(lastModified#3621319)#3621313]
Results [3]: [shardId#3621314, orderProposalId#3621315L, max(lastModified#3621319)#3621313 AS lastModified#3621305]
(44) Filter [codegen id : 6]
Input [3]: [shardId#3621314, orderProposalId#3621315L, lastModified#3621305]
Condition : isnotnull(lastModified#3621305)
(45) BroadcastExchange
Input [3]: [shardId#3621314, orderProposalId#3621315L, lastModified#3621305]
Arguments: HashedRelationBroadcastMode(List(input[0, string, true], input[1, bigint, true], input[2, timestamp, false]),false), [plan_id=1036895]
(46) BroadcastQueryStage
Output [3]: [shardId#3621314, orderProposalId#3621315L, lastModified#3621305]
Arguments: 5
(47) BroadcastHashJoin [codegen id : 8]
Left keys [3]: [shardId#3621291, orderProposalId#3621292L, lastModified#3621296]
Right keys [3]: [shardId#3621314, orderProposalId#3621315L, lastModified#3621305]
Join type: Inner
Join condition: None
(48) Project [codegen id : 8]
Output [7]: [shardId#3621291, orderProposalId#3621292L, items#3621293, optimizationGroups#3621294, isOptimal#3621295, lastModified#3621296, optimizationInsights#3621297]
Input [10]: [shardId#3621291, orderProposalId#3621292L, items#3621293, optimizationGroups#3621294, isOptimal#3621295, lastModified#3621296, optimizationInsights#3621297, shardId#3621314, orderProposalId#3621315L, lastModified#3621305]
(49) DeserializeToObject
Input [7]: [shardId#3621291, orderProposalId#3621292L, items#3621293, optimizationGroups#3621294, isOptimal#3621295, lastModified#3621296, optimizationInsights#3621297]
Arguments: createexternalrow(invoke(shardId#3621291.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#3621292L)), 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#3621293, 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#3621294, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#3621295)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#3621296)), 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#3621297, 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#3621435: org.apache.spark.sql.Row
(50) ResultQueryStage
Output [1]: [obj#3621435]
Arguments: 6
(51) Scan ExistingRDD
Output [7]: [shardId#3621291, orderProposalId#3621292L, items#3621293, optimizationGroups#3621294, isOptimal#3621295, lastModified#3621296, optimizationInsights#3621297]
Arguments: [shardId#3621291, orderProposalId#3621292L, items#3621293, optimizationGroups#3621294, isOptimal#3621295, lastModified#3621296, optimizationInsights#3621297], MapPartitionsRDD[154432] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(52) Filter
Input [7]: [shardId#3621291, orderProposalId#3621292L, items#3621293, optimizationGroups#3621294, isOptimal#3621295, lastModified#3621296, optimizationInsights#3621297]
Condition : ((isnotnull(shardId#3621291) AND isnotnull(orderProposalId#3621292L)) AND isnotnull(lastModified#3621296))
(53) Filter
Input [3]: [shardId#3617984, worklistShardItemId#3617985L, orderProposalId#3617986L]
Condition : (isnotnull(shardId#3617984) AND isnotnull(orderProposalId#3617986L))
(54) ObjectHashAggregate
Input [3]: [shardId#3617984, worklistShardItemId#3617985L, orderProposalId#3617986L]
Keys [2]: [shardId#3617984, orderProposalId#3617986L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#3617985L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#3622786]
Results [3]: [shardId#3617984, orderProposalId#3617986L, buf#3622787]
(55) Exchange
Input [3]: [shardId#3617984, orderProposalId#3617986L, buf#3622787]
Arguments: hashpartitioning(shardId#3617984, orderProposalId#3617986L, 37), ENSURE_REQUIREMENTS, [plan_id=1036521]
(56) ObjectHashAggregate
Input [3]: [shardId#3617984, orderProposalId#3617986L, buf#3622787]
Keys [2]: [shardId#3617984, orderProposalId#3617986L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#3617985L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#3617985L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#3621282]
Results [7]: [shardId#3617984, orderProposalId#3617986L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#3617985L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#3621282, lambdafunction(struct(worklistShardItemId, lambda x_12035#3621303.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_12035#3621303.quantityAfterProdPlantOptimization, qty, lambda x_12035#3621303.optimalQuantity), lambda x_12035#3621303, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#3621304, [] AS optimizationGroups#3621298, false AS isOptimal#3621283, 2026-08-31 14:36:38.635173 AS lastModified#3621302, [] AS optimizationInsights#3621299]
(57) Union
(58) Exchange
Input [7]: [shardId#3621291, orderProposalId#3621292L, items#3621293, optimizationGroups#3621294, isOptimal#3621295, lastModified#3621296, optimizationInsights#3621297]
Arguments: hashpartitioning(shardId#3621291, orderProposalId#3621292L, lastModified#3621296, 37), ENSURE_REQUIREMENTS, [plan_id=1036534]
(59) Sort
Input [7]: [shardId#3621291, orderProposalId#3621292L, items#3621293, optimizationGroups#3621294, isOptimal#3621295, lastModified#3621296, optimizationInsights#3621297]
Arguments: [shardId#3621291 ASC NULLS FIRST, orderProposalId#3621292L ASC NULLS FIRST, lastModified#3621296 ASC NULLS FIRST], false, 0
(60) Filter
Input [2]: [shardId#3621321, orderProposalId#3621323L]
Condition : (isnotnull(shardId#3621321) AND isnotnull(orderProposalId#3621323L))
(61) HashAggregate
Input [2]: [shardId#3621321, orderProposalId#3621323L]
Keys [2]: [shardId#3621321, orderProposalId#3621323L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#3621321, orderProposalId#3621323L]
(62) Exchange
Input [2]: [shardId#3621321, orderProposalId#3621323L]
Arguments: hashpartitioning(shardId#3621321, orderProposalId#3621323L, 37), ENSURE_REQUIREMENTS, [plan_id=1036524]
(63) HashAggregate
Input [2]: [shardId#3621321, orderProposalId#3621323L]
Keys [2]: [shardId#3621321, orderProposalId#3621323L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#3621321, orderProposalId#3621323L, 2026-08-31 14:36:38.635173 AS lastModified#3621418]
(64) Union
(65) HashAggregate
Input [3]: [shardId#3621314, orderProposalId#3621315L, lastModified#3621319]
Keys [2]: [shardId#3621314, orderProposalId#3621315L]
Functions [1]: [partial_max(lastModified#3621319)]
Aggregate Attributes [1]: [max#3622788]
Results [3]: [shardId#3621314, orderProposalId#3621315L, max#3622789]
(66) Exchange
Input [3]: [shardId#3621314, orderProposalId#3621315L, max#3622789]
Arguments: hashpartitioning(shardId#3621314, orderProposalId#3621315L, 37), ENSURE_REQUIREMENTS, [plan_id=1036529]
(67) HashAggregate
Input [3]: [shardId#3621314, orderProposalId#3621315L, max#3622789]
Keys [2]: [shardId#3621314, orderProposalId#3621315L]
Functions [1]: [max(lastModified#3621319)]
Aggregate Attributes [1]: [max(lastModified#3621319)#3621313]
Results [3]: [shardId#3621314, orderProposalId#3621315L, max(lastModified#3621319)#3621313 AS lastModified#3621305]
(68) Filter
Input [3]: [shardId#3621314, orderProposalId#3621315L, lastModified#3621305]
Condition : isnotnull(lastModified#3621305)
(69) Exchange
Input [3]: [shardId#3621314, orderProposalId#3621315L, lastModified#3621305]
Arguments: hashpartitioning(shardId#3621314, orderProposalId#3621315L, lastModified#3621305, 37), ENSURE_REQUIREMENTS, [plan_id=1036535]
(70) Sort
Input [3]: [shardId#3621314, orderProposalId#3621315L, lastModified#3621305]
Arguments: [shardId#3621314 ASC NULLS FIRST, orderProposalId#3621315L ASC NULLS FIRST, lastModified#3621305 ASC NULLS FIRST], false, 0
(71) SortMergeJoin
Left keys [3]: [shardId#3621291, orderProposalId#3621292L, lastModified#3621296]
Right keys [3]: [shardId#3621314, orderProposalId#3621315L, lastModified#3621305]
Join type: Inner
Join condition: None
(72) Project
Output [7]: [shardId#3621291, orderProposalId#3621292L, items#3621293, optimizationGroups#3621294, isOptimal#3621295, lastModified#3621296, optimizationInsights#3621297]
Input [10]: [shardId#3621291, orderProposalId#3621292L, items#3621293, optimizationGroups#3621294, isOptimal#3621295, lastModified#3621296, optimizationInsights#3621297, shardId#3621314, orderProposalId#3621315L, lastModified#3621305]
(73) DeserializeToObject
Input [7]: [shardId#3621291, orderProposalId#3621292L, items#3621293, optimizationGroups#3621294, isOptimal#3621295, lastModified#3621296, optimizationInsights#3621297]
Arguments: createexternalrow(invoke(shardId#3621291.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#3621292L)), 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#3621293, 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#3621294, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#3621295)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#3621296)), 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#3621297, 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#3621435: org.apache.spark.sql.Row
(74) AdaptiveSparkPlan
Output [1]: [obj#3621435]
Arguments: isFinalPlan=true