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#3457366.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#3457367L)), 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#3457368, 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#3457369, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#3457370)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#3457371)), 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#3457372, 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#3457510: 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#3457366, orderProposalId#3457367L, items#3457368, optimizationGroups#3457369, isOptimal#3457370, lastModified#3457371, optimizationInsights#3457372]"];
4 [id="node4" labelType="html" label="<br><b>BroadcastHashJoin</b><br><br>" tooltip="BroadcastHashJoin [shardId#3457366, orderProposalId#3457367L, lastModified#3457371], [shardId#3457389, orderProposalId#3457390L, lastModified#3457380], 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#3457366) AND isnotnull(orderProposalId#3457367L)) AND isnotnull(lastModified#3457371))"];
8 [id="node8" labelType="html" label="<br><b>Scan ExistingRDD</b><br><br>" tooltip="Scan ExistingRDD[shardId#3457366,orderProposalId#3457367L,items#3457368,optimizationGroups#3457369,isOptimal#3457370,lastModified#3457371,optimizationInsights#3457372]"];
}
9 [id="node9" labelType="html" label="<br><b>ObjectHashAggregate</b><br><br>" tooltip="ObjectHashAggregate(keys=[shardId#3452112, orderProposalId#3452114L], functions=[collect_list(struct(worklistShardItemId, worklistShardItemId#3452113L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)])"];
10 [id="node10" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 65,504<br>data size total (min, med, max (stageId: taskId))<br>9.6 MiB (255.2 KiB, 264.9 KiB, 274.0 KiB (stage 318036.0: task 902984))<br>shuffle write time total (min, med, max (stageId: taskId))<br>87 ms (1 ms, 2 ms, 4 ms (stage 318036.0: task 902979))<br>number of partitions: 37<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>2.2 MiB (58.7 KiB, 60.6 KiB, 62.4 KiB (stage 318036.0: task 902984))" tooltip="Exchange hashpartitioning(shardId#3452112, orderProposalId#3452114L, 37), ENSURE_REQUIREMENTS, [plan_id=992743]"];
11 [id="node11" labelType="html" label="<b>ObjectHashAggregate</b><br><br>number of output rows: 65,504<br>time in aggregation build total (min, med, max (stageId: taskId))<br>5.5 s (6 ms, 10 ms, 687 ms (stage 318036.0: task 902980))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 318036.0: task 902988))<br>number of sort fallback tasks: 37" tooltip="ObjectHashAggregate(keys=[shardId#3452112, orderProposalId#3452114L], functions=[partial_collect_list(struct(worklistShardItemId, worklistShardItemId#3452113L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)])"];
subgraph cluster12 {
isCluster="true";
id="cluster12";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n4.9 s (4 ms, 7 ms, 650 ms (stage 318036.0: task 902983))";
tooltip="WholeStageCodegen (1)";
13 [id="node13" labelType="html" label="<b>Filter</b><br><br>number of output rows: 119,861" tooltip="Filter (isnotnull(shardId#3452112) AND isnotnull(orderProposalId#3452114L))"];
}
14 [id="node14" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 119,861" tooltip="InMemoryTableScan [shardId#3452112, worklistShardItemId#3452113L, orderProposalId#3452114L], [isnotnull(shardId#3452112), isnotnull(orderProposalId#3452114L)]"];
15 [id="node15" labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>" tooltip="AdaptiveSparkPlan isFinalPlan=true"];
subgraph cluster16 {
isCluster="true";
id="cluster16";
label="WholeStageCodegen (2)\n \nduration: 0 ms";
tooltip="WholeStageCodegen (2)";
17 [id="node17" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [0_5_10000000532 AS shardId#3452112, worklistShardItemId#3452180L, orderProposalId#3452157L, orderProposalItemId#3452158, orderProposalItemGroupId#3452181, originalReplenishmentRunId#3452199L, orderProposalHorizonGroupingId#3452175L, splitIndicator#3452176L, previousOrderProposal#3452177L, clusterId#3452178L, cast(sequenceId#3452179 as bigint) AS sequenceId#3452122L, sourceOfSupplyUuid#3452171, supplierGroup#3452159, supplier#3452160, subrange#3452163, product#3452166, plant#3452161, purchasingOrg#3452172, purchasingGroup#3452173, mrpController#3452170, orderDateTime#3452167, deliveryDateTime#3452162, availabilityDateTime#3452168, nextAvailabilityDateTime#3452169, isFallbackOrderOnly#3452174, ... 20 more fields]"];
}
18 [id="node18" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 0<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 0<br>local bytes read: 0.0 B<br>merged fetch fallback count: 0<br>local blocks read: 0<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 0.0 B<br>local merged bytes read: 0.0 B<br>local merged chunks fetched: 0<br>shuffle write time: 0 ms<br>remote merged bytes read: 0.0 B<br>local merged blocks fetched: 0<br>corrupt merged block chunks: 0<br>fetch wait time: 0 ms<br>remote bytes read: 0.0 B<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written: 0.0 B" tooltip="Exchange hashpartitioning(worklistShardItemId#3452180L, 37), REPARTITION_BY_NUM, [plan_id=992377]"];
subgraph cluster19 {
isCluster="true";
id="cluster19";
label="WholeStageCodegen (1)";
tooltip="WholeStageCodegen (1)";
20 [id="node20" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [orderProposalId#3452157L, orderProposalItemId#3452158, supplierGroup#3452159, supplier#3452160, plant#3452161, deliveryDateTime#3452162, subrange#3452163, supplyingPlant#3452164, productGroup#3452165, product#3452166, orderDateTime#3452167, availabilityDateTime#3452168, nextAvailabilityDateTime#3452169, mrpController#3452170, sourceOfSupplyUuid#3452171, purchasingOrg#3452172, purchasingGroup#3452173, isFallbackOrderOnly#3452174, orderProposalHorizonGroupingId#3452175L, splitIndicator#3452176L, previousOrderProposal#3452177L, clusterId#3452178L, sequenceId#3452179, worklistShardItemId#3452180L, orderProposalItemGroupId#3452181, ... 19 more fields]"];
21 [id="node21" labelType="html" label="<br><b>Filter</b><br><br>" tooltip="Filter ((isnotnull(availabilityDateTime#3452168) AND isnotnull(nextAvailabilityDateTime#3452169)) AND (nextAvailabilityDateTime#3452169 > availabilityDateTime#3452168))"];
22 [id="node22" labelType="html" label="<br><b>ColumnarToRow</b><br><br>" tooltip="ColumnarToRow"];
}
23 [id="node23" labelType="html" label="<br><b>Scan parquet </b><br><br>" tooltip="FileScan parquet [orderProposalId#3452157L,orderProposalItemId#3452158,supplierGroup#3452159,supplier#3452160,plant#3452161,deliveryDateTime#3452162,subrange#3452163,supplyingPlant#3452164,productGroup#3452165,product#3452166,orderDateTime#3452167,availabilityDateTime#3452168,nextAvailabilityDateTime#3452169,mrpController#3452170,sourceOfSupplyUuid#3452171,purchasingOrg#3452172,purchasingGroup#3452173,isFallbackOrderOnly#3452174,orderProposalHorizonGroupingId#3452175L,splitIndicator#3452176L,previousOrderProposal#3452177L,clusterId#3452178L,worklistShardItemId#3452180L,orderProposalItemGroupId#3452181,externalProductId#3452182,... 20 more fields] Batched: true, DataFilters: [isnotnull(availabilityDateTime#3452168), isnotnull(nextAvailabilityDateTime#3452169), (nextAvail..., Format: Parquet, Location: PreparedDeltaFileIndex(1 paths)[hdlfs://7da5304c-1f57-47fa-b75a-0f0b4349c280.files.hdl.prod-eu20...., PartitionFilters: [isnotnull(shardId#3452201), isnotnull(sequenceId#3452179), (shardId#3452201 = 0_5_10000000532), ..., PushedFilters: [IsNotNull(availabilityDateTime), IsNotNull(nextAvailabilityDateTime)], ReadSchema: struct<orderProposalId:bigint,orderProposalItemId:string,supplierGroup:string,supplier:string,pla..."];
24 [id="node24" labelType="html" label="<b>BroadcastExchange</b><br><br>time to broadcast: 1 ms<br>time to build: 6 ms<br>time to collect: 62 ms<br>number of output rows: 2,360<br>data size: 2.1 MiB" tooltip="BroadcastExchange HashedRelationBroadcastMode(List(input[0, string, true], input[1, bigint, true], input[2, timestamp, false]),false), [plan_id=992946]"];
subgraph cluster25 {
isCluster="true";
id="cluster25";
label="WholeStageCodegen (6)\n \nduration: 8 ms";
tooltip="WholeStageCodegen (6)";
26 [id="node26" labelType="html" label="<b>Filter</b><br><br>number of output rows: 2,360" tooltip="Filter isnotnull(lastModified#3457380)"];
27 [id="node27" labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 5 ms<br>peak memory: 2.3 MiB<br>number of output rows: 2,360<br>number of sort fallback tasks: 0<br>avg hash probes per key: 1" tooltip="HashAggregate(keys=[shardId#3457389, orderProposalId#3457390L], functions=[max(lastModified#3457394)])"];
}
28 [id="node28" labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 32.4 KiB<br>number of coalesced partitions: 1" tooltip="AQEShuffleRead coalesced"];
29 [id="node29" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 2,360<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 2,360<br>local bytes read: 31.1 KiB<br>merged fetch fallback count: 0<br>local blocks read: 37<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size total (min, med, max (stageId: taskId))<br>110.6 KiB (6.0 KiB, 8.7 KiB, 9.3 KiB (stage 318187.0: task 903083))<br>local merged bytes read: 0.0 B<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>8 ms (0 ms, 0 ms, 0 ms (stage 318187.0: task 903083))<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>number of partitions: 37<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>31.1 KiB (1725.0 B, 2.5 KiB, 2.6 KiB (stage 318187.0: task 903083))" tooltip="Exchange hashpartitioning(shardId#3457389, orderProposalId#3457390L, 37), ENSURE_REQUIREMENTS, [plan_id=992883]"];
subgraph cluster30 {
isCluster="true";
id="cluster30";
label="WholeStageCodegen (5)\n \nduration: total (min, med, max (stageId: taskId))\n611 ms (0 ms, 13 ms, 39 ms (stage 318187.0: task 903058))";
tooltip="WholeStageCodegen (5)";
31 [id="node31" labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build total (min, med, max (stageId: taskId))<br>206 ms (0 ms, 0 ms, 20 ms (stage 318187.0: task 903086))<br>peak memory total (min, med, max (stageId: taskId))<br>11.0 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 318187.0: task 903055))<br>number of output rows: 2,360<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#3457389, orderProposalId#3457390L], functions=[partial_max(lastModified#3457394)])"];
}
32 [id="node32" labelType="html" label="<br><b>Union</b><br><br>" tooltip="Union"];
subgraph cluster33 {
isCluster="true";
id="cluster33";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n776 ms (0 ms, 1 ms, 81 ms (stage 318187.0: task 903058))";
tooltip="WholeStageCodegen (3)";
34 [id="node34" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#3457389, orderProposalId#3457390L, lastModified#3457394]"];
35 [id="node35" labelType="html" label="<b>Filter</b><br><br>number of output rows: 0" tooltip="Filter (isnotnull(shardId#3457389) AND isnotnull(orderProposalId#3457390L))"];
36 [id="node36" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 0" tooltip="Scan ExistingRDD[shardId#3457389,orderProposalId#3457390L,items#3457391,optimizationGroups#3457392,isOptimal#3457393,lastModified#3457394,optimizationInsights#3457395]"];
}
subgraph cluster37 {
isCluster="true";
id="cluster37";
label="WholeStageCodegen (4)\n \nduration: total (min, med, max (stageId: taskId))\n217 ms (9 ms, 15 ms, 21 ms (stage 318187.0: task 903086))";
tooltip="WholeStageCodegen (4)";
38 [id="node38" labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build total (min, med, max (stageId: taskId))<br>171 ms (8 ms, 12 ms, 16 ms (stage 318187.0: task 903086))<br>peak memory total (min, med, max (stageId: taskId))<br>3.5 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 318187.0: task 903082))<br>number of output rows: 2,360<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#3457396, orderProposalId#3457398L], functions=[])"];
}
39 [id="node39" labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 14<br>partition data size total (min, med, max (stageId: taskId))<br>931.0 KiB (50.1 KiB, 73.7 KiB, 77.5 KiB (driver))<br>number of coalesced partitions: 14" tooltip="AQEShuffleRead coalesced"];
40 [id="node40" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 65,504<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 65,504<br>local bytes read total (min, med, max (stageId: taskId))<br>336.2 KiB (18.1 KiB, 26.5 KiB, 27.9 KiB (stage 318187.0: task 903091))<br>merged fetch fallback count: 0<br>local blocks read: 518<br>remote merged chunks fetched: 0<br>remote blocks read: 851<br>data size total (min, med, max (stageId: taskId))<br>2.5 MiB (67.1 KiB, 69.2 KiB, 70.9 KiB (stage 318037.0: task 902997))<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>83 ms (1 ms, 2 ms, 3 ms (stage 318037.0: task 903040))<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 318187.0: task 903082))<br>remote bytes read total (min, med, max (stageId: taskId))<br>550.9 KiB (29.5 KiB, 43.5 KiB, 46.2 KiB (stage 318187.0: task 903083))<br>number of partitions: 37<br>remote reqs duration total (min, med, max (stageId: taskId))<br>57 ms (2 ms, 4 ms, 6 ms (stage 318187.0: task 903095))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>887.1 KiB (23.4 KiB, 24.0 KiB, 24.5 KiB (stage 318037.0: task 902997))" tooltip="Exchange hashpartitioning(shardId#3457396, orderProposalId#3457398L, 37), ENSURE_REQUIREMENTS, [plan_id=992779]"];
subgraph cluster41 {
isCluster="true";
id="cluster41";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n726 ms (9 ms, 16 ms, 45 ms (stage 318037.0: task 902998))";
tooltip="WholeStageCodegen (2)";
42 [id="node42" labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build total (min, med, max (stageId: taskId))<br>287 ms (4 ms, 8 ms, 12 ms (stage 318037.0: task 902993))<br>peak memory total (min, med, max (stageId: taskId))<br>35.3 MiB (256.0 KiB, 256.0 KiB, 2.3 MiB (stage 318037.0: task 902995))<br>number of output rows: 65,504<br>number of sort fallback tasks: 0<br>avg hash probes per key (min, med, max (stageId: taskId)):<br>(1, 1, 1 (stage 318037.0: task 902995))" tooltip="HashAggregate(keys=[shardId#3457396, orderProposalId#3457398L], functions=[])"];
43 [id="node43" labelType="html" label="<b>Filter</b><br><br>number of output rows: 119,861" tooltip="Filter (isnotnull(shardId#3457396) AND isnotnull(orderProposalId#3457398L))"];
}
44 [id="node44" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 119,861" tooltip="InMemoryTableScan [shardId#3457396, orderProposalId#3457398L], [isnotnull(shardId#3457396), isnotnull(orderProposalId#3457398L)]"];
45 [id="node45" labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>" tooltip="AdaptiveSparkPlan isFinalPlan=true"];
subgraph cluster46 {
isCluster="true";
id="cluster46";
label="WholeStageCodegen (2)\n \nduration: 0 ms";
tooltip="WholeStageCodegen (2)";
47 [id="node47" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [0_5_10000000532 AS shardId#3452112, worklistShardItemId#3452180L, orderProposalId#3452157L, orderProposalItemId#3452158, orderProposalItemGroupId#3452181, originalReplenishmentRunId#3452199L, orderProposalHorizonGroupingId#3452175L, splitIndicator#3452176L, previousOrderProposal#3452177L, clusterId#3452178L, cast(sequenceId#3452179 as bigint) AS sequenceId#3452122L, sourceOfSupplyUuid#3452171, supplierGroup#3452159, supplier#3452160, subrange#3452163, product#3452166, plant#3452161, purchasingOrg#3452172, purchasingGroup#3452173, mrpController#3452170, orderDateTime#3452167, deliveryDateTime#3452162, availabilityDateTime#3452168, nextAvailabilityDateTime#3452169, isFallbackOrderOnly#3452174, ... 20 more fields]"];
}
1->0;
3->1;
4->3;
5->4;
7->5;
8->7;
9->5;
10->9;
11->10;
13->11;
14->13;
15->14;
17->15;
18->17;
20->18;
21->20;
22->21;
23->22;
24->4;
26->24;
27->26;
28->27;
29->28;
31->29;
32->31;
34->32;
35->34;
36->35;
38->32;
39->38;
40->39;
42->40;
43->42;
44->43;
45->44;
47->45;
18->47;
}
== Physical Plan ==
AdaptiveSparkPlan (73)
+- == Final Plan ==
ResultQueryStage (49), Statistics(sizeInBytes=8.0 EiB)
+- DeserializeToObject (48)
+- * Project (47)
+- * BroadcastHashJoin Inner BuildRight (46)
:- Union (24)
: :- * Filter (2)
: : +- * Scan ExistingRDD (1)
: +- ObjectHashAggregate (23)
: +- ShuffleQueryStage (22), Statistics(sizeInBytes=9.6 MiB, rowCount=6.55E+4)
: +- Exchange (21)
: +- ObjectHashAggregate (20)
: +- * Filter (19)
: +- TableCacheQueryStage (18), Statistics(sizeInBytes=138.1 MiB, rowCount=1.20E+5)
: +- InMemoryTableScan (3)
: +- InMemoryRelation (4)
: +- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=155.6 MiB, rowCount=1.20E+5)
+- Exchange (9)
+- * Project (8)
+- * Filter (7)
+- * ColumnarToRow (6)
+- Scan parquet (5)
+- == Initial Plan ==
Project (16)
+- Exchange (15)
+- Project (14)
+- Filter (13)
+- Scan parquet (5)
+- BroadcastQueryStage (45), Statistics(sizeInBytes=2.1 MiB, rowCount=2.36E+3)
+- BroadcastExchange (44)
+- * Filter (43)
+- * HashAggregate (42)
+- AQEShuffleRead (41)
+- ShuffleQueryStage (40), Statistics(sizeInBytes=110.6 KiB, rowCount=2.36E+3)
+- Exchange (39)
+- * HashAggregate (38)
+- Union (37)
:- * Project (27)
: +- * Filter (26)
: +- * Scan ExistingRDD (25)
+- * HashAggregate (36)
+- AQEShuffleRead (35)
+- ShuffleQueryStage (34), Statistics(sizeInBytes=2.5 MiB, rowCount=6.55E+4)
+- Exchange (33)
+- * HashAggregate (32)
+- * Filter (31)
+- TableCacheQueryStage (30), Statistics(sizeInBytes=138.1 MiB, rowCount=1.20E+5)
+- InMemoryTableScan (28)
+- InMemoryRelation (29)
+- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=155.6 MiB, rowCount=1.20E+5)
+- Exchange (9)
+- * Project (8)
+- * Filter (7)
+- * ColumnarToRow (6)
+- Scan parquet (5)
+- == Initial Plan ==
Project (16)
+- Exchange (15)
+- Project (14)
+- Filter (13)
+- Scan parquet (5)
+- == Initial Plan ==
DeserializeToObject (72)
+- Project (71)
+- SortMergeJoin Inner (70)
:- Sort (58)
: +- Exchange (57)
: +- Union (56)
: :- Filter (51)
: : +- Scan ExistingRDD (50)
: +- ObjectHashAggregate (55)
: +- Exchange (54)
: +- ObjectHashAggregate (53)
: +- Filter (52)
: +- InMemoryTableScan (3)
: +- InMemoryRelation (4)
: +- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=155.6 MiB, rowCount=1.20E+5)
+- Exchange (9)
+- * Project (8)
+- * Filter (7)
+- * ColumnarToRow (6)
+- Scan parquet (5)
+- == Initial Plan ==
Project (16)
+- Exchange (15)
+- Project (14)
+- Filter (13)
+- Scan parquet (5)
+- Sort (69)
+- Exchange (68)
+- Filter (67)
+- HashAggregate (66)
+- Exchange (65)
+- HashAggregate (64)
+- Union (63)
:- Project (27)
: +- Filter (26)
: +- Scan ExistingRDD (25)
+- HashAggregate (62)
+- Exchange (61)
+- HashAggregate (60)
+- Filter (59)
+- InMemoryTableScan (28)
+- InMemoryRelation (29)
+- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=155.6 MiB, rowCount=1.20E+5)
+- Exchange (9)
+- * Project (8)
+- * Filter (7)
+- * ColumnarToRow (6)
+- Scan parquet (5)
+- == Initial Plan ==
Project (16)
+- Exchange (15)
+- Project (14)
+- Filter (13)
+- Scan parquet (5)
(1) Scan ExistingRDD [codegen id : 7]
Output [7]: [shardId#3457366, orderProposalId#3457367L, items#3457368, optimizationGroups#3457369, isOptimal#3457370, lastModified#3457371, optimizationInsights#3457372]
Arguments: [shardId#3457366, orderProposalId#3457367L, items#3457368, optimizationGroups#3457369, isOptimal#3457370, lastModified#3457371, optimizationInsights#3457372], MapPartitionsRDD[146976] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(2) Filter [codegen id : 7]
Input [7]: [shardId#3457366, orderProposalId#3457367L, items#3457368, optimizationGroups#3457369, isOptimal#3457370, lastModified#3457371, optimizationInsights#3457372]
Condition : ((isnotnull(shardId#3457366) AND isnotnull(orderProposalId#3457367L)) AND isnotnull(lastModified#3457371))
(3) InMemoryTableScan
Output [3]: [shardId#3452112, worklistShardItemId#3452113L, orderProposalId#3452114L]
Arguments: [shardId#3452112, worklistShardItemId#3452113L, orderProposalId#3452114L], [isnotnull(shardId#3452112), isnotnull(orderProposalId#3452114L)]
(4) InMemoryRelation
Arguments: [shardId#3452112, worklistShardItemId#3452113L, orderProposalId#3452114L, orderProposalItemId#3452115, orderProposalItemGroupId#3452116, originalReplenishmentRunId#3452117L, orderProposalHorizonGroupingId#3452118L, splitIndicator#3452119L, previousOrderProposal#3452120L, clusterId#3452121L, sequenceId#3452122L, sourceOfSupplyUuid#3452123, supplierGroup#3452124, supplier#3452125, subrange#3452126, product#3452127, plant#3452128, purchasingOrg#3452129, purchasingGroup#3452130, mrpController#3452131, orderDateTime#3452132, deliveryDateTime#3452133, availabilityDateTime#3452134, nextAvailabilityDateTime#3452135, isFallbackOrderOnly#3452136, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(5) Scan parquet
Output [45]: [orderProposalId#3452157L, orderProposalItemId#3452158, supplierGroup#3452159, supplier#3452160, plant#3452161, deliveryDateTime#3452162, subrange#3452163, supplyingPlant#3452164, productGroup#3452165, product#3452166, orderDateTime#3452167, availabilityDateTime#3452168, nextAvailabilityDateTime#3452169, mrpController#3452170, sourceOfSupplyUuid#3452171, purchasingOrg#3452172, purchasingGroup#3452173, isFallbackOrderOnly#3452174, orderProposalHorizonGroupingId#3452175L, splitIndicator#3452176L, previousOrderProposal#3452177L, clusterId#3452178L, worklistShardItemId#3452180L, orderProposalItemGroupId#3452181, externalProductId#3452182, externalPlantId#3452183, logisticUnits#3452184, orderQuantityBaseUom#3452185, orderQuantityBaseUomUuid#3452186, minimumOrderQuantity#3452187, constraintLabels#3452188, constraintOperators#3452189, constraintValues#3452190, constraintRanks#3452191, constraintIsActive#3452192, netPriceAmount#3452193, netPriceCurrencyCode#3452194, netPriceQuantity#3452195, netPriceQuantityUom#3452196, netPriceQuantityUomUuid#3452197, measurements#3452198, originalReplenishmentRunId#3452199L, optimizationGroups#3452200, shardId#3452201, sequenceId#3452179]
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#3452201), isnotnull(sequenceId#3452179), (shardId#3452201 = 0_5_10000000532), (sequenceId#3452179 = 4)]
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#3452157L, orderProposalItemId#3452158, supplierGroup#3452159, supplier#3452160, plant#3452161, deliveryDateTime#3452162, subrange#3452163, supplyingPlant#3452164, productGroup#3452165, product#3452166, orderDateTime#3452167, availabilityDateTime#3452168, nextAvailabilityDateTime#3452169, mrpController#3452170, sourceOfSupplyUuid#3452171, purchasingOrg#3452172, purchasingGroup#3452173, isFallbackOrderOnly#3452174, orderProposalHorizonGroupingId#3452175L, splitIndicator#3452176L, previousOrderProposal#3452177L, clusterId#3452178L, worklistShardItemId#3452180L, orderProposalItemGroupId#3452181, externalProductId#3452182, externalPlantId#3452183, logisticUnits#3452184, orderQuantityBaseUom#3452185, orderQuantityBaseUomUuid#3452186, minimumOrderQuantity#3452187, constraintLabels#3452188, constraintOperators#3452189, constraintValues#3452190, constraintRanks#3452191, constraintIsActive#3452192, netPriceAmount#3452193, netPriceCurrencyCode#3452194, netPriceQuantity#3452195, netPriceQuantityUom#3452196, netPriceQuantityUomUuid#3452197, measurements#3452198, originalReplenishmentRunId#3452199L, optimizationGroups#3452200, shardId#3452201, sequenceId#3452179]
(7) Filter [codegen id : 1]
Input [45]: [orderProposalId#3452157L, orderProposalItemId#3452158, supplierGroup#3452159, supplier#3452160, plant#3452161, deliveryDateTime#3452162, subrange#3452163, supplyingPlant#3452164, productGroup#3452165, product#3452166, orderDateTime#3452167, availabilityDateTime#3452168, nextAvailabilityDateTime#3452169, mrpController#3452170, sourceOfSupplyUuid#3452171, purchasingOrg#3452172, purchasingGroup#3452173, isFallbackOrderOnly#3452174, orderProposalHorizonGroupingId#3452175L, splitIndicator#3452176L, previousOrderProposal#3452177L, clusterId#3452178L, worklistShardItemId#3452180L, orderProposalItemGroupId#3452181, externalProductId#3452182, externalPlantId#3452183, logisticUnits#3452184, orderQuantityBaseUom#3452185, orderQuantityBaseUomUuid#3452186, minimumOrderQuantity#3452187, constraintLabels#3452188, constraintOperators#3452189, constraintValues#3452190, constraintRanks#3452191, constraintIsActive#3452192, netPriceAmount#3452193, netPriceCurrencyCode#3452194, netPriceQuantity#3452195, netPriceQuantityUom#3452196, netPriceQuantityUomUuid#3452197, measurements#3452198, originalReplenishmentRunId#3452199L, optimizationGroups#3452200, shardId#3452201, sequenceId#3452179]
Condition : ((isnotnull(availabilityDateTime#3452168) AND isnotnull(nextAvailabilityDateTime#3452169)) AND (nextAvailabilityDateTime#3452169 > availabilityDateTime#3452168))
(8) Project [codegen id : 1]
Output [44]: [orderProposalId#3452157L, orderProposalItemId#3452158, supplierGroup#3452159, supplier#3452160, plant#3452161, deliveryDateTime#3452162, subrange#3452163, supplyingPlant#3452164, productGroup#3452165, product#3452166, orderDateTime#3452167, availabilityDateTime#3452168, nextAvailabilityDateTime#3452169, mrpController#3452170, sourceOfSupplyUuid#3452171, purchasingOrg#3452172, purchasingGroup#3452173, isFallbackOrderOnly#3452174, orderProposalHorizonGroupingId#3452175L, splitIndicator#3452176L, previousOrderProposal#3452177L, clusterId#3452178L, sequenceId#3452179, worklistShardItemId#3452180L, orderProposalItemGroupId#3452181, externalProductId#3452182, externalPlantId#3452183, logisticUnits#3452184, orderQuantityBaseUom#3452185, orderQuantityBaseUomUuid#3452186, minimumOrderQuantity#3452187, constraintLabels#3452188, constraintOperators#3452189, constraintValues#3452190, constraintRanks#3452191, constraintIsActive#3452192, netPriceAmount#3452193, netPriceCurrencyCode#3452194, netPriceQuantity#3452195, netPriceQuantityUom#3452196, netPriceQuantityUomUuid#3452197, measurements#3452198, originalReplenishmentRunId#3452199L, optimizationGroups#3452200]
Input [45]: [orderProposalId#3452157L, orderProposalItemId#3452158, supplierGroup#3452159, supplier#3452160, plant#3452161, deliveryDateTime#3452162, subrange#3452163, supplyingPlant#3452164, productGroup#3452165, product#3452166, orderDateTime#3452167, availabilityDateTime#3452168, nextAvailabilityDateTime#3452169, mrpController#3452170, sourceOfSupplyUuid#3452171, purchasingOrg#3452172, purchasingGroup#3452173, isFallbackOrderOnly#3452174, orderProposalHorizonGroupingId#3452175L, splitIndicator#3452176L, previousOrderProposal#3452177L, clusterId#3452178L, worklistShardItemId#3452180L, orderProposalItemGroupId#3452181, externalProductId#3452182, externalPlantId#3452183, logisticUnits#3452184, orderQuantityBaseUom#3452185, orderQuantityBaseUomUuid#3452186, minimumOrderQuantity#3452187, constraintLabels#3452188, constraintOperators#3452189, constraintValues#3452190, constraintRanks#3452191, constraintIsActive#3452192, netPriceAmount#3452193, netPriceCurrencyCode#3452194, netPriceQuantity#3452195, netPriceQuantityUom#3452196, netPriceQuantityUomUuid#3452197, measurements#3452198, originalReplenishmentRunId#3452199L, optimizationGroups#3452200, shardId#3452201, sequenceId#3452179]
(9) Exchange
Input [44]: [orderProposalId#3452157L, orderProposalItemId#3452158, supplierGroup#3452159, supplier#3452160, plant#3452161, deliveryDateTime#3452162, subrange#3452163, supplyingPlant#3452164, productGroup#3452165, product#3452166, orderDateTime#3452167, availabilityDateTime#3452168, nextAvailabilityDateTime#3452169, mrpController#3452170, sourceOfSupplyUuid#3452171, purchasingOrg#3452172, purchasingGroup#3452173, isFallbackOrderOnly#3452174, orderProposalHorizonGroupingId#3452175L, splitIndicator#3452176L, previousOrderProposal#3452177L, clusterId#3452178L, sequenceId#3452179, worklistShardItemId#3452180L, orderProposalItemGroupId#3452181, externalProductId#3452182, externalPlantId#3452183, logisticUnits#3452184, orderQuantityBaseUom#3452185, orderQuantityBaseUomUuid#3452186, minimumOrderQuantity#3452187, constraintLabels#3452188, constraintOperators#3452189, constraintValues#3452190, constraintRanks#3452191, constraintIsActive#3452192, netPriceAmount#3452193, netPriceCurrencyCode#3452194, netPriceQuantity#3452195, netPriceQuantityUom#3452196, netPriceQuantityUomUuid#3452197, measurements#3452198, originalReplenishmentRunId#3452199L, optimizationGroups#3452200]
Arguments: hashpartitioning(worklistShardItemId#3452180L, 37), REPARTITION_BY_NUM, [plan_id=992377]
(10) ShuffleQueryStage
Output [44]: [orderProposalId#3452157L, orderProposalItemId#3452158, supplierGroup#3452159, supplier#3452160, plant#3452161, deliveryDateTime#3452162, subrange#3452163, supplyingPlant#3452164, productGroup#3452165, product#3452166, orderDateTime#3452167, availabilityDateTime#3452168, nextAvailabilityDateTime#3452169, mrpController#3452170, sourceOfSupplyUuid#3452171, purchasingOrg#3452172, purchasingGroup#3452173, isFallbackOrderOnly#3452174, orderProposalHorizonGroupingId#3452175L, splitIndicator#3452176L, previousOrderProposal#3452177L, clusterId#3452178L, sequenceId#3452179, worklistShardItemId#3452180L, orderProposalItemGroupId#3452181, externalProductId#3452182, externalPlantId#3452183, logisticUnits#3452184, orderQuantityBaseUom#3452185, orderQuantityBaseUomUuid#3452186, minimumOrderQuantity#3452187, constraintLabels#3452188, constraintOperators#3452189, constraintValues#3452190, constraintRanks#3452191, constraintIsActive#3452192, netPriceAmount#3452193, netPriceCurrencyCode#3452194, netPriceQuantity#3452195, netPriceQuantityUom#3452196, netPriceQuantityUomUuid#3452197, measurements#3452198, originalReplenishmentRunId#3452199L, optimizationGroups#3452200]
Arguments: 0
(11) Project [codegen id : 2]
Output [45]: [0_5_10000000532 AS shardId#3452112, worklistShardItemId#3452180L, orderProposalId#3452157L, orderProposalItemId#3452158, orderProposalItemGroupId#3452181, originalReplenishmentRunId#3452199L, orderProposalHorizonGroupingId#3452175L, splitIndicator#3452176L, previousOrderProposal#3452177L, clusterId#3452178L, cast(sequenceId#3452179 as bigint) AS sequenceId#3452122L, sourceOfSupplyUuid#3452171, supplierGroup#3452159, supplier#3452160, subrange#3452163, product#3452166, plant#3452161, purchasingOrg#3452172, purchasingGroup#3452173, mrpController#3452170, orderDateTime#3452167, deliveryDateTime#3452162, availabilityDateTime#3452168, nextAvailabilityDateTime#3452169, isFallbackOrderOnly#3452174, orderQuantityBaseUom#3452185, orderQuantityBaseUomUuid#3452186, netPriceQuantity#3452195, netPriceQuantityUom#3452196, netPriceQuantityUomUuid#3452197, netPriceAmount#3452193, netPriceCurrencyCode#3452194, measurements#3452198, minimumOrderQuantity#3452187, constraintLabels#3452188, constraintOperators#3452189, constraintRanks#3452191, constraintValues#3452190, constraintIsActive#3452192, logisticUnits#3452184, optimizationGroups#3452200, externalProductId#3452182, externalPlantId#3452183, supplyingPlant#3452164, productGroup#3452165]
Input [44]: [orderProposalId#3452157L, orderProposalItemId#3452158, supplierGroup#3452159, supplier#3452160, plant#3452161, deliveryDateTime#3452162, subrange#3452163, supplyingPlant#3452164, productGroup#3452165, product#3452166, orderDateTime#3452167, availabilityDateTime#3452168, nextAvailabilityDateTime#3452169, mrpController#3452170, sourceOfSupplyUuid#3452171, purchasingOrg#3452172, purchasingGroup#3452173, isFallbackOrderOnly#3452174, orderProposalHorizonGroupingId#3452175L, splitIndicator#3452176L, previousOrderProposal#3452177L, clusterId#3452178L, sequenceId#3452179, worklistShardItemId#3452180L, orderProposalItemGroupId#3452181, externalProductId#3452182, externalPlantId#3452183, logisticUnits#3452184, orderQuantityBaseUom#3452185, orderQuantityBaseUomUuid#3452186, minimumOrderQuantity#3452187, constraintLabels#3452188, constraintOperators#3452189, constraintValues#3452190, constraintRanks#3452191, constraintIsActive#3452192, netPriceAmount#3452193, netPriceCurrencyCode#3452194, netPriceQuantity#3452195, netPriceQuantityUom#3452196, netPriceQuantityUomUuid#3452197, measurements#3452198, originalReplenishmentRunId#3452199L, optimizationGroups#3452200]
(12) ResultQueryStage
Output [45]: [shardId#3452112, worklistShardItemId#3452180L, orderProposalId#3452157L, orderProposalItemId#3452158, orderProposalItemGroupId#3452181, originalReplenishmentRunId#3452199L, orderProposalHorizonGroupingId#3452175L, splitIndicator#3452176L, previousOrderProposal#3452177L, clusterId#3452178L, sequenceId#3452122L, sourceOfSupplyUuid#3452171, supplierGroup#3452159, supplier#3452160, subrange#3452163, product#3452166, plant#3452161, purchasingOrg#3452172, purchasingGroup#3452173, mrpController#3452170, orderDateTime#3452167, deliveryDateTime#3452162, availabilityDateTime#3452168, nextAvailabilityDateTime#3452169, isFallbackOrderOnly#3452174, orderQuantityBaseUom#3452185, orderQuantityBaseUomUuid#3452186, netPriceQuantity#3452195, netPriceQuantityUom#3452196, netPriceQuantityUomUuid#3452197, netPriceAmount#3452193, netPriceCurrencyCode#3452194, measurements#3452198, minimumOrderQuantity#3452187, constraintLabels#3452188, constraintOperators#3452189, constraintRanks#3452191, constraintValues#3452190, constraintIsActive#3452192, logisticUnits#3452184, optimizationGroups#3452200, externalProductId#3452182, externalPlantId#3452183, supplyingPlant#3452164, productGroup#3452165]
Arguments: 1
(13) Filter
Input [45]: [orderProposalId#3452157L, orderProposalItemId#3452158, supplierGroup#3452159, supplier#3452160, plant#3452161, deliveryDateTime#3452162, subrange#3452163, supplyingPlant#3452164, productGroup#3452165, product#3452166, orderDateTime#3452167, availabilityDateTime#3452168, nextAvailabilityDateTime#3452169, mrpController#3452170, sourceOfSupplyUuid#3452171, purchasingOrg#3452172, purchasingGroup#3452173, isFallbackOrderOnly#3452174, orderProposalHorizonGroupingId#3452175L, splitIndicator#3452176L, previousOrderProposal#3452177L, clusterId#3452178L, worklistShardItemId#3452180L, orderProposalItemGroupId#3452181, externalProductId#3452182, externalPlantId#3452183, logisticUnits#3452184, orderQuantityBaseUom#3452185, orderQuantityBaseUomUuid#3452186, minimumOrderQuantity#3452187, constraintLabels#3452188, constraintOperators#3452189, constraintValues#3452190, constraintRanks#3452191, constraintIsActive#3452192, netPriceAmount#3452193, netPriceCurrencyCode#3452194, netPriceQuantity#3452195, netPriceQuantityUom#3452196, netPriceQuantityUomUuid#3452197, measurements#3452198, originalReplenishmentRunId#3452199L, optimizationGroups#3452200, shardId#3452201, sequenceId#3452179]
Condition : ((isnotnull(availabilityDateTime#3452168) AND isnotnull(nextAvailabilityDateTime#3452169)) AND (nextAvailabilityDateTime#3452169 > availabilityDateTime#3452168))
(14) Project
Output [44]: [orderProposalId#3452157L, orderProposalItemId#3452158, supplierGroup#3452159, supplier#3452160, plant#3452161, deliveryDateTime#3452162, subrange#3452163, supplyingPlant#3452164, productGroup#3452165, product#3452166, orderDateTime#3452167, availabilityDateTime#3452168, nextAvailabilityDateTime#3452169, mrpController#3452170, sourceOfSupplyUuid#3452171, purchasingOrg#3452172, purchasingGroup#3452173, isFallbackOrderOnly#3452174, orderProposalHorizonGroupingId#3452175L, splitIndicator#3452176L, previousOrderProposal#3452177L, clusterId#3452178L, sequenceId#3452179, worklistShardItemId#3452180L, orderProposalItemGroupId#3452181, externalProductId#3452182, externalPlantId#3452183, logisticUnits#3452184, orderQuantityBaseUom#3452185, orderQuantityBaseUomUuid#3452186, minimumOrderQuantity#3452187, constraintLabels#3452188, constraintOperators#3452189, constraintValues#3452190, constraintRanks#3452191, constraintIsActive#3452192, netPriceAmount#3452193, netPriceCurrencyCode#3452194, netPriceQuantity#3452195, netPriceQuantityUom#3452196, netPriceQuantityUomUuid#3452197, measurements#3452198, originalReplenishmentRunId#3452199L, optimizationGroups#3452200]
Input [45]: [orderProposalId#3452157L, orderProposalItemId#3452158, supplierGroup#3452159, supplier#3452160, plant#3452161, deliveryDateTime#3452162, subrange#3452163, supplyingPlant#3452164, productGroup#3452165, product#3452166, orderDateTime#3452167, availabilityDateTime#3452168, nextAvailabilityDateTime#3452169, mrpController#3452170, sourceOfSupplyUuid#3452171, purchasingOrg#3452172, purchasingGroup#3452173, isFallbackOrderOnly#3452174, orderProposalHorizonGroupingId#3452175L, splitIndicator#3452176L, previousOrderProposal#3452177L, clusterId#3452178L, worklistShardItemId#3452180L, orderProposalItemGroupId#3452181, externalProductId#3452182, externalPlantId#3452183, logisticUnits#3452184, orderQuantityBaseUom#3452185, orderQuantityBaseUomUuid#3452186, minimumOrderQuantity#3452187, constraintLabels#3452188, constraintOperators#3452189, constraintValues#3452190, constraintRanks#3452191, constraintIsActive#3452192, netPriceAmount#3452193, netPriceCurrencyCode#3452194, netPriceQuantity#3452195, netPriceQuantityUom#3452196, netPriceQuantityUomUuid#3452197, measurements#3452198, originalReplenishmentRunId#3452199L, optimizationGroups#3452200, shardId#3452201, sequenceId#3452179]
(15) Exchange
Input [44]: [orderProposalId#3452157L, orderProposalItemId#3452158, supplierGroup#3452159, supplier#3452160, plant#3452161, deliveryDateTime#3452162, subrange#3452163, supplyingPlant#3452164, productGroup#3452165, product#3452166, orderDateTime#3452167, availabilityDateTime#3452168, nextAvailabilityDateTime#3452169, mrpController#3452170, sourceOfSupplyUuid#3452171, purchasingOrg#3452172, purchasingGroup#3452173, isFallbackOrderOnly#3452174, orderProposalHorizonGroupingId#3452175L, splitIndicator#3452176L, previousOrderProposal#3452177L, clusterId#3452178L, sequenceId#3452179, worklistShardItemId#3452180L, orderProposalItemGroupId#3452181, externalProductId#3452182, externalPlantId#3452183, logisticUnits#3452184, orderQuantityBaseUom#3452185, orderQuantityBaseUomUuid#3452186, minimumOrderQuantity#3452187, constraintLabels#3452188, constraintOperators#3452189, constraintValues#3452190, constraintRanks#3452191, constraintIsActive#3452192, netPriceAmount#3452193, netPriceCurrencyCode#3452194, netPriceQuantity#3452195, netPriceQuantityUom#3452196, netPriceQuantityUomUuid#3452197, measurements#3452198, originalReplenishmentRunId#3452199L, optimizationGroups#3452200]
Arguments: hashpartitioning(worklistShardItemId#3452180L, 37), REPARTITION_BY_NUM, [plan_id=992349]
(16) Project
Output [45]: [0_5_10000000532 AS shardId#3452112, worklistShardItemId#3452180L, orderProposalId#3452157L, orderProposalItemId#3452158, orderProposalItemGroupId#3452181, originalReplenishmentRunId#3452199L, orderProposalHorizonGroupingId#3452175L, splitIndicator#3452176L, previousOrderProposal#3452177L, clusterId#3452178L, cast(sequenceId#3452179 as bigint) AS sequenceId#3452122L, sourceOfSupplyUuid#3452171, supplierGroup#3452159, supplier#3452160, subrange#3452163, product#3452166, plant#3452161, purchasingOrg#3452172, purchasingGroup#3452173, mrpController#3452170, orderDateTime#3452167, deliveryDateTime#3452162, availabilityDateTime#3452168, nextAvailabilityDateTime#3452169, isFallbackOrderOnly#3452174, orderQuantityBaseUom#3452185, orderQuantityBaseUomUuid#3452186, netPriceQuantity#3452195, netPriceQuantityUom#3452196, netPriceQuantityUomUuid#3452197, netPriceAmount#3452193, netPriceCurrencyCode#3452194, measurements#3452198, minimumOrderQuantity#3452187, constraintLabels#3452188, constraintOperators#3452189, constraintRanks#3452191, constraintValues#3452190, constraintIsActive#3452192, logisticUnits#3452184, optimizationGroups#3452200, externalProductId#3452182, externalPlantId#3452183, supplyingPlant#3452164, productGroup#3452165]
Input [44]: [orderProposalId#3452157L, orderProposalItemId#3452158, supplierGroup#3452159, supplier#3452160, plant#3452161, deliveryDateTime#3452162, subrange#3452163, supplyingPlant#3452164, productGroup#3452165, product#3452166, orderDateTime#3452167, availabilityDateTime#3452168, nextAvailabilityDateTime#3452169, mrpController#3452170, sourceOfSupplyUuid#3452171, purchasingOrg#3452172, purchasingGroup#3452173, isFallbackOrderOnly#3452174, orderProposalHorizonGroupingId#3452175L, splitIndicator#3452176L, previousOrderProposal#3452177L, clusterId#3452178L, sequenceId#3452179, worklistShardItemId#3452180L, orderProposalItemGroupId#3452181, externalProductId#3452182, externalPlantId#3452183, logisticUnits#3452184, orderQuantityBaseUom#3452185, orderQuantityBaseUomUuid#3452186, minimumOrderQuantity#3452187, constraintLabels#3452188, constraintOperators#3452189, constraintValues#3452190, constraintRanks#3452191, constraintIsActive#3452192, netPriceAmount#3452193, netPriceCurrencyCode#3452194, netPriceQuantity#3452195, netPriceQuantityUom#3452196, netPriceQuantityUomUuid#3452197, measurements#3452198, originalReplenishmentRunId#3452199L, optimizationGroups#3452200]
(17) AdaptiveSparkPlan
Output [45]: [shardId#3452112, worklistShardItemId#3452180L, orderProposalId#3452157L, orderProposalItemId#3452158, orderProposalItemGroupId#3452181, originalReplenishmentRunId#3452199L, orderProposalHorizonGroupingId#3452175L, splitIndicator#3452176L, previousOrderProposal#3452177L, clusterId#3452178L, sequenceId#3452122L, sourceOfSupplyUuid#3452171, supplierGroup#3452159, supplier#3452160, subrange#3452163, product#3452166, plant#3452161, purchasingOrg#3452172, purchasingGroup#3452173, mrpController#3452170, orderDateTime#3452167, deliveryDateTime#3452162, availabilityDateTime#3452168, nextAvailabilityDateTime#3452169, isFallbackOrderOnly#3452174, orderQuantityBaseUom#3452185, orderQuantityBaseUomUuid#3452186, netPriceQuantity#3452195, netPriceQuantityUom#3452196, netPriceQuantityUomUuid#3452197, netPriceAmount#3452193, netPriceCurrencyCode#3452194, measurements#3452198, minimumOrderQuantity#3452187, constraintLabels#3452188, constraintOperators#3452189, constraintRanks#3452191, constraintValues#3452190, constraintIsActive#3452192, logisticUnits#3452184, optimizationGroups#3452200, externalProductId#3452182, externalPlantId#3452183, supplyingPlant#3452164, productGroup#3452165]
Arguments: isFinalPlan=true
(18) TableCacheQueryStage
Output [3]: [shardId#3452112, worklistShardItemId#3452113L, orderProposalId#3452114L]
Arguments: 0
(19) Filter [codegen id : 1]
Input [3]: [shardId#3452112, worklistShardItemId#3452113L, orderProposalId#3452114L]
Condition : (isnotnull(shardId#3452112) AND isnotnull(orderProposalId#3452114L))
(20) ObjectHashAggregate
Input [3]: [shardId#3452112, worklistShardItemId#3452113L, orderProposalId#3452114L]
Keys [2]: [shardId#3452112, orderProposalId#3452114L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#3452113L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#3458861]
Results [3]: [shardId#3452112, orderProposalId#3452114L, buf#3458862]
(21) Exchange
Input [3]: [shardId#3452112, orderProposalId#3452114L, buf#3458862]
Arguments: hashpartitioning(shardId#3452112, orderProposalId#3452114L, 37), ENSURE_REQUIREMENTS, [plan_id=992743]
(22) ShuffleQueryStage [codegen id : 7]
Output [3]: [shardId#3452112, orderProposalId#3452114L, buf#3458862]
Arguments: 2
(23) ObjectHashAggregate [codegen id : 7]
Input [3]: [shardId#3452112, orderProposalId#3452114L, buf#3458862]
Keys [2]: [shardId#3452112, orderProposalId#3452114L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#3452113L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#3452113L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#3457357]
Results [7]: [shardId#3452112, orderProposalId#3452114L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#3452113L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#3457357, lambdafunction(struct(worklistShardItemId, lambda x_11467#3457378.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_11467#3457378.quantityAfterProdPlantOptimization, qty, lambda x_11467#3457378.optimalQuantity), lambda x_11467#3457378, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#3457379, [] AS optimizationGroups#3457373, false AS isOptimal#3457358, 2026-08-31 14:01:58.757396 AS lastModified#3457377, [] AS optimizationInsights#3457374]
(24) Union
(25) Scan ExistingRDD [codegen id : 3]
Output [7]: [shardId#3457389, orderProposalId#3457390L, items#3457391, optimizationGroups#3457392, isOptimal#3457393, lastModified#3457394, optimizationInsights#3457395]
Arguments: [shardId#3457389, orderProposalId#3457390L, items#3457391, optimizationGroups#3457392, isOptimal#3457393, lastModified#3457394, optimizationInsights#3457395], MapPartitionsRDD[146976] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(26) Filter [codegen id : 3]
Input [7]: [shardId#3457389, orderProposalId#3457390L, items#3457391, optimizationGroups#3457392, isOptimal#3457393, lastModified#3457394, optimizationInsights#3457395]
Condition : (isnotnull(shardId#3457389) AND isnotnull(orderProposalId#3457390L))
(27) Project [codegen id : 3]
Output [3]: [shardId#3457389, orderProposalId#3457390L, lastModified#3457394]
Input [7]: [shardId#3457389, orderProposalId#3457390L, items#3457391, optimizationGroups#3457392, isOptimal#3457393, lastModified#3457394, optimizationInsights#3457395]
(28) InMemoryTableScan
Output [2]: [shardId#3457396, orderProposalId#3457398L]
Arguments: [shardId#3457396, orderProposalId#3457398L], [isnotnull(shardId#3457396), isnotnull(orderProposalId#3457398L)]
(29) InMemoryRelation
Arguments: [shardId#3457396, worklistShardItemId#3457397L, orderProposalId#3457398L, orderProposalItemId#3457399, orderProposalItemGroupId#3457400, originalReplenishmentRunId#3457401L, orderProposalHorizonGroupingId#3457402L, splitIndicator#3457403L, previousOrderProposal#3457404L, clusterId#3457405L, sequenceId#3457406L, sourceOfSupplyUuid#3457407, supplierGroup#3457408, supplier#3457409, subrange#3457410, product#3457411, plant#3457412, purchasingOrg#3457413, purchasingGroup#3457414, mrpController#3457415, orderDateTime#3457416, deliveryDateTime#3457417, availabilityDateTime#3457418, nextAvailabilityDateTime#3457419, isFallbackOrderOnly#3457420, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(30) TableCacheQueryStage
Output [2]: [shardId#3457396, orderProposalId#3457398L]
Arguments: 1
(31) Filter [codegen id : 2]
Input [2]: [shardId#3457396, orderProposalId#3457398L]
Condition : (isnotnull(shardId#3457396) AND isnotnull(orderProposalId#3457398L))
(32) HashAggregate [codegen id : 2]
Input [2]: [shardId#3457396, orderProposalId#3457398L]
Keys [2]: [shardId#3457396, orderProposalId#3457398L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#3457396, orderProposalId#3457398L]
(33) Exchange
Input [2]: [shardId#3457396, orderProposalId#3457398L]
Arguments: hashpartitioning(shardId#3457396, orderProposalId#3457398L, 37), ENSURE_REQUIREMENTS, [plan_id=992779]
(34) ShuffleQueryStage
Output [2]: [shardId#3457396, orderProposalId#3457398L]
Arguments: 3
(35) AQEShuffleRead
Input [2]: [shardId#3457396, orderProposalId#3457398L]
Arguments: coalesced
(36) HashAggregate [codegen id : 4]
Input [2]: [shardId#3457396, orderProposalId#3457398L]
Keys [2]: [shardId#3457396, orderProposalId#3457398L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#3457396, orderProposalId#3457398L, 2026-08-31 14:01:58.757396 AS lastModified#3457493]
(37) Union
(38) HashAggregate [codegen id : 5]
Input [3]: [shardId#3457389, orderProposalId#3457390L, lastModified#3457394]
Keys [2]: [shardId#3457389, orderProposalId#3457390L]
Functions [1]: [partial_max(lastModified#3457394)]
Aggregate Attributes [1]: [max#3458863]
Results [3]: [shardId#3457389, orderProposalId#3457390L, max#3458864]
(39) Exchange
Input [3]: [shardId#3457389, orderProposalId#3457390L, max#3458864]
Arguments: hashpartitioning(shardId#3457389, orderProposalId#3457390L, 37), ENSURE_REQUIREMENTS, [plan_id=992883]
(40) ShuffleQueryStage
Output [3]: [shardId#3457389, orderProposalId#3457390L, max#3458864]
Arguments: 4
(41) AQEShuffleRead
Input [3]: [shardId#3457389, orderProposalId#3457390L, max#3458864]
Arguments: coalesced
(42) HashAggregate [codegen id : 6]
Input [3]: [shardId#3457389, orderProposalId#3457390L, max#3458864]
Keys [2]: [shardId#3457389, orderProposalId#3457390L]
Functions [1]: [max(lastModified#3457394)]
Aggregate Attributes [1]: [max(lastModified#3457394)#3457388]
Results [3]: [shardId#3457389, orderProposalId#3457390L, max(lastModified#3457394)#3457388 AS lastModified#3457380]
(43) Filter [codegen id : 6]
Input [3]: [shardId#3457389, orderProposalId#3457390L, lastModified#3457380]
Condition : isnotnull(lastModified#3457380)
(44) BroadcastExchange
Input [3]: [shardId#3457389, orderProposalId#3457390L, lastModified#3457380]
Arguments: HashedRelationBroadcastMode(List(input[0, string, true], input[1, bigint, true], input[2, timestamp, false]),false), [plan_id=992946]
(45) BroadcastQueryStage
Output [3]: [shardId#3457389, orderProposalId#3457390L, lastModified#3457380]
Arguments: 5
(46) BroadcastHashJoin [codegen id : 8]
Left keys [3]: [shardId#3457366, orderProposalId#3457367L, lastModified#3457371]
Right keys [3]: [shardId#3457389, orderProposalId#3457390L, lastModified#3457380]
Join type: Inner
Join condition: None
(47) Project [codegen id : 8]
Output [7]: [shardId#3457366, orderProposalId#3457367L, items#3457368, optimizationGroups#3457369, isOptimal#3457370, lastModified#3457371, optimizationInsights#3457372]
Input [10]: [shardId#3457366, orderProposalId#3457367L, items#3457368, optimizationGroups#3457369, isOptimal#3457370, lastModified#3457371, optimizationInsights#3457372, shardId#3457389, orderProposalId#3457390L, lastModified#3457380]
(48) DeserializeToObject
Input [7]: [shardId#3457366, orderProposalId#3457367L, items#3457368, optimizationGroups#3457369, isOptimal#3457370, lastModified#3457371, optimizationInsights#3457372]
Arguments: createexternalrow(invoke(shardId#3457366.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#3457367L)), 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#3457368, 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#3457369, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#3457370)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#3457371)), 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#3457372, 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#3457510: org.apache.spark.sql.Row
(49) ResultQueryStage
Output [1]: [obj#3457510]
Arguments: 6
(50) Scan ExistingRDD
Output [7]: [shardId#3457366, orderProposalId#3457367L, items#3457368, optimizationGroups#3457369, isOptimal#3457370, lastModified#3457371, optimizationInsights#3457372]
Arguments: [shardId#3457366, orderProposalId#3457367L, items#3457368, optimizationGroups#3457369, isOptimal#3457370, lastModified#3457371, optimizationInsights#3457372], MapPartitionsRDD[146976] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(51) Filter
Input [7]: [shardId#3457366, orderProposalId#3457367L, items#3457368, optimizationGroups#3457369, isOptimal#3457370, lastModified#3457371, optimizationInsights#3457372]
Condition : ((isnotnull(shardId#3457366) AND isnotnull(orderProposalId#3457367L)) AND isnotnull(lastModified#3457371))
(52) Filter
Input [3]: [shardId#3452112, worklistShardItemId#3452113L, orderProposalId#3452114L]
Condition : (isnotnull(shardId#3452112) AND isnotnull(orderProposalId#3452114L))
(53) ObjectHashAggregate
Input [3]: [shardId#3452112, worklistShardItemId#3452113L, orderProposalId#3452114L]
Keys [2]: [shardId#3452112, orderProposalId#3452114L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#3452113L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#3458861]
Results [3]: [shardId#3452112, orderProposalId#3452114L, buf#3458862]
(54) Exchange
Input [3]: [shardId#3452112, orderProposalId#3452114L, buf#3458862]
Arguments: hashpartitioning(shardId#3452112, orderProposalId#3452114L, 37), ENSURE_REQUIREMENTS, [plan_id=992572]
(55) ObjectHashAggregate
Input [3]: [shardId#3452112, orderProposalId#3452114L, buf#3458862]
Keys [2]: [shardId#3452112, orderProposalId#3452114L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#3452113L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#3452113L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#3457357]
Results [7]: [shardId#3452112, orderProposalId#3452114L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#3452113L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#3457357, lambdafunction(struct(worklistShardItemId, lambda x_11467#3457378.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_11467#3457378.quantityAfterProdPlantOptimization, qty, lambda x_11467#3457378.optimalQuantity), lambda x_11467#3457378, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#3457379, [] AS optimizationGroups#3457373, false AS isOptimal#3457358, 2026-08-31 14:01:58.757396 AS lastModified#3457377, [] AS optimizationInsights#3457374]
(56) Union
(57) Exchange
Input [7]: [shardId#3457366, orderProposalId#3457367L, items#3457368, optimizationGroups#3457369, isOptimal#3457370, lastModified#3457371, optimizationInsights#3457372]
Arguments: hashpartitioning(shardId#3457366, orderProposalId#3457367L, lastModified#3457371, 37), ENSURE_REQUIREMENTS, [plan_id=992585]
(58) Sort
Input [7]: [shardId#3457366, orderProposalId#3457367L, items#3457368, optimizationGroups#3457369, isOptimal#3457370, lastModified#3457371, optimizationInsights#3457372]
Arguments: [shardId#3457366 ASC NULLS FIRST, orderProposalId#3457367L ASC NULLS FIRST, lastModified#3457371 ASC NULLS FIRST], false, 0
(59) Filter
Input [2]: [shardId#3457396, orderProposalId#3457398L]
Condition : (isnotnull(shardId#3457396) AND isnotnull(orderProposalId#3457398L))
(60) HashAggregate
Input [2]: [shardId#3457396, orderProposalId#3457398L]
Keys [2]: [shardId#3457396, orderProposalId#3457398L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#3457396, orderProposalId#3457398L]
(61) Exchange
Input [2]: [shardId#3457396, orderProposalId#3457398L]
Arguments: hashpartitioning(shardId#3457396, orderProposalId#3457398L, 37), ENSURE_REQUIREMENTS, [plan_id=992575]
(62) HashAggregate
Input [2]: [shardId#3457396, orderProposalId#3457398L]
Keys [2]: [shardId#3457396, orderProposalId#3457398L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#3457396, orderProposalId#3457398L, 2026-08-31 14:01:58.757396 AS lastModified#3457493]
(63) Union
(64) HashAggregate
Input [3]: [shardId#3457389, orderProposalId#3457390L, lastModified#3457394]
Keys [2]: [shardId#3457389, orderProposalId#3457390L]
Functions [1]: [partial_max(lastModified#3457394)]
Aggregate Attributes [1]: [max#3458863]
Results [3]: [shardId#3457389, orderProposalId#3457390L, max#3458864]
(65) Exchange
Input [3]: [shardId#3457389, orderProposalId#3457390L, max#3458864]
Arguments: hashpartitioning(shardId#3457389, orderProposalId#3457390L, 37), ENSURE_REQUIREMENTS, [plan_id=992580]
(66) HashAggregate
Input [3]: [shardId#3457389, orderProposalId#3457390L, max#3458864]
Keys [2]: [shardId#3457389, orderProposalId#3457390L]
Functions [1]: [max(lastModified#3457394)]
Aggregate Attributes [1]: [max(lastModified#3457394)#3457388]
Results [3]: [shardId#3457389, orderProposalId#3457390L, max(lastModified#3457394)#3457388 AS lastModified#3457380]
(67) Filter
Input [3]: [shardId#3457389, orderProposalId#3457390L, lastModified#3457380]
Condition : isnotnull(lastModified#3457380)
(68) Exchange
Input [3]: [shardId#3457389, orderProposalId#3457390L, lastModified#3457380]
Arguments: hashpartitioning(shardId#3457389, orderProposalId#3457390L, lastModified#3457380, 37), ENSURE_REQUIREMENTS, [plan_id=992586]
(69) Sort
Input [3]: [shardId#3457389, orderProposalId#3457390L, lastModified#3457380]
Arguments: [shardId#3457389 ASC NULLS FIRST, orderProposalId#3457390L ASC NULLS FIRST, lastModified#3457380 ASC NULLS FIRST], false, 0
(70) SortMergeJoin
Left keys [3]: [shardId#3457366, orderProposalId#3457367L, lastModified#3457371]
Right keys [3]: [shardId#3457389, orderProposalId#3457390L, lastModified#3457380]
Join type: Inner
Join condition: None
(71) Project
Output [7]: [shardId#3457366, orderProposalId#3457367L, items#3457368, optimizationGroups#3457369, isOptimal#3457370, lastModified#3457371, optimizationInsights#3457372]
Input [10]: [shardId#3457366, orderProposalId#3457367L, items#3457368, optimizationGroups#3457369, isOptimal#3457370, lastModified#3457371, optimizationInsights#3457372, shardId#3457389, orderProposalId#3457390L, lastModified#3457380]
(72) DeserializeToObject
Input [7]: [shardId#3457366, orderProposalId#3457367L, items#3457368, optimizationGroups#3457369, isOptimal#3457370, lastModified#3457371, optimizationInsights#3457372]
Arguments: createexternalrow(invoke(shardId#3457366.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#3457367L)), 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#3457368, 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#3457369, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#3457370)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#3457371)), 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#3457372, 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#3457510: org.apache.spark.sql.Row
(73) AdaptiveSparkPlan
Output [1]: [obj#3457510]
Arguments: isFinalPlan=true