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#3512989.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#3512990L)), 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#3512991, 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#3512992, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#3512993)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#3512994)), 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#3512995, 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#3513133: 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#3512989, orderProposalId#3512990L, items#3512991, optimizationGroups#3512992, isOptimal#3512993, lastModified#3512994, optimizationInsights#3512995]"];
4 [id="node4" labelType="html" label="<br><b>BroadcastHashJoin</b><br><br>" tooltip="BroadcastHashJoin [shardId#3512989, orderProposalId#3512990L, lastModified#3512994], [shardId#3513012, orderProposalId#3513013L, lastModified#3513003], 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#3512989) AND isnotnull(orderProposalId#3512990L)) AND isnotnull(lastModified#3512994))"];
8 [id="node8" labelType="html" label="<br><b>Scan ExistingRDD</b><br><br>" tooltip="Scan ExistingRDD[shardId#3512989,orderProposalId#3512990L,items#3512991,optimizationGroups#3512992,isOptimal#3512993,lastModified#3512994,optimizationInsights#3512995]"];
}
9 [id="node9" labelType="html" label="<br><b>ObjectHashAggregate</b><br><br>" tooltip="ObjectHashAggregate(keys=[shardId#3509062, orderProposalId#3509064L], functions=[collect_list(struct(worklistShardItemId, worklistShardItemId#3509063L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)])"];
10 [id="node10" labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 34<br>partition data size total (min, med, max (stageId: taskId))<br>2.2 MiB (50.4 KiB, 60.6 KiB, 113.9 KiB (driver))<br>number of coalesced partitions: 3" tooltip="AQEShuffleRead coalesced"];
11 [id="node11" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 60,755<br>data size total (min, med, max (stageId: taskId))<br>8.9 MiB (239.6 KiB, 245.4 KiB, 251.1 KiB (stage 326462.0: task 916898))<br>shuffle write time total (min, med, max (stageId: taskId))<br>89 ms (1 ms, 2 ms, 6 ms (stage 326462.0: task 916892))<br>number of partitions: 37<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>2.1 MiB (55.5 KiB, 56.8 KiB, 58.3 KiB (stage 326462.0: task 916898))" tooltip="Exchange hashpartitioning(shardId#3509062, orderProposalId#3509064L, 37), ENSURE_REQUIREMENTS, [plan_id=1006402]"];
12 [id="node12" labelType="html" label="<b>ObjectHashAggregate</b><br><br>number of output rows: 60,755<br>time in aggregation build total (min, med, max (stageId: taskId))<br>5.6 s (6 ms, 10 ms, 669 ms (stage 326462.0: task 916793))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 326462.0: task 916791))<br>number of sort fallback tasks: 37" tooltip="ObjectHashAggregate(keys=[shardId#3509062, orderProposalId#3509064L], functions=[partial_collect_list(struct(worklistShardItemId, worklistShardItemId#3509063L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)])"];
subgraph cluster13 {
isCluster="true";
id="cluster13";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n5.0 s (4 ms, 8 ms, 642 ms (stage 326462.0: task 916793))";
tooltip="WholeStageCodegen (1)";
14 [id="node14" labelType="html" label="<b>Filter</b><br><br>number of output rows: 111,276" tooltip="Filter (isnotnull(shardId#3509062) AND isnotnull(orderProposalId#3509064L))"];
}
15 [id="node15" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 111,276" tooltip="InMemoryTableScan [shardId#3509062, worklistShardItemId#3509063L, orderProposalId#3509064L], [isnotnull(shardId#3509062), isnotnull(orderProposalId#3509064L)]"];
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_2_10000000532 AS shardId#3509062, worklistShardItemId#3509202L, orderProposalId#3509179L, orderProposalItemId#3509180, orderProposalItemGroupId#3509203, originalReplenishmentRunId#3509221L, orderProposalHorizonGroupingId#3509197L, splitIndicator#3509198L, previousOrderProposal#3509199L, clusterId#3509200L, cast(sequenceId#3509201 as bigint) AS sequenceId#3509072L, sourceOfSupplyUuid#3509193, supplierGroup#3509181, supplier#3509182, subrange#3509185, product#3509188, plant#3509183, purchasingOrg#3509194, purchasingGroup#3509195, mrpController#3509192, orderDateTime#3509189, deliveryDateTime#3509184, availabilityDateTime#3509190, nextAvailabilityDateTime#3509191, isFallbackOrderOnly#3509196, ... 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#3509202L, 37), REPARTITION_BY_NUM, [plan_id=1005855]"];
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#3509179L, orderProposalItemId#3509180, supplierGroup#3509181, supplier#3509182, plant#3509183, deliveryDateTime#3509184, subrange#3509185, supplyingPlant#3509186, productGroup#3509187, product#3509188, orderDateTime#3509189, availabilityDateTime#3509190, nextAvailabilityDateTime#3509191, mrpController#3509192, sourceOfSupplyUuid#3509193, purchasingOrg#3509194, purchasingGroup#3509195, isFallbackOrderOnly#3509196, orderProposalHorizonGroupingId#3509197L, splitIndicator#3509198L, previousOrderProposal#3509199L, clusterId#3509200L, sequenceId#3509201, worklistShardItemId#3509202L, orderProposalItemGroupId#3509203, ... 19 more fields]"];
22 [id="node22" labelType="html" label="<br><b>Filter</b><br><br>" tooltip="Filter ((isnotnull(availabilityDateTime#3509190) AND isnotnull(nextAvailabilityDateTime#3509191)) AND (nextAvailabilityDateTime#3509191 > availabilityDateTime#3509190))"];
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#3509179L,orderProposalItemId#3509180,supplierGroup#3509181,supplier#3509182,plant#3509183,deliveryDateTime#3509184,subrange#3509185,supplyingPlant#3509186,productGroup#3509187,product#3509188,orderDateTime#3509189,availabilityDateTime#3509190,nextAvailabilityDateTime#3509191,mrpController#3509192,sourceOfSupplyUuid#3509193,purchasingOrg#3509194,purchasingGroup#3509195,isFallbackOrderOnly#3509196,orderProposalHorizonGroupingId#3509197L,splitIndicator#3509198L,previousOrderProposal#3509199L,clusterId#3509200L,worklistShardItemId#3509202L,orderProposalItemGroupId#3509203,externalProductId#3509204,... 20 more fields] Batched: true, DataFilters: [isnotnull(availabilityDateTime#3509190), isnotnull(nextAvailabilityDateTime#3509191), (nextAvail..., Format: Parquet, Location: PreparedDeltaFileIndex(1 paths)[hdlfs://7da5304c-1f57-47fa-b75a-0f0b4349c280.files.hdl.prod-eu20...., PartitionFilters: [isnotnull(shardId#3509223), isnotnull(sequenceId#3509201), (shardId#3509223 = 0_2_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: 2 ms<br>time to collect: 98 ms<br>number of output rows: 6,904<br>data size: 2.3 MiB" tooltip="BroadcastExchange HashedRelationBroadcastMode(List(input[0, string, true], input[1, bigint, true], input[2, timestamp, false]),false), [plan_id=1006617]"];
subgraph cluster26 {
isCluster="true";
id="cluster26";
label="WholeStageCodegen (6)\n \nduration: total (min, med, max (stageId: taskId))\n131 ms (28 ms, 31 ms, 42 ms (stage 326568.0: task 916952))";
tooltip="WholeStageCodegen (6)";
27 [id="node27" labelType="html" label="<b>Filter</b><br><br>number of output rows: 6,904" tooltip="Filter isnotnull(lastModified#3513003)"];
28 [id="node28" 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>123 ms (25 ms, 30 ms, 41 ms (stage 326568.0: task 916952))<br>peak memory total (min, med, max (stageId: taskId))<br>9.0 MiB (2.3 MiB, 2.3 MiB, 2.3 MiB (stage 326568.0: task 916951))<br>number of output rows: 6,904<br>number of sort fallback tasks: 0<br>avg hash probes per key (min, med, max (stageId: taskId)):<br>(1, 1, 1 (stage 326568.0: task 916951))" tooltip="HashAggregate(keys=[shardId#3513012, orderProposalId#3513013L], functions=[max(lastModified#3513017)])"];
}
29 [id="node29" labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 4<br>partition data size total (min, med, max (stageId: taskId))<br>241.1 KiB (51.3 KiB, 53.8 KiB, 83.9 KiB (driver))<br>number of coalesced partitions: 4" tooltip="AQEShuffleRead coalesced"];
30 [id="node30" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 6,904<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 6,904<br>local bytes read total (min, med, max (stageId: taskId))<br>111.6 KiB (21.6 KiB, 27.0 KiB, 39.8 KiB (stage 326568.0: task 916952))<br>merged fetch fallback count: 0<br>local blocks read: 701<br>remote merged chunks fetched: 0<br>remote blocks read: 704<br>data size total (min, med, max (stageId: taskId))<br>323.6 KiB (5.8 KiB, 6.0 KiB, 13.3 KiB (stage 326516.0: task 916948))<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>88 ms (0 ms, 1 ms, 4 ms (stage 326516.0: task 916932))<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 326568.0: task 916951))<br>remote bytes read total (min, med, max (stageId: taskId))<br>118.1 KiB (21.8 KiB, 29.8 KiB, 40.0 KiB (stage 326568.0: task 916952))<br>number of partitions: 37<br>remote reqs duration total (min, med, max (stageId: taskId))<br>28 ms (5 ms, 8 ms, 10 ms (stage 326568.0: task 916952))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>229.6 KiB (1824.0 B, 5.4 KiB, 5.5 KiB (stage 326516.0: task 916928))" tooltip="Exchange hashpartitioning(shardId#3513012, orderProposalId#3513013L, 37), ENSURE_REQUIREMENTS, [plan_id=1006554]"];
subgraph cluster31 {
isCluster="true";
id="cluster31";
label="WholeStageCodegen (5)\n \nduration: total (min, med, max (stageId: taskId))\n2.1 s (14 ms, 25 ms, 122 ms (stage 326516.0: task 916907))";
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>1.5 s (11 ms, 19 ms, 82 ms (stage 326516.0: task 916907))<br>peak memory total (min, med, max (stageId: taskId))<br>12.3 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 326516.0: task 916900))<br>number of output rows: 6,904<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#3513012, orderProposalId#3513013L], functions=[partial_max(lastModified#3513017)])"];
}
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))\n2.0 s (12 ms, 20 ms, 152 ms (stage 326516.0: task 916907))";
tooltip="WholeStageCodegen (3)";
35 [id="node35" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#3513012, orderProposalId#3513013L, lastModified#3513017]"];
36 [id="node36" labelType="html" label="<b>Filter</b><br><br>number of output rows: 4,709" tooltip="Filter (isnotnull(shardId#3513012) AND isnotnull(orderProposalId#3513013L))"];
37 [id="node37" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 4,709" tooltip="Scan ExistingRDD[shardId#3513012,orderProposalId#3513013L,items#3513014,optimizationGroups#3513015,isOptimal#3513016,lastModified#3513017,optimizationInsights#3513018]"];
}
subgraph cluster38 {
isCluster="true";
id="cluster38";
label="WholeStageCodegen (4)\n \nduration: total (min, med, max (stageId: taskId))\n273 ms (13 ms, 25 ms, 30 ms (stage 326516.0: task 916943))";
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>191 ms (11 ms, 15 ms, 23 ms (stage 326516.0: task 916940))<br>peak memory total (min, med, max (stageId: taskId))<br>3.0 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 326516.0: task 916941))<br>number of output rows: 2,195<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#3513019, orderProposalId#3513021L], functions=[])"];
}
40 [id="node40" labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 12<br>partition data size total (min, med, max (stageId: taskId))<br>872.5 KiB (53.0 KiB, 70.9 KiB, 114.3 KiB (driver))<br>number of coalesced partitions: 12" tooltip="AQEShuffleRead coalesced"];
41 [id="node41" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 60,755<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 60,755<br>local bytes read total (min, med, max (stageId: taskId))<br>414.2 KiB (26.2 KiB, 33.0 KiB, 52.5 KiB (stage 326516.0: task 916948))<br>merged fetch fallback count: 0<br>local blocks read: 680<br>remote merged chunks fetched: 0<br>remote blocks read: 689<br>data size total (min, med, max (stageId: taskId))<br>2.3 MiB (62.7 KiB, 64.1 KiB, 65.9 KiB (stage 326463.0: task 916885))<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>96 ms (1 ms, 2 ms, 22 ms (stage 326463.0: task 916883))<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 326516.0: task 916941))<br>remote bytes read total (min, med, max (stageId: taskId))<br>418.9 KiB (24.6 KiB, 34.4 KiB, 56.3 KiB (stage 326516.0: task 916948))<br>number of partitions: 37<br>remote reqs duration total (min, med, max (stageId: taskId))<br>57 ms (2 ms, 4 ms, 10 ms (stage 326516.0: task 916940))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>833.2 KiB (22.1 KiB, 22.5 KiB, 23.0 KiB (stage 326463.0: task 916885))" tooltip="Exchange hashpartitioning(shardId#3513019, orderProposalId#3513021L, 37), ENSURE_REQUIREMENTS, [plan_id=1006438]"];
subgraph cluster42 {
isCluster="true";
id="cluster42";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n604 ms (8 ms, 12 ms, 45 ms (stage 326463.0: task 916805))";
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>220 ms (3 ms, 5 ms, 13 ms (stage 326463.0: task 916801))<br>peak memory total (min, med, max (stageId: taskId))<br>9.3 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 326463.0: task 916809))<br>number of output rows: 60,755<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#3513019, orderProposalId#3513021L], functions=[])"];
44 [id="node44" labelType="html" label="<b>Filter</b><br><br>number of output rows: 111,276" tooltip="Filter (isnotnull(shardId#3513019) AND isnotnull(orderProposalId#3513021L))"];
}
45 [id="node45" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 111,276" tooltip="InMemoryTableScan [shardId#3513019, orderProposalId#3513021L], [isnotnull(shardId#3513019), isnotnull(orderProposalId#3513021L)]"];
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_2_10000000532 AS shardId#3509062, worklistShardItemId#3509202L, orderProposalId#3509179L, orderProposalItemId#3509180, orderProposalItemGroupId#3509203, originalReplenishmentRunId#3509221L, orderProposalHorizonGroupingId#3509197L, splitIndicator#3509198L, previousOrderProposal#3509199L, clusterId#3509200L, cast(sequenceId#3509201 as bigint) AS sequenceId#3509072L, sourceOfSupplyUuid#3509193, supplierGroup#3509181, supplier#3509182, subrange#3509185, product#3509188, plant#3509183, purchasingOrg#3509194, purchasingGroup#3509195, mrpController#3509192, orderDateTime#3509189, deliveryDateTime#3509184, availabilityDateTime#3509190, nextAvailabilityDateTime#3509191, isFallbackOrderOnly#3509196, ... 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=8.9 MiB, rowCount=6.08E+4)
: +- Exchange (21)
: +- ObjectHashAggregate (20)
: +- * Filter (19)
: +- TableCacheQueryStage (18), Statistics(sizeInBytes=128.2 MiB, rowCount=1.11E+5)
: +- InMemoryTableScan (3)
: +- InMemoryRelation (4)
: +- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=144.4 MiB, rowCount=1.11E+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.3 MiB, rowCount=6.90E+3)
+- BroadcastExchange (45)
+- * Filter (44)
+- * HashAggregate (43)
+- AQEShuffleRead (42)
+- ShuffleQueryStage (41), Statistics(sizeInBytes=323.6 KiB, rowCount=6.90E+3)
+- Exchange (40)
+- * HashAggregate (39)
+- Union (38)
:- * Project (28)
: +- * Filter (27)
: +- * Scan ExistingRDD (26)
+- * HashAggregate (37)
+- AQEShuffleRead (36)
+- ShuffleQueryStage (35), Statistics(sizeInBytes=2.3 MiB, rowCount=6.08E+4)
+- Exchange (34)
+- * HashAggregate (33)
+- * Filter (32)
+- TableCacheQueryStage (31), Statistics(sizeInBytes=128.2 MiB, rowCount=1.11E+5)
+- InMemoryTableScan (29)
+- InMemoryRelation (30)
+- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=144.4 MiB, rowCount=1.11E+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=144.4 MiB, rowCount=1.11E+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=144.4 MiB, rowCount=1.11E+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#3512989, orderProposalId#3512990L, items#3512991, optimizationGroups#3512992, isOptimal#3512993, lastModified#3512994, optimizationInsights#3512995]
Arguments: [shardId#3512989, orderProposalId#3512990L, items#3512991, optimizationGroups#3512992, isOptimal#3512993, lastModified#3512994, optimizationInsights#3512995], MapPartitionsRDD[149133] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(2) Filter [codegen id : 7]
Input [7]: [shardId#3512989, orderProposalId#3512990L, items#3512991, optimizationGroups#3512992, isOptimal#3512993, lastModified#3512994, optimizationInsights#3512995]
Condition : ((isnotnull(shardId#3512989) AND isnotnull(orderProposalId#3512990L)) AND isnotnull(lastModified#3512994))
(3) InMemoryTableScan
Output [3]: [shardId#3509062, worklistShardItemId#3509063L, orderProposalId#3509064L]
Arguments: [shardId#3509062, worklistShardItemId#3509063L, orderProposalId#3509064L], [isnotnull(shardId#3509062), isnotnull(orderProposalId#3509064L)]
(4) InMemoryRelation
Arguments: [shardId#3509062, worklistShardItemId#3509063L, orderProposalId#3509064L, orderProposalItemId#3509065, orderProposalItemGroupId#3509066, originalReplenishmentRunId#3509067L, orderProposalHorizonGroupingId#3509068L, splitIndicator#3509069L, previousOrderProposal#3509070L, clusterId#3509071L, sequenceId#3509072L, sourceOfSupplyUuid#3509073, supplierGroup#3509074, supplier#3509075, subrange#3509076, product#3509077, plant#3509078, purchasingOrg#3509079, purchasingGroup#3509080, mrpController#3509081, orderDateTime#3509082, deliveryDateTime#3509083, availabilityDateTime#3509084, nextAvailabilityDateTime#3509085, isFallbackOrderOnly#3509086, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(5) Scan parquet
Output [45]: [orderProposalId#3509179L, orderProposalItemId#3509180, supplierGroup#3509181, supplier#3509182, plant#3509183, deliveryDateTime#3509184, subrange#3509185, supplyingPlant#3509186, productGroup#3509187, product#3509188, orderDateTime#3509189, availabilityDateTime#3509190, nextAvailabilityDateTime#3509191, mrpController#3509192, sourceOfSupplyUuid#3509193, purchasingOrg#3509194, purchasingGroup#3509195, isFallbackOrderOnly#3509196, orderProposalHorizonGroupingId#3509197L, splitIndicator#3509198L, previousOrderProposal#3509199L, clusterId#3509200L, worklistShardItemId#3509202L, orderProposalItemGroupId#3509203, externalProductId#3509204, externalPlantId#3509205, logisticUnits#3509206, orderQuantityBaseUom#3509207, orderQuantityBaseUomUuid#3509208, minimumOrderQuantity#3509209, constraintLabels#3509210, constraintOperators#3509211, constraintValues#3509212, constraintRanks#3509213, constraintIsActive#3509214, netPriceAmount#3509215, netPriceCurrencyCode#3509216, netPriceQuantity#3509217, netPriceQuantityUom#3509218, netPriceQuantityUomUuid#3509219, measurements#3509220, originalReplenishmentRunId#3509221L, optimizationGroups#3509222, shardId#3509223, sequenceId#3509201]
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#3509223), isnotnull(sequenceId#3509201), (shardId#3509223 = 0_2_10000000532), (sequenceId#3509201 = 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#3509179L, orderProposalItemId#3509180, supplierGroup#3509181, supplier#3509182, plant#3509183, deliveryDateTime#3509184, subrange#3509185, supplyingPlant#3509186, productGroup#3509187, product#3509188, orderDateTime#3509189, availabilityDateTime#3509190, nextAvailabilityDateTime#3509191, mrpController#3509192, sourceOfSupplyUuid#3509193, purchasingOrg#3509194, purchasingGroup#3509195, isFallbackOrderOnly#3509196, orderProposalHorizonGroupingId#3509197L, splitIndicator#3509198L, previousOrderProposal#3509199L, clusterId#3509200L, worklistShardItemId#3509202L, orderProposalItemGroupId#3509203, externalProductId#3509204, externalPlantId#3509205, logisticUnits#3509206, orderQuantityBaseUom#3509207, orderQuantityBaseUomUuid#3509208, minimumOrderQuantity#3509209, constraintLabels#3509210, constraintOperators#3509211, constraintValues#3509212, constraintRanks#3509213, constraintIsActive#3509214, netPriceAmount#3509215, netPriceCurrencyCode#3509216, netPriceQuantity#3509217, netPriceQuantityUom#3509218, netPriceQuantityUomUuid#3509219, measurements#3509220, originalReplenishmentRunId#3509221L, optimizationGroups#3509222, shardId#3509223, sequenceId#3509201]
(7) Filter [codegen id : 1]
Input [45]: [orderProposalId#3509179L, orderProposalItemId#3509180, supplierGroup#3509181, supplier#3509182, plant#3509183, deliveryDateTime#3509184, subrange#3509185, supplyingPlant#3509186, productGroup#3509187, product#3509188, orderDateTime#3509189, availabilityDateTime#3509190, nextAvailabilityDateTime#3509191, mrpController#3509192, sourceOfSupplyUuid#3509193, purchasingOrg#3509194, purchasingGroup#3509195, isFallbackOrderOnly#3509196, orderProposalHorizonGroupingId#3509197L, splitIndicator#3509198L, previousOrderProposal#3509199L, clusterId#3509200L, worklistShardItemId#3509202L, orderProposalItemGroupId#3509203, externalProductId#3509204, externalPlantId#3509205, logisticUnits#3509206, orderQuantityBaseUom#3509207, orderQuantityBaseUomUuid#3509208, minimumOrderQuantity#3509209, constraintLabels#3509210, constraintOperators#3509211, constraintValues#3509212, constraintRanks#3509213, constraintIsActive#3509214, netPriceAmount#3509215, netPriceCurrencyCode#3509216, netPriceQuantity#3509217, netPriceQuantityUom#3509218, netPriceQuantityUomUuid#3509219, measurements#3509220, originalReplenishmentRunId#3509221L, optimizationGroups#3509222, shardId#3509223, sequenceId#3509201]
Condition : ((isnotnull(availabilityDateTime#3509190) AND isnotnull(nextAvailabilityDateTime#3509191)) AND (nextAvailabilityDateTime#3509191 > availabilityDateTime#3509190))
(8) Project [codegen id : 1]
Output [44]: [orderProposalId#3509179L, orderProposalItemId#3509180, supplierGroup#3509181, supplier#3509182, plant#3509183, deliveryDateTime#3509184, subrange#3509185, supplyingPlant#3509186, productGroup#3509187, product#3509188, orderDateTime#3509189, availabilityDateTime#3509190, nextAvailabilityDateTime#3509191, mrpController#3509192, sourceOfSupplyUuid#3509193, purchasingOrg#3509194, purchasingGroup#3509195, isFallbackOrderOnly#3509196, orderProposalHorizonGroupingId#3509197L, splitIndicator#3509198L, previousOrderProposal#3509199L, clusterId#3509200L, sequenceId#3509201, worklistShardItemId#3509202L, orderProposalItemGroupId#3509203, externalProductId#3509204, externalPlantId#3509205, logisticUnits#3509206, orderQuantityBaseUom#3509207, orderQuantityBaseUomUuid#3509208, minimumOrderQuantity#3509209, constraintLabels#3509210, constraintOperators#3509211, constraintValues#3509212, constraintRanks#3509213, constraintIsActive#3509214, netPriceAmount#3509215, netPriceCurrencyCode#3509216, netPriceQuantity#3509217, netPriceQuantityUom#3509218, netPriceQuantityUomUuid#3509219, measurements#3509220, originalReplenishmentRunId#3509221L, optimizationGroups#3509222]
Input [45]: [orderProposalId#3509179L, orderProposalItemId#3509180, supplierGroup#3509181, supplier#3509182, plant#3509183, deliveryDateTime#3509184, subrange#3509185, supplyingPlant#3509186, productGroup#3509187, product#3509188, orderDateTime#3509189, availabilityDateTime#3509190, nextAvailabilityDateTime#3509191, mrpController#3509192, sourceOfSupplyUuid#3509193, purchasingOrg#3509194, purchasingGroup#3509195, isFallbackOrderOnly#3509196, orderProposalHorizonGroupingId#3509197L, splitIndicator#3509198L, previousOrderProposal#3509199L, clusterId#3509200L, worklistShardItemId#3509202L, orderProposalItemGroupId#3509203, externalProductId#3509204, externalPlantId#3509205, logisticUnits#3509206, orderQuantityBaseUom#3509207, orderQuantityBaseUomUuid#3509208, minimumOrderQuantity#3509209, constraintLabels#3509210, constraintOperators#3509211, constraintValues#3509212, constraintRanks#3509213, constraintIsActive#3509214, netPriceAmount#3509215, netPriceCurrencyCode#3509216, netPriceQuantity#3509217, netPriceQuantityUom#3509218, netPriceQuantityUomUuid#3509219, measurements#3509220, originalReplenishmentRunId#3509221L, optimizationGroups#3509222, shardId#3509223, sequenceId#3509201]
(9) Exchange
Input [44]: [orderProposalId#3509179L, orderProposalItemId#3509180, supplierGroup#3509181, supplier#3509182, plant#3509183, deliveryDateTime#3509184, subrange#3509185, supplyingPlant#3509186, productGroup#3509187, product#3509188, orderDateTime#3509189, availabilityDateTime#3509190, nextAvailabilityDateTime#3509191, mrpController#3509192, sourceOfSupplyUuid#3509193, purchasingOrg#3509194, purchasingGroup#3509195, isFallbackOrderOnly#3509196, orderProposalHorizonGroupingId#3509197L, splitIndicator#3509198L, previousOrderProposal#3509199L, clusterId#3509200L, sequenceId#3509201, worklistShardItemId#3509202L, orderProposalItemGroupId#3509203, externalProductId#3509204, externalPlantId#3509205, logisticUnits#3509206, orderQuantityBaseUom#3509207, orderQuantityBaseUomUuid#3509208, minimumOrderQuantity#3509209, constraintLabels#3509210, constraintOperators#3509211, constraintValues#3509212, constraintRanks#3509213, constraintIsActive#3509214, netPriceAmount#3509215, netPriceCurrencyCode#3509216, netPriceQuantity#3509217, netPriceQuantityUom#3509218, netPriceQuantityUomUuid#3509219, measurements#3509220, originalReplenishmentRunId#3509221L, optimizationGroups#3509222]
Arguments: hashpartitioning(worklistShardItemId#3509202L, 37), REPARTITION_BY_NUM, [plan_id=1005855]
(10) ShuffleQueryStage
Output [44]: [orderProposalId#3509179L, orderProposalItemId#3509180, supplierGroup#3509181, supplier#3509182, plant#3509183, deliveryDateTime#3509184, subrange#3509185, supplyingPlant#3509186, productGroup#3509187, product#3509188, orderDateTime#3509189, availabilityDateTime#3509190, nextAvailabilityDateTime#3509191, mrpController#3509192, sourceOfSupplyUuid#3509193, purchasingOrg#3509194, purchasingGroup#3509195, isFallbackOrderOnly#3509196, orderProposalHorizonGroupingId#3509197L, splitIndicator#3509198L, previousOrderProposal#3509199L, clusterId#3509200L, sequenceId#3509201, worklistShardItemId#3509202L, orderProposalItemGroupId#3509203, externalProductId#3509204, externalPlantId#3509205, logisticUnits#3509206, orderQuantityBaseUom#3509207, orderQuantityBaseUomUuid#3509208, minimumOrderQuantity#3509209, constraintLabels#3509210, constraintOperators#3509211, constraintValues#3509212, constraintRanks#3509213, constraintIsActive#3509214, netPriceAmount#3509215, netPriceCurrencyCode#3509216, netPriceQuantity#3509217, netPriceQuantityUom#3509218, netPriceQuantityUomUuid#3509219, measurements#3509220, originalReplenishmentRunId#3509221L, optimizationGroups#3509222]
Arguments: 0
(11) Project [codegen id : 2]
Output [45]: [0_2_10000000532 AS shardId#3509062, worklistShardItemId#3509202L, orderProposalId#3509179L, orderProposalItemId#3509180, orderProposalItemGroupId#3509203, originalReplenishmentRunId#3509221L, orderProposalHorizonGroupingId#3509197L, splitIndicator#3509198L, previousOrderProposal#3509199L, clusterId#3509200L, cast(sequenceId#3509201 as bigint) AS sequenceId#3509072L, sourceOfSupplyUuid#3509193, supplierGroup#3509181, supplier#3509182, subrange#3509185, product#3509188, plant#3509183, purchasingOrg#3509194, purchasingGroup#3509195, mrpController#3509192, orderDateTime#3509189, deliveryDateTime#3509184, availabilityDateTime#3509190, nextAvailabilityDateTime#3509191, isFallbackOrderOnly#3509196, orderQuantityBaseUom#3509207, orderQuantityBaseUomUuid#3509208, netPriceQuantity#3509217, netPriceQuantityUom#3509218, netPriceQuantityUomUuid#3509219, netPriceAmount#3509215, netPriceCurrencyCode#3509216, measurements#3509220, minimumOrderQuantity#3509209, constraintLabels#3509210, constraintOperators#3509211, constraintRanks#3509213, constraintValues#3509212, constraintIsActive#3509214, logisticUnits#3509206, optimizationGroups#3509222, externalProductId#3509204, externalPlantId#3509205, supplyingPlant#3509186, productGroup#3509187]
Input [44]: [orderProposalId#3509179L, orderProposalItemId#3509180, supplierGroup#3509181, supplier#3509182, plant#3509183, deliveryDateTime#3509184, subrange#3509185, supplyingPlant#3509186, productGroup#3509187, product#3509188, orderDateTime#3509189, availabilityDateTime#3509190, nextAvailabilityDateTime#3509191, mrpController#3509192, sourceOfSupplyUuid#3509193, purchasingOrg#3509194, purchasingGroup#3509195, isFallbackOrderOnly#3509196, orderProposalHorizonGroupingId#3509197L, splitIndicator#3509198L, previousOrderProposal#3509199L, clusterId#3509200L, sequenceId#3509201, worklistShardItemId#3509202L, orderProposalItemGroupId#3509203, externalProductId#3509204, externalPlantId#3509205, logisticUnits#3509206, orderQuantityBaseUom#3509207, orderQuantityBaseUomUuid#3509208, minimumOrderQuantity#3509209, constraintLabels#3509210, constraintOperators#3509211, constraintValues#3509212, constraintRanks#3509213, constraintIsActive#3509214, netPriceAmount#3509215, netPriceCurrencyCode#3509216, netPriceQuantity#3509217, netPriceQuantityUom#3509218, netPriceQuantityUomUuid#3509219, measurements#3509220, originalReplenishmentRunId#3509221L, optimizationGroups#3509222]
(12) ResultQueryStage
Output [45]: [shardId#3509062, worklistShardItemId#3509202L, orderProposalId#3509179L, orderProposalItemId#3509180, orderProposalItemGroupId#3509203, originalReplenishmentRunId#3509221L, orderProposalHorizonGroupingId#3509197L, splitIndicator#3509198L, previousOrderProposal#3509199L, clusterId#3509200L, sequenceId#3509072L, sourceOfSupplyUuid#3509193, supplierGroup#3509181, supplier#3509182, subrange#3509185, product#3509188, plant#3509183, purchasingOrg#3509194, purchasingGroup#3509195, mrpController#3509192, orderDateTime#3509189, deliveryDateTime#3509184, availabilityDateTime#3509190, nextAvailabilityDateTime#3509191, isFallbackOrderOnly#3509196, orderQuantityBaseUom#3509207, orderQuantityBaseUomUuid#3509208, netPriceQuantity#3509217, netPriceQuantityUom#3509218, netPriceQuantityUomUuid#3509219, netPriceAmount#3509215, netPriceCurrencyCode#3509216, measurements#3509220, minimumOrderQuantity#3509209, constraintLabels#3509210, constraintOperators#3509211, constraintRanks#3509213, constraintValues#3509212, constraintIsActive#3509214, logisticUnits#3509206, optimizationGroups#3509222, externalProductId#3509204, externalPlantId#3509205, supplyingPlant#3509186, productGroup#3509187]
Arguments: 1
(13) Filter
Input [45]: [orderProposalId#3509179L, orderProposalItemId#3509180, supplierGroup#3509181, supplier#3509182, plant#3509183, deliveryDateTime#3509184, subrange#3509185, supplyingPlant#3509186, productGroup#3509187, product#3509188, orderDateTime#3509189, availabilityDateTime#3509190, nextAvailabilityDateTime#3509191, mrpController#3509192, sourceOfSupplyUuid#3509193, purchasingOrg#3509194, purchasingGroup#3509195, isFallbackOrderOnly#3509196, orderProposalHorizonGroupingId#3509197L, splitIndicator#3509198L, previousOrderProposal#3509199L, clusterId#3509200L, worklistShardItemId#3509202L, orderProposalItemGroupId#3509203, externalProductId#3509204, externalPlantId#3509205, logisticUnits#3509206, orderQuantityBaseUom#3509207, orderQuantityBaseUomUuid#3509208, minimumOrderQuantity#3509209, constraintLabels#3509210, constraintOperators#3509211, constraintValues#3509212, constraintRanks#3509213, constraintIsActive#3509214, netPriceAmount#3509215, netPriceCurrencyCode#3509216, netPriceQuantity#3509217, netPriceQuantityUom#3509218, netPriceQuantityUomUuid#3509219, measurements#3509220, originalReplenishmentRunId#3509221L, optimizationGroups#3509222, shardId#3509223, sequenceId#3509201]
Condition : ((isnotnull(availabilityDateTime#3509190) AND isnotnull(nextAvailabilityDateTime#3509191)) AND (nextAvailabilityDateTime#3509191 > availabilityDateTime#3509190))
(14) Project
Output [44]: [orderProposalId#3509179L, orderProposalItemId#3509180, supplierGroup#3509181, supplier#3509182, plant#3509183, deliveryDateTime#3509184, subrange#3509185, supplyingPlant#3509186, productGroup#3509187, product#3509188, orderDateTime#3509189, availabilityDateTime#3509190, nextAvailabilityDateTime#3509191, mrpController#3509192, sourceOfSupplyUuid#3509193, purchasingOrg#3509194, purchasingGroup#3509195, isFallbackOrderOnly#3509196, orderProposalHorizonGroupingId#3509197L, splitIndicator#3509198L, previousOrderProposal#3509199L, clusterId#3509200L, sequenceId#3509201, worklistShardItemId#3509202L, orderProposalItemGroupId#3509203, externalProductId#3509204, externalPlantId#3509205, logisticUnits#3509206, orderQuantityBaseUom#3509207, orderQuantityBaseUomUuid#3509208, minimumOrderQuantity#3509209, constraintLabels#3509210, constraintOperators#3509211, constraintValues#3509212, constraintRanks#3509213, constraintIsActive#3509214, netPriceAmount#3509215, netPriceCurrencyCode#3509216, netPriceQuantity#3509217, netPriceQuantityUom#3509218, netPriceQuantityUomUuid#3509219, measurements#3509220, originalReplenishmentRunId#3509221L, optimizationGroups#3509222]
Input [45]: [orderProposalId#3509179L, orderProposalItemId#3509180, supplierGroup#3509181, supplier#3509182, plant#3509183, deliveryDateTime#3509184, subrange#3509185, supplyingPlant#3509186, productGroup#3509187, product#3509188, orderDateTime#3509189, availabilityDateTime#3509190, nextAvailabilityDateTime#3509191, mrpController#3509192, sourceOfSupplyUuid#3509193, purchasingOrg#3509194, purchasingGroup#3509195, isFallbackOrderOnly#3509196, orderProposalHorizonGroupingId#3509197L, splitIndicator#3509198L, previousOrderProposal#3509199L, clusterId#3509200L, worklistShardItemId#3509202L, orderProposalItemGroupId#3509203, externalProductId#3509204, externalPlantId#3509205, logisticUnits#3509206, orderQuantityBaseUom#3509207, orderQuantityBaseUomUuid#3509208, minimumOrderQuantity#3509209, constraintLabels#3509210, constraintOperators#3509211, constraintValues#3509212, constraintRanks#3509213, constraintIsActive#3509214, netPriceAmount#3509215, netPriceCurrencyCode#3509216, netPriceQuantity#3509217, netPriceQuantityUom#3509218, netPriceQuantityUomUuid#3509219, measurements#3509220, originalReplenishmentRunId#3509221L, optimizationGroups#3509222, shardId#3509223, sequenceId#3509201]
(15) Exchange
Input [44]: [orderProposalId#3509179L, orderProposalItemId#3509180, supplierGroup#3509181, supplier#3509182, plant#3509183, deliveryDateTime#3509184, subrange#3509185, supplyingPlant#3509186, productGroup#3509187, product#3509188, orderDateTime#3509189, availabilityDateTime#3509190, nextAvailabilityDateTime#3509191, mrpController#3509192, sourceOfSupplyUuid#3509193, purchasingOrg#3509194, purchasingGroup#3509195, isFallbackOrderOnly#3509196, orderProposalHorizonGroupingId#3509197L, splitIndicator#3509198L, previousOrderProposal#3509199L, clusterId#3509200L, sequenceId#3509201, worklistShardItemId#3509202L, orderProposalItemGroupId#3509203, externalProductId#3509204, externalPlantId#3509205, logisticUnits#3509206, orderQuantityBaseUom#3509207, orderQuantityBaseUomUuid#3509208, minimumOrderQuantity#3509209, constraintLabels#3509210, constraintOperators#3509211, constraintValues#3509212, constraintRanks#3509213, constraintIsActive#3509214, netPriceAmount#3509215, netPriceCurrencyCode#3509216, netPriceQuantity#3509217, netPriceQuantityUom#3509218, netPriceQuantityUomUuid#3509219, measurements#3509220, originalReplenishmentRunId#3509221L, optimizationGroups#3509222]
Arguments: hashpartitioning(worklistShardItemId#3509202L, 37), REPARTITION_BY_NUM, [plan_id=1005827]
(16) Project
Output [45]: [0_2_10000000532 AS shardId#3509062, worklistShardItemId#3509202L, orderProposalId#3509179L, orderProposalItemId#3509180, orderProposalItemGroupId#3509203, originalReplenishmentRunId#3509221L, orderProposalHorizonGroupingId#3509197L, splitIndicator#3509198L, previousOrderProposal#3509199L, clusterId#3509200L, cast(sequenceId#3509201 as bigint) AS sequenceId#3509072L, sourceOfSupplyUuid#3509193, supplierGroup#3509181, supplier#3509182, subrange#3509185, product#3509188, plant#3509183, purchasingOrg#3509194, purchasingGroup#3509195, mrpController#3509192, orderDateTime#3509189, deliveryDateTime#3509184, availabilityDateTime#3509190, nextAvailabilityDateTime#3509191, isFallbackOrderOnly#3509196, orderQuantityBaseUom#3509207, orderQuantityBaseUomUuid#3509208, netPriceQuantity#3509217, netPriceQuantityUom#3509218, netPriceQuantityUomUuid#3509219, netPriceAmount#3509215, netPriceCurrencyCode#3509216, measurements#3509220, minimumOrderQuantity#3509209, constraintLabels#3509210, constraintOperators#3509211, constraintRanks#3509213, constraintValues#3509212, constraintIsActive#3509214, logisticUnits#3509206, optimizationGroups#3509222, externalProductId#3509204, externalPlantId#3509205, supplyingPlant#3509186, productGroup#3509187]
Input [44]: [orderProposalId#3509179L, orderProposalItemId#3509180, supplierGroup#3509181, supplier#3509182, plant#3509183, deliveryDateTime#3509184, subrange#3509185, supplyingPlant#3509186, productGroup#3509187, product#3509188, orderDateTime#3509189, availabilityDateTime#3509190, nextAvailabilityDateTime#3509191, mrpController#3509192, sourceOfSupplyUuid#3509193, purchasingOrg#3509194, purchasingGroup#3509195, isFallbackOrderOnly#3509196, orderProposalHorizonGroupingId#3509197L, splitIndicator#3509198L, previousOrderProposal#3509199L, clusterId#3509200L, sequenceId#3509201, worklistShardItemId#3509202L, orderProposalItemGroupId#3509203, externalProductId#3509204, externalPlantId#3509205, logisticUnits#3509206, orderQuantityBaseUom#3509207, orderQuantityBaseUomUuid#3509208, minimumOrderQuantity#3509209, constraintLabels#3509210, constraintOperators#3509211, constraintValues#3509212, constraintRanks#3509213, constraintIsActive#3509214, netPriceAmount#3509215, netPriceCurrencyCode#3509216, netPriceQuantity#3509217, netPriceQuantityUom#3509218, netPriceQuantityUomUuid#3509219, measurements#3509220, originalReplenishmentRunId#3509221L, optimizationGroups#3509222]
(17) AdaptiveSparkPlan
Output [45]: [shardId#3509062, worklistShardItemId#3509202L, orderProposalId#3509179L, orderProposalItemId#3509180, orderProposalItemGroupId#3509203, originalReplenishmentRunId#3509221L, orderProposalHorizonGroupingId#3509197L, splitIndicator#3509198L, previousOrderProposal#3509199L, clusterId#3509200L, sequenceId#3509072L, sourceOfSupplyUuid#3509193, supplierGroup#3509181, supplier#3509182, subrange#3509185, product#3509188, plant#3509183, purchasingOrg#3509194, purchasingGroup#3509195, mrpController#3509192, orderDateTime#3509189, deliveryDateTime#3509184, availabilityDateTime#3509190, nextAvailabilityDateTime#3509191, isFallbackOrderOnly#3509196, orderQuantityBaseUom#3509207, orderQuantityBaseUomUuid#3509208, netPriceQuantity#3509217, netPriceQuantityUom#3509218, netPriceQuantityUomUuid#3509219, netPriceAmount#3509215, netPriceCurrencyCode#3509216, measurements#3509220, minimumOrderQuantity#3509209, constraintLabels#3509210, constraintOperators#3509211, constraintRanks#3509213, constraintValues#3509212, constraintIsActive#3509214, logisticUnits#3509206, optimizationGroups#3509222, externalProductId#3509204, externalPlantId#3509205, supplyingPlant#3509186, productGroup#3509187]
Arguments: isFinalPlan=true
(18) TableCacheQueryStage
Output [3]: [shardId#3509062, worklistShardItemId#3509063L, orderProposalId#3509064L]
Arguments: 0
(19) Filter [codegen id : 1]
Input [3]: [shardId#3509062, worklistShardItemId#3509063L, orderProposalId#3509064L]
Condition : (isnotnull(shardId#3509062) AND isnotnull(orderProposalId#3509064L))
(20) ObjectHashAggregate
Input [3]: [shardId#3509062, worklistShardItemId#3509063L, orderProposalId#3509064L]
Keys [2]: [shardId#3509062, orderProposalId#3509064L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#3509063L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#3514484]
Results [3]: [shardId#3509062, orderProposalId#3509064L, buf#3514485]
(21) Exchange
Input [3]: [shardId#3509062, orderProposalId#3509064L, buf#3514485]
Arguments: hashpartitioning(shardId#3509062, orderProposalId#3509064L, 37), ENSURE_REQUIREMENTS, [plan_id=1006402]
(22) ShuffleQueryStage [codegen id : 7]
Output [3]: [shardId#3509062, orderProposalId#3509064L, buf#3514485]
Arguments: 2
(23) AQEShuffleRead [codegen id : 7]
Input [3]: [shardId#3509062, orderProposalId#3509064L, buf#3514485]
Arguments: coalesced
(24) ObjectHashAggregate [codegen id : 7]
Input [3]: [shardId#3509062, orderProposalId#3509064L, buf#3514485]
Keys [2]: [shardId#3509062, orderProposalId#3509064L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#3509063L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#3509063L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#3512980]
Results [7]: [shardId#3509062, orderProposalId#3509064L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#3509063L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#3512980, lambdafunction(struct(worklistShardItemId, lambda x_11611#3513001.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_11611#3513001.quantityAfterProdPlantOptimization, qty, lambda x_11611#3513001.optimalQuantity), lambda x_11611#3513001, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#3513002, [] AS optimizationGroups#3512996, false AS isOptimal#3512981, 2026-08-31 14:12:38.585002 AS lastModified#3513000, [] AS optimizationInsights#3512997]
(25) Union
(26) Scan ExistingRDD [codegen id : 3]
Output [7]: [shardId#3513012, orderProposalId#3513013L, items#3513014, optimizationGroups#3513015, isOptimal#3513016, lastModified#3513017, optimizationInsights#3513018]
Arguments: [shardId#3513012, orderProposalId#3513013L, items#3513014, optimizationGroups#3513015, isOptimal#3513016, lastModified#3513017, optimizationInsights#3513018], MapPartitionsRDD[149133] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(27) Filter [codegen id : 3]
Input [7]: [shardId#3513012, orderProposalId#3513013L, items#3513014, optimizationGroups#3513015, isOptimal#3513016, lastModified#3513017, optimizationInsights#3513018]
Condition : (isnotnull(shardId#3513012) AND isnotnull(orderProposalId#3513013L))
(28) Project [codegen id : 3]
Output [3]: [shardId#3513012, orderProposalId#3513013L, lastModified#3513017]
Input [7]: [shardId#3513012, orderProposalId#3513013L, items#3513014, optimizationGroups#3513015, isOptimal#3513016, lastModified#3513017, optimizationInsights#3513018]
(29) InMemoryTableScan
Output [2]: [shardId#3513019, orderProposalId#3513021L]
Arguments: [shardId#3513019, orderProposalId#3513021L], [isnotnull(shardId#3513019), isnotnull(orderProposalId#3513021L)]
(30) InMemoryRelation
Arguments: [shardId#3513019, worklistShardItemId#3513020L, orderProposalId#3513021L, orderProposalItemId#3513022, orderProposalItemGroupId#3513023, originalReplenishmentRunId#3513024L, orderProposalHorizonGroupingId#3513025L, splitIndicator#3513026L, previousOrderProposal#3513027L, clusterId#3513028L, sequenceId#3513029L, sourceOfSupplyUuid#3513030, supplierGroup#3513031, supplier#3513032, subrange#3513033, product#3513034, plant#3513035, purchasingOrg#3513036, purchasingGroup#3513037, mrpController#3513038, orderDateTime#3513039, deliveryDateTime#3513040, availabilityDateTime#3513041, nextAvailabilityDateTime#3513042, isFallbackOrderOnly#3513043, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(31) TableCacheQueryStage
Output [2]: [shardId#3513019, orderProposalId#3513021L]
Arguments: 1
(32) Filter [codegen id : 2]
Input [2]: [shardId#3513019, orderProposalId#3513021L]
Condition : (isnotnull(shardId#3513019) AND isnotnull(orderProposalId#3513021L))
(33) HashAggregate [codegen id : 2]
Input [2]: [shardId#3513019, orderProposalId#3513021L]
Keys [2]: [shardId#3513019, orderProposalId#3513021L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#3513019, orderProposalId#3513021L]
(34) Exchange
Input [2]: [shardId#3513019, orderProposalId#3513021L]
Arguments: hashpartitioning(shardId#3513019, orderProposalId#3513021L, 37), ENSURE_REQUIREMENTS, [plan_id=1006438]
(35) ShuffleQueryStage
Output [2]: [shardId#3513019, orderProposalId#3513021L]
Arguments: 3
(36) AQEShuffleRead
Input [2]: [shardId#3513019, orderProposalId#3513021L]
Arguments: coalesced
(37) HashAggregate [codegen id : 4]
Input [2]: [shardId#3513019, orderProposalId#3513021L]
Keys [2]: [shardId#3513019, orderProposalId#3513021L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#3513019, orderProposalId#3513021L, 2026-08-31 14:12:38.585002 AS lastModified#3513116]
(38) Union
(39) HashAggregate [codegen id : 5]
Input [3]: [shardId#3513012, orderProposalId#3513013L, lastModified#3513017]
Keys [2]: [shardId#3513012, orderProposalId#3513013L]
Functions [1]: [partial_max(lastModified#3513017)]
Aggregate Attributes [1]: [max#3514486]
Results [3]: [shardId#3513012, orderProposalId#3513013L, max#3514487]
(40) Exchange
Input [3]: [shardId#3513012, orderProposalId#3513013L, max#3514487]
Arguments: hashpartitioning(shardId#3513012, orderProposalId#3513013L, 37), ENSURE_REQUIREMENTS, [plan_id=1006554]
(41) ShuffleQueryStage
Output [3]: [shardId#3513012, orderProposalId#3513013L, max#3514487]
Arguments: 4
(42) AQEShuffleRead
Input [3]: [shardId#3513012, orderProposalId#3513013L, max#3514487]
Arguments: coalesced
(43) HashAggregate [codegen id : 6]
Input [3]: [shardId#3513012, orderProposalId#3513013L, max#3514487]
Keys [2]: [shardId#3513012, orderProposalId#3513013L]
Functions [1]: [max(lastModified#3513017)]
Aggregate Attributes [1]: [max(lastModified#3513017)#3513011]
Results [3]: [shardId#3513012, orderProposalId#3513013L, max(lastModified#3513017)#3513011 AS lastModified#3513003]
(44) Filter [codegen id : 6]
Input [3]: [shardId#3513012, orderProposalId#3513013L, lastModified#3513003]
Condition : isnotnull(lastModified#3513003)
(45) BroadcastExchange
Input [3]: [shardId#3513012, orderProposalId#3513013L, lastModified#3513003]
Arguments: HashedRelationBroadcastMode(List(input[0, string, true], input[1, bigint, true], input[2, timestamp, false]),false), [plan_id=1006617]
(46) BroadcastQueryStage
Output [3]: [shardId#3513012, orderProposalId#3513013L, lastModified#3513003]
Arguments: 5
(47) BroadcastHashJoin [codegen id : 8]
Left keys [3]: [shardId#3512989, orderProposalId#3512990L, lastModified#3512994]
Right keys [3]: [shardId#3513012, orderProposalId#3513013L, lastModified#3513003]
Join type: Inner
Join condition: None
(48) Project [codegen id : 8]
Output [7]: [shardId#3512989, orderProposalId#3512990L, items#3512991, optimizationGroups#3512992, isOptimal#3512993, lastModified#3512994, optimizationInsights#3512995]
Input [10]: [shardId#3512989, orderProposalId#3512990L, items#3512991, optimizationGroups#3512992, isOptimal#3512993, lastModified#3512994, optimizationInsights#3512995, shardId#3513012, orderProposalId#3513013L, lastModified#3513003]
(49) DeserializeToObject
Input [7]: [shardId#3512989, orderProposalId#3512990L, items#3512991, optimizationGroups#3512992, isOptimal#3512993, lastModified#3512994, optimizationInsights#3512995]
Arguments: createexternalrow(invoke(shardId#3512989.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#3512990L)), 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#3512991, 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#3512992, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#3512993)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#3512994)), 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#3512995, 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#3513133: org.apache.spark.sql.Row
(50) ResultQueryStage
Output [1]: [obj#3513133]
Arguments: 6
(51) Scan ExistingRDD
Output [7]: [shardId#3512989, orderProposalId#3512990L, items#3512991, optimizationGroups#3512992, isOptimal#3512993, lastModified#3512994, optimizationInsights#3512995]
Arguments: [shardId#3512989, orderProposalId#3512990L, items#3512991, optimizationGroups#3512992, isOptimal#3512993, lastModified#3512994, optimizationInsights#3512995], MapPartitionsRDD[149133] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(52) Filter
Input [7]: [shardId#3512989, orderProposalId#3512990L, items#3512991, optimizationGroups#3512992, isOptimal#3512993, lastModified#3512994, optimizationInsights#3512995]
Condition : ((isnotnull(shardId#3512989) AND isnotnull(orderProposalId#3512990L)) AND isnotnull(lastModified#3512994))
(53) Filter
Input [3]: [shardId#3509062, worklistShardItemId#3509063L, orderProposalId#3509064L]
Condition : (isnotnull(shardId#3509062) AND isnotnull(orderProposalId#3509064L))
(54) ObjectHashAggregate
Input [3]: [shardId#3509062, worklistShardItemId#3509063L, orderProposalId#3509064L]
Keys [2]: [shardId#3509062, orderProposalId#3509064L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#3509063L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#3514484]
Results [3]: [shardId#3509062, orderProposalId#3509064L, buf#3514485]
(55) Exchange
Input [3]: [shardId#3509062, orderProposalId#3509064L, buf#3514485]
Arguments: hashpartitioning(shardId#3509062, orderProposalId#3509064L, 37), ENSURE_REQUIREMENTS, [plan_id=1006231]
(56) ObjectHashAggregate
Input [3]: [shardId#3509062, orderProposalId#3509064L, buf#3514485]
Keys [2]: [shardId#3509062, orderProposalId#3509064L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#3509063L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#3509063L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#3512980]
Results [7]: [shardId#3509062, orderProposalId#3509064L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#3509063L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#3512980, lambdafunction(struct(worklistShardItemId, lambda x_11611#3513001.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_11611#3513001.quantityAfterProdPlantOptimization, qty, lambda x_11611#3513001.optimalQuantity), lambda x_11611#3513001, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#3513002, [] AS optimizationGroups#3512996, false AS isOptimal#3512981, 2026-08-31 14:12:38.585002 AS lastModified#3513000, [] AS optimizationInsights#3512997]
(57) Union
(58) Exchange
Input [7]: [shardId#3512989, orderProposalId#3512990L, items#3512991, optimizationGroups#3512992, isOptimal#3512993, lastModified#3512994, optimizationInsights#3512995]
Arguments: hashpartitioning(shardId#3512989, orderProposalId#3512990L, lastModified#3512994, 37), ENSURE_REQUIREMENTS, [plan_id=1006244]
(59) Sort
Input [7]: [shardId#3512989, orderProposalId#3512990L, items#3512991, optimizationGroups#3512992, isOptimal#3512993, lastModified#3512994, optimizationInsights#3512995]
Arguments: [shardId#3512989 ASC NULLS FIRST, orderProposalId#3512990L ASC NULLS FIRST, lastModified#3512994 ASC NULLS FIRST], false, 0
(60) Filter
Input [2]: [shardId#3513019, orderProposalId#3513021L]
Condition : (isnotnull(shardId#3513019) AND isnotnull(orderProposalId#3513021L))
(61) HashAggregate
Input [2]: [shardId#3513019, orderProposalId#3513021L]
Keys [2]: [shardId#3513019, orderProposalId#3513021L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#3513019, orderProposalId#3513021L]
(62) Exchange
Input [2]: [shardId#3513019, orderProposalId#3513021L]
Arguments: hashpartitioning(shardId#3513019, orderProposalId#3513021L, 37), ENSURE_REQUIREMENTS, [plan_id=1006234]
(63) HashAggregate
Input [2]: [shardId#3513019, orderProposalId#3513021L]
Keys [2]: [shardId#3513019, orderProposalId#3513021L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#3513019, orderProposalId#3513021L, 2026-08-31 14:12:38.585002 AS lastModified#3513116]
(64) Union
(65) HashAggregate
Input [3]: [shardId#3513012, orderProposalId#3513013L, lastModified#3513017]
Keys [2]: [shardId#3513012, orderProposalId#3513013L]
Functions [1]: [partial_max(lastModified#3513017)]
Aggregate Attributes [1]: [max#3514486]
Results [3]: [shardId#3513012, orderProposalId#3513013L, max#3514487]
(66) Exchange
Input [3]: [shardId#3513012, orderProposalId#3513013L, max#3514487]
Arguments: hashpartitioning(shardId#3513012, orderProposalId#3513013L, 37), ENSURE_REQUIREMENTS, [plan_id=1006239]
(67) HashAggregate
Input [3]: [shardId#3513012, orderProposalId#3513013L, max#3514487]
Keys [2]: [shardId#3513012, orderProposalId#3513013L]
Functions [1]: [max(lastModified#3513017)]
Aggregate Attributes [1]: [max(lastModified#3513017)#3513011]
Results [3]: [shardId#3513012, orderProposalId#3513013L, max(lastModified#3513017)#3513011 AS lastModified#3513003]
(68) Filter
Input [3]: [shardId#3513012, orderProposalId#3513013L, lastModified#3513003]
Condition : isnotnull(lastModified#3513003)
(69) Exchange
Input [3]: [shardId#3513012, orderProposalId#3513013L, lastModified#3513003]
Arguments: hashpartitioning(shardId#3513012, orderProposalId#3513013L, lastModified#3513003, 37), ENSURE_REQUIREMENTS, [plan_id=1006245]
(70) Sort
Input [3]: [shardId#3513012, orderProposalId#3513013L, lastModified#3513003]
Arguments: [shardId#3513012 ASC NULLS FIRST, orderProposalId#3513013L ASC NULLS FIRST, lastModified#3513003 ASC NULLS FIRST], false, 0
(71) SortMergeJoin
Left keys [3]: [shardId#3512989, orderProposalId#3512990L, lastModified#3512994]
Right keys [3]: [shardId#3513012, orderProposalId#3513013L, lastModified#3513003]
Join type: Inner
Join condition: None
(72) Project
Output [7]: [shardId#3512989, orderProposalId#3512990L, items#3512991, optimizationGroups#3512992, isOptimal#3512993, lastModified#3512994, optimizationInsights#3512995]
Input [10]: [shardId#3512989, orderProposalId#3512990L, items#3512991, optimizationGroups#3512992, isOptimal#3512993, lastModified#3512994, optimizationInsights#3512995, shardId#3513012, orderProposalId#3513013L, lastModified#3513003]
(73) DeserializeToObject
Input [7]: [shardId#3512989, orderProposalId#3512990L, items#3512991, optimizationGroups#3512992, isOptimal#3512993, lastModified#3512994, optimizationInsights#3512995]
Arguments: createexternalrow(invoke(shardId#3512989.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#3512990L)), 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#3512991, 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#3512992, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#3512993)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#3512994)), 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#3512995, 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#3513133: org.apache.spark.sql.Row
(74) AdaptiveSparkPlan
Output [1]: [obj#3513133]
Arguments: isFinalPlan=true