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#3545207.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#3545208L)), 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#3545209, 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#3545210, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#3545211)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#3545212)), 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#3545213, 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#3545351: 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#3545207, orderProposalId#3545208L, items#3545209, optimizationGroups#3545210, isOptimal#3545211, lastModified#3545212, optimizationInsights#3545213]"];
4 [id="node4" labelType="html" label="<br><b>BroadcastHashJoin</b><br><br>" tooltip="BroadcastHashJoin [shardId#3545207, orderProposalId#3545208L, lastModified#3545212], [shardId#3545230, orderProposalId#3545231L, lastModified#3545221], Inner, BuildRight, false"];
}
5 [id="node5" labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 37" tooltip="AQEShuffleRead local"];
6 [id="node6" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 7,679<br>data size total (min, med, max (stageId: taskId))<br>15.7 MiB (83.4 KiB, 471.7 KiB, 493.6 KiB (stage 329100.0: task 926550))<br>shuffle write time total (min, med, max (stageId: taskId))<br>88 ms (1 ms, 1 ms, 2 ms (stage 329100.0: task 926487))<br>number of partitions: 37<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>2.6 MiB (19.7 KiB, 75.2 KiB, 78.1 KiB (stage 329100.0: task 926550))" tooltip="Exchange hashpartitioning(shardId#3545207, orderProposalId#3545208L, lastModified#3545212, 37), ENSURE_REQUIREMENTS, [plan_id=1016174]"];
7 [id="node7" labelType="html" label="<br><b>Union</b><br><br>" tooltip="Union"];
subgraph cluster8 {
isCluster="true";
id="cluster8";
label="WholeStageCodegen (6)\n \nduration: total (min, med, max (stageId: taskId))\n947 ms (17 ms, 19 ms, 141 ms (stage 329100.0: task 926485))";
tooltip="WholeStageCodegen (6)";
9 [id="node9" labelType="html" label="<b>Filter</b><br><br>number of output rows: 6,887" tooltip="Filter ((isnotnull(shardId#3545207) AND isnotnull(orderProposalId#3545208L)) AND isnotnull(lastModified#3545212))"];
10 [id="node10" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 6,887" tooltip="Scan ExistingRDD[shardId#3545207,orderProposalId#3545208L,items#3545209,optimizationGroups#3545210,isOptimal#3545211,lastModified#3545212,optimizationInsights#3545213]"];
}
11 [id="node11" labelType="html" label="<b>ObjectHashAggregate</b><br><br>number of output rows: 792<br>time in aggregation build total (min, med, max (stageId: taskId))<br>207 ms (8 ms, 11 ms, 37 ms (stage 329100.0: task 926561))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 329100.0: task 926561))<br>number of sort fallback tasks: 0" tooltip="ObjectHashAggregate(keys=[shardId#3537581, orderProposalId#3537583L], functions=[collect_list(struct(worklistShardItemId, worklistShardItemId#3537582L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)])"];
12 [id="node12" labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 15<br>partition data size total (min, med, max (stageId: taskId))<br>980.5 KiB (50.4 KiB, 58.9 KiB, 95.3 KiB (driver))<br>number of coalesced partitions: 15" tooltip="AQEShuffleRead coalesced"];
13 [id="node13" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 21,928<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 21,928<br>local bytes read total (min, med, max (stageId: taskId))<br>353.8 KiB (18.0 KiB, 21.3 KiB, 33.7 KiB (stage 329100.0: task 926575))<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>3.2 MiB (84.0 KiB, 88.5 KiB, 92.5 KiB (stage 329045.0: task 926128))<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>121 ms (1 ms, 2 ms, 22 ms (stage 329045.0: task 926134))<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>1 ms (0 ms, 0 ms, 1 ms (stage 329100.0: task 926565))<br>remote bytes read total (min, med, max (stageId: taskId))<br>582.0 KiB (29.9 KiB, 35.5 KiB, 57.3 KiB (stage 329100.0: task 926575))<br>number of partitions: 37<br>remote reqs duration total (min, med, max (stageId: taskId))<br>102 ms (4 ms, 6 ms, 21 ms (stage 329100.0: task 926562))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>935.8 KiB (24.2 KiB, 25.2 KiB, 26.7 KiB (stage 329045.0: task 926226))" tooltip="Exchange hashpartitioning(shardId#3537581, orderProposalId#3537583L, 37), ENSURE_REQUIREMENTS, [plan_id=1015942]"];
14 [id="node14" labelType="html" label="<b>ObjectHashAggregate</b><br><br>number of output rows: 21,928<br>time in aggregation build total (min, med, max (stageId: taskId))<br>1.8 s (3 ms, 4 ms, 1.3 s (stage 329045.0: task 926231))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 329045.0: task 926070))<br>number of sort fallback tasks: 37" tooltip="ObjectHashAggregate(keys=[shardId#3537581, orderProposalId#3537583L], functions=[partial_collect_list(struct(worklistShardItemId, worklistShardItemId#3537582L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)])"];
subgraph cluster15 {
isCluster="true";
id="cluster15";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n1.8 s (2 ms, 3 ms, 1.3 s (stage 329045.0: task 926231))";
tooltip="WholeStageCodegen (1)";
16 [id="node16" labelType="html" label="<b>Filter</b><br><br>number of output rows: 39,968" tooltip="Filter (isnotnull(shardId#3537581) AND isnotnull(orderProposalId#3537583L))"];
}
17 [id="node17" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 39,968" tooltip="InMemoryTableScan [shardId#3537581, worklistShardItemId#3537582L, orderProposalId#3537583L], [isnotnull(shardId#3537581), isnotnull(orderProposalId#3537583L)]"];
18 [id="node18" labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>" tooltip="AdaptiveSparkPlan isFinalPlan=true"];
subgraph cluster19 {
isCluster="true";
id="cluster19";
label="WholeStageCodegen (2)\n \nduration: 0 ms";
tooltip="WholeStageCodegen (2)";
20 [id="node20" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [0_7_10000000532 AS shardId#3537581, worklistShardItemId#3537680L, orderProposalId#3537657L, orderProposalItemId#3537658, orderProposalItemGroupId#3537681, originalReplenishmentRunId#3537699L, orderProposalHorizonGroupingId#3537675L, splitIndicator#3537676L, previousOrderProposal#3537677L, clusterId#3537678L, cast(sequenceId#3537679 as bigint) AS sequenceId#3537591L, sourceOfSupplyUuid#3537671, supplierGroup#3537659, supplier#3537660, subrange#3537663, product#3537666, plant#3537661, purchasingOrg#3537672, purchasingGroup#3537673, mrpController#3537670, orderDateTime#3537667, deliveryDateTime#3537662, availabilityDateTime#3537668, nextAvailabilityDateTime#3537669, isFallbackOrderOnly#3537674, ... 20 more fields]"];
}
21 [id="node21" 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#3537680L, 37), REPARTITION_BY_NUM, [plan_id=1014342]"];
subgraph cluster22 {
isCluster="true";
id="cluster22";
label="WholeStageCodegen (1)";
tooltip="WholeStageCodegen (1)";
23 [id="node23" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [orderProposalId#3537657L, orderProposalItemId#3537658, supplierGroup#3537659, supplier#3537660, plant#3537661, deliveryDateTime#3537662, subrange#3537663, supplyingPlant#3537664, productGroup#3537665, product#3537666, orderDateTime#3537667, availabilityDateTime#3537668, nextAvailabilityDateTime#3537669, mrpController#3537670, sourceOfSupplyUuid#3537671, purchasingOrg#3537672, purchasingGroup#3537673, isFallbackOrderOnly#3537674, orderProposalHorizonGroupingId#3537675L, splitIndicator#3537676L, previousOrderProposal#3537677L, clusterId#3537678L, sequenceId#3537679, worklistShardItemId#3537680L, orderProposalItemGroupId#3537681, ... 19 more fields]"];
24 [id="node24" labelType="html" label="<br><b>Filter</b><br><br>" tooltip="Filter ((isnotnull(availabilityDateTime#3537668) AND isnotnull(nextAvailabilityDateTime#3537669)) AND (nextAvailabilityDateTime#3537669 > availabilityDateTime#3537668))"];
25 [id="node25" labelType="html" label="<br><b>ColumnarToRow</b><br><br>" tooltip="ColumnarToRow"];
}
26 [id="node26" labelType="html" label="<br><b>Scan parquet </b><br><br>" tooltip="FileScan parquet [orderProposalId#3537657L,orderProposalItemId#3537658,supplierGroup#3537659,supplier#3537660,plant#3537661,deliveryDateTime#3537662,subrange#3537663,supplyingPlant#3537664,productGroup#3537665,product#3537666,orderDateTime#3537667,availabilityDateTime#3537668,nextAvailabilityDateTime#3537669,mrpController#3537670,sourceOfSupplyUuid#3537671,purchasingOrg#3537672,purchasingGroup#3537673,isFallbackOrderOnly#3537674,orderProposalHorizonGroupingId#3537675L,splitIndicator#3537676L,previousOrderProposal#3537677L,clusterId#3537678L,worklistShardItemId#3537680L,orderProposalItemGroupId#3537681,externalProductId#3537682,... 20 more fields] Batched: true, DataFilters: [isnotnull(availabilityDateTime#3537668), isnotnull(nextAvailabilityDateTime#3537669), (nextAvail..., Format: Parquet, Location: PreparedDeltaFileIndex(1 paths)[hdlfs://7da5304c-1f57-47fa-b75a-0f0b4349c280.files.hdl.prod-eu20...., PartitionFilters: [isnotnull(shardId#3537701), isnotnull(sequenceId#3537679), (shardId#3537701 = 0_7_10000000532), ..., PushedFilters: [IsNotNull(availabilityDateTime), IsNotNull(nextAvailabilityDateTime)], ReadSchema: struct<orderProposalId:bigint,orderProposalItemId:string,supplierGroup:string,supplier:string,pla..."];
27 [id="node27" labelType="html" label="<b>BroadcastExchange</b><br><br>time to broadcast: 1 ms<br>time to build: 2 ms<br>time to collect: 133 ms<br>number of output rows: 7,679<br>data size: 2.3 MiB" tooltip="BroadcastExchange HashedRelationBroadcastMode(List(input[0, string, true], input[1, bigint, true], input[2, timestamp, false]),false), [plan_id=1016241]"];
subgraph cluster28 {
isCluster="true";
id="cluster28";
label="WholeStageCodegen (7)\n \nduration: total (min, med, max (stageId: taskId))\n109 ms (22 ms, 27 ms, 33 ms (stage 329119.0: task 926545))";
tooltip="WholeStageCodegen (7)";
29 [id="node29" labelType="html" label="<b>Filter</b><br><br>number of output rows: 7,679" tooltip="Filter isnotnull(lastModified#3545221)"];
30 [id="node30" 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>101 ms (21 ms, 24 ms, 32 ms (stage 329119.0: task 926545))<br>peak memory total (min, med, max (stageId: taskId))<br>9.0 MiB (2.3 MiB, 2.3 MiB, 2.3 MiB (stage 329119.0: task 926542))<br>number of output rows: 7,679<br>number of sort fallback tasks: 0<br>avg hash probes per key (min, med, max (stageId: taskId)):<br>(1, 1, 1 (stage 329119.0: task 926542))" tooltip="HashAggregate(keys=[shardId#3545230, orderProposalId#3545231L], functions=[max(lastModified#3545235)])"];
}
31 [id="node31" labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 4<br>partition data size total (min, med, max (stageId: taskId))<br>227.7 KiB (50.7 KiB, 55.9 KiB, 66.6 KiB (driver))<br>number of coalesced partitions: 4" tooltip="AQEShuffleRead coalesced"];
32 [id="node32" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 7,679<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 7,679<br>local bytes read total (min, med, max (stageId: taskId))<br>102.7 KiB (22.9 KiB, 25.2 KiB, 29.7 KiB (stage 329119.0: task 926545))<br>merged fetch fallback count: 0<br>local blocks read: 554<br>remote merged chunks fetched: 0<br>remote blocks read: 592<br>data size total (min, med, max (stageId: taskId))<br>360.0 KiB (4.7 KiB, 10.7 KiB, 11.0 KiB (stage 329064.0: task 926356))<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>64 ms (0 ms, 1 ms, 2 ms (stage 329064.0: task 926368))<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 329119.0: task 926542))<br>remote bytes read total (min, med, max (stageId: taskId))<br>115.4 KiB (25.6 KiB, 28.4 KiB, 34.1 KiB (stage 329119.0: task 926545))<br>number of partitions: 37<br>remote reqs duration total (min, med, max (stageId: taskId))<br>80 ms (18 ms, 21 ms, 22 ms (stage 329119.0: task 926542))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>218.1 KiB (1708.0 B, 6.8 KiB, 6.9 KiB (stage 329064.0: task 926350))" tooltip="Exchange hashpartitioning(shardId#3545230, orderProposalId#3545231L, 37), ENSURE_REQUIREMENTS, [plan_id=1016082]"];
subgraph cluster33 {
isCluster="true";
id="cluster33";
label="WholeStageCodegen (5)\n \nduration: total (min, med, max (stageId: taskId))\n2.5 s (17 ms, 21 ms, 983 ms (stage 329064.0: task 926247))";
tooltip="WholeStageCodegen (5)";
34 [id="node34" labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build total (min, med, max (stageId: taskId))<br>1.6 s (13 ms, 15 ms, 521 ms (stage 329064.0: task 926247))<br>peak memory total (min, med, max (stageId: taskId))<br>9.3 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 329064.0: task 926273))<br>number of output rows: 7,679<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#3545230, orderProposalId#3545231L], functions=[partial_max(lastModified#3545235)])"];
}
35 [id="node35" labelType="html" label="<br><b>Union</b><br><br>" tooltip="Union"];
subgraph cluster36 {
isCluster="true";
id="cluster36";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n2.5 s (13 ms, 16 ms, 1.3 s (stage 329064.0: task 926247))";
tooltip="WholeStageCodegen (3)";
37 [id="node37" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [shardId#3545230, orderProposalId#3545231L, lastModified#3545235]"];
38 [id="node38" labelType="html" label="<b>Filter</b><br><br>number of output rows: 6,887" tooltip="Filter (isnotnull(shardId#3545230) AND isnotnull(orderProposalId#3545231L))"];
39 [id="node39" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 6,887" tooltip="Scan ExistingRDD[shardId#3545230,orderProposalId#3545231L,items#3545232,optimizationGroups#3545233,isOptimal#3545234,lastModified#3545235,optimizationInsights#3545236]"];
}
subgraph cluster40 {
isCluster="true";
id="cluster40";
label="WholeStageCodegen (4)\n \nduration: total (min, med, max (stageId: taskId))\n326 ms (19 ms, 43 ms, 77 ms (stage 329064.0: task 926390))";
tooltip="WholeStageCodegen (4)";
41 [id="node41" 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>192 ms (17 ms, 27 ms, 43 ms (stage 329064.0: task 926383))<br>peak memory total (min, med, max (stageId: taskId))<br>1792.0 KiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 329064.0: task 926387))<br>number of output rows: 792<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#3545237, orderProposalId#3545239L], functions=[])"];
}
42 [id="node42" labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 7<br>partition data size total (min, med, max (stageId: taskId))<br>397.4 KiB (50.9 KiB, 53.9 KiB, 74.0 KiB (driver))<br>number of coalesced partitions: 7" tooltip="AQEShuffleRead coalesced"];
43 [id="node43" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 21,928<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 21,928<br>local bytes read total (min, med, max (stageId: taskId))<br>235.4 KiB (12.3 KiB, 38.1 KiB, 54.1 KiB (stage 329064.0: task 926401))<br>merged fetch fallback count: 0<br>local blocks read: 846<br>remote merged chunks fetched: 0<br>remote blocks read: 523<br>data size total (min, med, max (stageId: taskId))<br>856.6 KiB (22.3 KiB, 23.2 KiB, 24.2 KiB (stage 329046.0: task 926224))<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>82 ms (1 ms, 1 ms, 3 ms (stage 329046.0: task 926126))<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 329064.0: task 926387))<br>remote bytes read total (min, med, max (stageId: taskId))<br>146.6 KiB (11.9 KiB, 13.4 KiB, 41.6 KiB (stage 329064.0: task 926390))<br>number of partitions: 37<br>remote reqs duration total (min, med, max (stageId: taskId))<br>37 ms (4 ms, 5 ms, 8 ms (stage 329064.0: task 926390))<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>382.0 KiB (10.1 KiB, 10.3 KiB, 10.6 KiB (stage 329046.0: task 926224))" tooltip="Exchange hashpartitioning(shardId#3545237, orderProposalId#3545239L, 37), ENSURE_REQUIREMENTS, [plan_id=1015978]"];
subgraph cluster44 {
isCluster="true";
id="cluster44";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n588 ms (5 ms, 7 ms, 216 ms (stage 329046.0: task 926077))";
tooltip="WholeStageCodegen (2)";
45 [id="node45" 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>52 ms (1 ms, 1 ms, 7 ms (stage 329046.0: task 926077))<br>peak memory total (min, med, max (stageId: taskId))<br>9.3 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 329046.0: task 926102))<br>number of output rows: 21,928<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#3545237, orderProposalId#3545239L], functions=[])"];
46 [id="node46" labelType="html" label="<b>Filter</b><br><br>number of output rows: 39,968" tooltip="Filter (isnotnull(shardId#3545237) AND isnotnull(orderProposalId#3545239L))"];
}
47 [id="node47" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 39,968" tooltip="InMemoryTableScan [shardId#3545237, orderProposalId#3545239L], [isnotnull(shardId#3545237), isnotnull(orderProposalId#3545239L)]"];
48 [id="node48" labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>" tooltip="AdaptiveSparkPlan isFinalPlan=true"];
subgraph cluster49 {
isCluster="true";
id="cluster49";
label="WholeStageCodegen (2)\n \nduration: 0 ms";
tooltip="WholeStageCodegen (2)";
50 [id="node50" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [0_7_10000000532 AS shardId#3537581, worklistShardItemId#3537680L, orderProposalId#3537657L, orderProposalItemId#3537658, orderProposalItemGroupId#3537681, originalReplenishmentRunId#3537699L, orderProposalHorizonGroupingId#3537675L, splitIndicator#3537676L, previousOrderProposal#3537677L, clusterId#3537678L, cast(sequenceId#3537679 as bigint) AS sequenceId#3537591L, sourceOfSupplyUuid#3537671, supplierGroup#3537659, supplier#3537660, subrange#3537663, product#3537666, plant#3537661, purchasingOrg#3537672, purchasingGroup#3537673, mrpController#3537670, orderDateTime#3537667, deliveryDateTime#3537662, availabilityDateTime#3537668, nextAvailabilityDateTime#3537669, isFallbackOrderOnly#3537674, ... 20 more fields]"];
}
1->0;
3->1;
4->3;
5->4;
6->5;
7->6;
9->7;
10->9;
11->7;
12->11;
13->12;
14->13;
16->14;
17->16;
18->17;
20->18;
21->20;
23->21;
24->23;
25->24;
26->25;
27->4;
29->27;
30->29;
31->30;
32->31;
34->32;
35->34;
37->35;
38->37;
39->38;
41->35;
42->41;
43->42;
45->43;
46->45;
47->46;
48->47;
50->48;
21->50;
}
== Physical Plan ==
AdaptiveSparkPlan (75)
+- == Final Plan ==
ResultQueryStage (53), Statistics(sizeInBytes=8.0 EiB)
+- DeserializeToObject (52)
+- * Project (51)
+- * BroadcastHashJoin Inner BuildRight (50)
:- AQEShuffleRead (28)
: +- ShuffleQueryStage (27), Statistics(sizeInBytes=15.7 MiB, rowCount=7.68E+3)
: +- Exchange (26)
: +- Union (25)
: :- * Filter (2)
: : +- * Scan ExistingRDD (1)
: +- ObjectHashAggregate (24)
: +- AQEShuffleRead (23)
: +- ShuffleQueryStage (22), Statistics(sizeInBytes=3.2 MiB, rowCount=2.19E+4)
: +- Exchange (21)
: +- ObjectHashAggregate (20)
: +- * Filter (19)
: +- TableCacheQueryStage (18), Statistics(sizeInBytes=46.1 MiB, rowCount=4.00E+4)
: +- InMemoryTableScan (3)
: +- InMemoryRelation (4)
: +- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=51.9 MiB, rowCount=4.00E+4)
+- 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 (49), Statistics(sizeInBytes=2.3 MiB, rowCount=7.68E+3)
+- BroadcastExchange (48)
+- * Filter (47)
+- * HashAggregate (46)
+- AQEShuffleRead (45)
+- ShuffleQueryStage (44), Statistics(sizeInBytes=360.0 KiB, rowCount=7.68E+3)
+- Exchange (43)
+- * HashAggregate (42)
+- Union (41)
:- * Project (31)
: +- * Filter (30)
: +- * Scan ExistingRDD (29)
+- * HashAggregate (40)
+- AQEShuffleRead (39)
+- ShuffleQueryStage (38), Statistics(sizeInBytes=856.6 KiB, rowCount=2.19E+4)
+- Exchange (37)
+- * HashAggregate (36)
+- * Filter (35)
+- TableCacheQueryStage (34), Statistics(sizeInBytes=46.1 MiB, rowCount=4.00E+4)
+- InMemoryTableScan (32)
+- InMemoryRelation (33)
+- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=51.9 MiB, rowCount=4.00E+4)
+- 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 (74)
+- Project (73)
+- SortMergeJoin Inner (72)
:- Sort (60)
: +- Exchange (59)
: +- Union (58)
: :- Filter (2)
: : +- Scan ExistingRDD (1)
: +- ObjectHashAggregate (57)
: +- Exchange (56)
: +- ObjectHashAggregate (55)
: +- Filter (54)
: +- InMemoryTableScan (3)
: +- InMemoryRelation (4)
: +- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=51.9 MiB, rowCount=4.00E+4)
+- 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 (71)
+- Exchange (70)
+- Filter (69)
+- HashAggregate (68)
+- Exchange (67)
+- HashAggregate (66)
+- Union (65)
:- Project (31)
: +- Filter (30)
: +- Scan ExistingRDD (29)
+- HashAggregate (64)
+- Exchange (63)
+- HashAggregate (62)
+- Filter (61)
+- InMemoryTableScan (32)
+- InMemoryRelation (33)
+- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=51.9 MiB, rowCount=4.00E+4)
+- 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 : 6]
Output [7]: [shardId#3545207, orderProposalId#3545208L, items#3545209, optimizationGroups#3545210, isOptimal#3545211, lastModified#3545212, optimizationInsights#3545213]
Arguments: [shardId#3545207, orderProposalId#3545208L, items#3545209, optimizationGroups#3545210, isOptimal#3545211, lastModified#3545212, optimizationInsights#3545213], MapPartitionsRDD[150669] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(2) Filter [codegen id : 6]
Input [7]: [shardId#3545207, orderProposalId#3545208L, items#3545209, optimizationGroups#3545210, isOptimal#3545211, lastModified#3545212, optimizationInsights#3545213]
Condition : ((isnotnull(shardId#3545207) AND isnotnull(orderProposalId#3545208L)) AND isnotnull(lastModified#3545212))
(3) InMemoryTableScan
Output [3]: [shardId#3537581, worklistShardItemId#3537582L, orderProposalId#3537583L]
Arguments: [shardId#3537581, worklistShardItemId#3537582L, orderProposalId#3537583L], [isnotnull(shardId#3537581), isnotnull(orderProposalId#3537583L)]
(4) InMemoryRelation
Arguments: [shardId#3537581, worklistShardItemId#3537582L, orderProposalId#3537583L, orderProposalItemId#3537584, orderProposalItemGroupId#3537585, originalReplenishmentRunId#3537586L, orderProposalHorizonGroupingId#3537587L, splitIndicator#3537588L, previousOrderProposal#3537589L, clusterId#3537590L, sequenceId#3537591L, sourceOfSupplyUuid#3537592, supplierGroup#3537593, supplier#3537594, subrange#3537595, product#3537596, plant#3537597, purchasingOrg#3537598, purchasingGroup#3537599, mrpController#3537600, orderDateTime#3537601, deliveryDateTime#3537602, availabilityDateTime#3537603, nextAvailabilityDateTime#3537604, isFallbackOrderOnly#3537605, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(5) Scan parquet
Output [45]: [orderProposalId#3537657L, orderProposalItemId#3537658, supplierGroup#3537659, supplier#3537660, plant#3537661, deliveryDateTime#3537662, subrange#3537663, supplyingPlant#3537664, productGroup#3537665, product#3537666, orderDateTime#3537667, availabilityDateTime#3537668, nextAvailabilityDateTime#3537669, mrpController#3537670, sourceOfSupplyUuid#3537671, purchasingOrg#3537672, purchasingGroup#3537673, isFallbackOrderOnly#3537674, orderProposalHorizonGroupingId#3537675L, splitIndicator#3537676L, previousOrderProposal#3537677L, clusterId#3537678L, worklistShardItemId#3537680L, orderProposalItemGroupId#3537681, externalProductId#3537682, externalPlantId#3537683, logisticUnits#3537684, orderQuantityBaseUom#3537685, orderQuantityBaseUomUuid#3537686, minimumOrderQuantity#3537687, constraintLabels#3537688, constraintOperators#3537689, constraintValues#3537690, constraintRanks#3537691, constraintIsActive#3537692, netPriceAmount#3537693, netPriceCurrencyCode#3537694, netPriceQuantity#3537695, netPriceQuantityUom#3537696, netPriceQuantityUomUuid#3537697, measurements#3537698, originalReplenishmentRunId#3537699L, optimizationGroups#3537700, shardId#3537701, sequenceId#3537679]
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#3537701), isnotnull(sequenceId#3537679), (shardId#3537701 = 0_7_10000000532), (sequenceId#3537679 = 6)]
PushedFilters: [IsNotNull(availabilityDateTime), IsNotNull(nextAvailabilityDateTime)]
ReadSchema: struct<orderProposalId:bigint,orderProposalItemId:string,supplierGroup:string,supplier:string,plant:string,deliveryDateTime:timestamp,subrange:string,supplyingPlant:string,productGroup:string,product:string,orderDateTime:timestamp,availabilityDateTime:timestamp,nextAvailabilityDateTime:timestamp,mrpController:string,sourceOfSupplyUuid:string,purchasingOrg:string,purchasingGroup:string,isFallbackOrderOnly:boolean,orderProposalHorizonGroupingId:bigint,splitIndicator:bigint,previousOrderProposal:bigint,clusterId:bigint,worklistShardItemId:bigint,orderProposalItemGroupId:string,externalProductId:string,externalPlantId:string,logisticUnits:array<struct<uom:string,uomUuid:string,numerator:int,denominator:int,isOrderUnit:boolean,isPreferred:boolean>>,orderQuantityBaseUom:string,orderQuantityBaseUomUuid:string,minimumOrderQuantity:double,constraintLabels:array<string>,constraintOperators:array<string>,constraintValues:array<double>,constraintRanks:array<int>,constraintIsActive:array<boolean>,netPriceAmount:double,netPriceCurrencyCode:string,netPriceQuantity:double,netPriceQuantityUom:string,netPriceQuantityUomUuid:string,measurements:array<struct<value:double,dimensionType:int,dimensionCode:string,dimensionCodeUuid:string,isoCode:string>>,originalReplenishmentRunId:bigint,optimizationGroups:array<string>>
(6) ColumnarToRow [codegen id : 1]
Input [45]: [orderProposalId#3537657L, orderProposalItemId#3537658, supplierGroup#3537659, supplier#3537660, plant#3537661, deliveryDateTime#3537662, subrange#3537663, supplyingPlant#3537664, productGroup#3537665, product#3537666, orderDateTime#3537667, availabilityDateTime#3537668, nextAvailabilityDateTime#3537669, mrpController#3537670, sourceOfSupplyUuid#3537671, purchasingOrg#3537672, purchasingGroup#3537673, isFallbackOrderOnly#3537674, orderProposalHorizonGroupingId#3537675L, splitIndicator#3537676L, previousOrderProposal#3537677L, clusterId#3537678L, worklistShardItemId#3537680L, orderProposalItemGroupId#3537681, externalProductId#3537682, externalPlantId#3537683, logisticUnits#3537684, orderQuantityBaseUom#3537685, orderQuantityBaseUomUuid#3537686, minimumOrderQuantity#3537687, constraintLabels#3537688, constraintOperators#3537689, constraintValues#3537690, constraintRanks#3537691, constraintIsActive#3537692, netPriceAmount#3537693, netPriceCurrencyCode#3537694, netPriceQuantity#3537695, netPriceQuantityUom#3537696, netPriceQuantityUomUuid#3537697, measurements#3537698, originalReplenishmentRunId#3537699L, optimizationGroups#3537700, shardId#3537701, sequenceId#3537679]
(7) Filter [codegen id : 1]
Input [45]: [orderProposalId#3537657L, orderProposalItemId#3537658, supplierGroup#3537659, supplier#3537660, plant#3537661, deliveryDateTime#3537662, subrange#3537663, supplyingPlant#3537664, productGroup#3537665, product#3537666, orderDateTime#3537667, availabilityDateTime#3537668, nextAvailabilityDateTime#3537669, mrpController#3537670, sourceOfSupplyUuid#3537671, purchasingOrg#3537672, purchasingGroup#3537673, isFallbackOrderOnly#3537674, orderProposalHorizonGroupingId#3537675L, splitIndicator#3537676L, previousOrderProposal#3537677L, clusterId#3537678L, worklistShardItemId#3537680L, orderProposalItemGroupId#3537681, externalProductId#3537682, externalPlantId#3537683, logisticUnits#3537684, orderQuantityBaseUom#3537685, orderQuantityBaseUomUuid#3537686, minimumOrderQuantity#3537687, constraintLabels#3537688, constraintOperators#3537689, constraintValues#3537690, constraintRanks#3537691, constraintIsActive#3537692, netPriceAmount#3537693, netPriceCurrencyCode#3537694, netPriceQuantity#3537695, netPriceQuantityUom#3537696, netPriceQuantityUomUuid#3537697, measurements#3537698, originalReplenishmentRunId#3537699L, optimizationGroups#3537700, shardId#3537701, sequenceId#3537679]
Condition : ((isnotnull(availabilityDateTime#3537668) AND isnotnull(nextAvailabilityDateTime#3537669)) AND (nextAvailabilityDateTime#3537669 > availabilityDateTime#3537668))
(8) Project [codegen id : 1]
Output [44]: [orderProposalId#3537657L, orderProposalItemId#3537658, supplierGroup#3537659, supplier#3537660, plant#3537661, deliveryDateTime#3537662, subrange#3537663, supplyingPlant#3537664, productGroup#3537665, product#3537666, orderDateTime#3537667, availabilityDateTime#3537668, nextAvailabilityDateTime#3537669, mrpController#3537670, sourceOfSupplyUuid#3537671, purchasingOrg#3537672, purchasingGroup#3537673, isFallbackOrderOnly#3537674, orderProposalHorizonGroupingId#3537675L, splitIndicator#3537676L, previousOrderProposal#3537677L, clusterId#3537678L, sequenceId#3537679, worklistShardItemId#3537680L, orderProposalItemGroupId#3537681, externalProductId#3537682, externalPlantId#3537683, logisticUnits#3537684, orderQuantityBaseUom#3537685, orderQuantityBaseUomUuid#3537686, minimumOrderQuantity#3537687, constraintLabels#3537688, constraintOperators#3537689, constraintValues#3537690, constraintRanks#3537691, constraintIsActive#3537692, netPriceAmount#3537693, netPriceCurrencyCode#3537694, netPriceQuantity#3537695, netPriceQuantityUom#3537696, netPriceQuantityUomUuid#3537697, measurements#3537698, originalReplenishmentRunId#3537699L, optimizationGroups#3537700]
Input [45]: [orderProposalId#3537657L, orderProposalItemId#3537658, supplierGroup#3537659, supplier#3537660, plant#3537661, deliveryDateTime#3537662, subrange#3537663, supplyingPlant#3537664, productGroup#3537665, product#3537666, orderDateTime#3537667, availabilityDateTime#3537668, nextAvailabilityDateTime#3537669, mrpController#3537670, sourceOfSupplyUuid#3537671, purchasingOrg#3537672, purchasingGroup#3537673, isFallbackOrderOnly#3537674, orderProposalHorizonGroupingId#3537675L, splitIndicator#3537676L, previousOrderProposal#3537677L, clusterId#3537678L, worklistShardItemId#3537680L, orderProposalItemGroupId#3537681, externalProductId#3537682, externalPlantId#3537683, logisticUnits#3537684, orderQuantityBaseUom#3537685, orderQuantityBaseUomUuid#3537686, minimumOrderQuantity#3537687, constraintLabels#3537688, constraintOperators#3537689, constraintValues#3537690, constraintRanks#3537691, constraintIsActive#3537692, netPriceAmount#3537693, netPriceCurrencyCode#3537694, netPriceQuantity#3537695, netPriceQuantityUom#3537696, netPriceQuantityUomUuid#3537697, measurements#3537698, originalReplenishmentRunId#3537699L, optimizationGroups#3537700, shardId#3537701, sequenceId#3537679]
(9) Exchange
Input [44]: [orderProposalId#3537657L, orderProposalItemId#3537658, supplierGroup#3537659, supplier#3537660, plant#3537661, deliveryDateTime#3537662, subrange#3537663, supplyingPlant#3537664, productGroup#3537665, product#3537666, orderDateTime#3537667, availabilityDateTime#3537668, nextAvailabilityDateTime#3537669, mrpController#3537670, sourceOfSupplyUuid#3537671, purchasingOrg#3537672, purchasingGroup#3537673, isFallbackOrderOnly#3537674, orderProposalHorizonGroupingId#3537675L, splitIndicator#3537676L, previousOrderProposal#3537677L, clusterId#3537678L, sequenceId#3537679, worklistShardItemId#3537680L, orderProposalItemGroupId#3537681, externalProductId#3537682, externalPlantId#3537683, logisticUnits#3537684, orderQuantityBaseUom#3537685, orderQuantityBaseUomUuid#3537686, minimumOrderQuantity#3537687, constraintLabels#3537688, constraintOperators#3537689, constraintValues#3537690, constraintRanks#3537691, constraintIsActive#3537692, netPriceAmount#3537693, netPriceCurrencyCode#3537694, netPriceQuantity#3537695, netPriceQuantityUom#3537696, netPriceQuantityUomUuid#3537697, measurements#3537698, originalReplenishmentRunId#3537699L, optimizationGroups#3537700]
Arguments: hashpartitioning(worklistShardItemId#3537680L, 37), REPARTITION_BY_NUM, [plan_id=1014342]
(10) ShuffleQueryStage
Output [44]: [orderProposalId#3537657L, orderProposalItemId#3537658, supplierGroup#3537659, supplier#3537660, plant#3537661, deliveryDateTime#3537662, subrange#3537663, supplyingPlant#3537664, productGroup#3537665, product#3537666, orderDateTime#3537667, availabilityDateTime#3537668, nextAvailabilityDateTime#3537669, mrpController#3537670, sourceOfSupplyUuid#3537671, purchasingOrg#3537672, purchasingGroup#3537673, isFallbackOrderOnly#3537674, orderProposalHorizonGroupingId#3537675L, splitIndicator#3537676L, previousOrderProposal#3537677L, clusterId#3537678L, sequenceId#3537679, worklistShardItemId#3537680L, orderProposalItemGroupId#3537681, externalProductId#3537682, externalPlantId#3537683, logisticUnits#3537684, orderQuantityBaseUom#3537685, orderQuantityBaseUomUuid#3537686, minimumOrderQuantity#3537687, constraintLabels#3537688, constraintOperators#3537689, constraintValues#3537690, constraintRanks#3537691, constraintIsActive#3537692, netPriceAmount#3537693, netPriceCurrencyCode#3537694, netPriceQuantity#3537695, netPriceQuantityUom#3537696, netPriceQuantityUomUuid#3537697, measurements#3537698, originalReplenishmentRunId#3537699L, optimizationGroups#3537700]
Arguments: 0
(11) Project [codegen id : 2]
Output [45]: [0_7_10000000532 AS shardId#3537581, worklistShardItemId#3537680L, orderProposalId#3537657L, orderProposalItemId#3537658, orderProposalItemGroupId#3537681, originalReplenishmentRunId#3537699L, orderProposalHorizonGroupingId#3537675L, splitIndicator#3537676L, previousOrderProposal#3537677L, clusterId#3537678L, cast(sequenceId#3537679 as bigint) AS sequenceId#3537591L, sourceOfSupplyUuid#3537671, supplierGroup#3537659, supplier#3537660, subrange#3537663, product#3537666, plant#3537661, purchasingOrg#3537672, purchasingGroup#3537673, mrpController#3537670, orderDateTime#3537667, deliveryDateTime#3537662, availabilityDateTime#3537668, nextAvailabilityDateTime#3537669, isFallbackOrderOnly#3537674, orderQuantityBaseUom#3537685, orderQuantityBaseUomUuid#3537686, netPriceQuantity#3537695, netPriceQuantityUom#3537696, netPriceQuantityUomUuid#3537697, netPriceAmount#3537693, netPriceCurrencyCode#3537694, measurements#3537698, minimumOrderQuantity#3537687, constraintLabels#3537688, constraintOperators#3537689, constraintRanks#3537691, constraintValues#3537690, constraintIsActive#3537692, logisticUnits#3537684, optimizationGroups#3537700, externalProductId#3537682, externalPlantId#3537683, supplyingPlant#3537664, productGroup#3537665]
Input [44]: [orderProposalId#3537657L, orderProposalItemId#3537658, supplierGroup#3537659, supplier#3537660, plant#3537661, deliveryDateTime#3537662, subrange#3537663, supplyingPlant#3537664, productGroup#3537665, product#3537666, orderDateTime#3537667, availabilityDateTime#3537668, nextAvailabilityDateTime#3537669, mrpController#3537670, sourceOfSupplyUuid#3537671, purchasingOrg#3537672, purchasingGroup#3537673, isFallbackOrderOnly#3537674, orderProposalHorizonGroupingId#3537675L, splitIndicator#3537676L, previousOrderProposal#3537677L, clusterId#3537678L, sequenceId#3537679, worklistShardItemId#3537680L, orderProposalItemGroupId#3537681, externalProductId#3537682, externalPlantId#3537683, logisticUnits#3537684, orderQuantityBaseUom#3537685, orderQuantityBaseUomUuid#3537686, minimumOrderQuantity#3537687, constraintLabels#3537688, constraintOperators#3537689, constraintValues#3537690, constraintRanks#3537691, constraintIsActive#3537692, netPriceAmount#3537693, netPriceCurrencyCode#3537694, netPriceQuantity#3537695, netPriceQuantityUom#3537696, netPriceQuantityUomUuid#3537697, measurements#3537698, originalReplenishmentRunId#3537699L, optimizationGroups#3537700]
(12) ResultQueryStage
Output [45]: [shardId#3537581, worklistShardItemId#3537680L, orderProposalId#3537657L, orderProposalItemId#3537658, orderProposalItemGroupId#3537681, originalReplenishmentRunId#3537699L, orderProposalHorizonGroupingId#3537675L, splitIndicator#3537676L, previousOrderProposal#3537677L, clusterId#3537678L, sequenceId#3537591L, sourceOfSupplyUuid#3537671, supplierGroup#3537659, supplier#3537660, subrange#3537663, product#3537666, plant#3537661, purchasingOrg#3537672, purchasingGroup#3537673, mrpController#3537670, orderDateTime#3537667, deliveryDateTime#3537662, availabilityDateTime#3537668, nextAvailabilityDateTime#3537669, isFallbackOrderOnly#3537674, orderQuantityBaseUom#3537685, orderQuantityBaseUomUuid#3537686, netPriceQuantity#3537695, netPriceQuantityUom#3537696, netPriceQuantityUomUuid#3537697, netPriceAmount#3537693, netPriceCurrencyCode#3537694, measurements#3537698, minimumOrderQuantity#3537687, constraintLabels#3537688, constraintOperators#3537689, constraintRanks#3537691, constraintValues#3537690, constraintIsActive#3537692, logisticUnits#3537684, optimizationGroups#3537700, externalProductId#3537682, externalPlantId#3537683, supplyingPlant#3537664, productGroup#3537665]
Arguments: 1
(13) Filter
Input [45]: [orderProposalId#3537657L, orderProposalItemId#3537658, supplierGroup#3537659, supplier#3537660, plant#3537661, deliveryDateTime#3537662, subrange#3537663, supplyingPlant#3537664, productGroup#3537665, product#3537666, orderDateTime#3537667, availabilityDateTime#3537668, nextAvailabilityDateTime#3537669, mrpController#3537670, sourceOfSupplyUuid#3537671, purchasingOrg#3537672, purchasingGroup#3537673, isFallbackOrderOnly#3537674, orderProposalHorizonGroupingId#3537675L, splitIndicator#3537676L, previousOrderProposal#3537677L, clusterId#3537678L, worklistShardItemId#3537680L, orderProposalItemGroupId#3537681, externalProductId#3537682, externalPlantId#3537683, logisticUnits#3537684, orderQuantityBaseUom#3537685, orderQuantityBaseUomUuid#3537686, minimumOrderQuantity#3537687, constraintLabels#3537688, constraintOperators#3537689, constraintValues#3537690, constraintRanks#3537691, constraintIsActive#3537692, netPriceAmount#3537693, netPriceCurrencyCode#3537694, netPriceQuantity#3537695, netPriceQuantityUom#3537696, netPriceQuantityUomUuid#3537697, measurements#3537698, originalReplenishmentRunId#3537699L, optimizationGroups#3537700, shardId#3537701, sequenceId#3537679]
Condition : ((isnotnull(availabilityDateTime#3537668) AND isnotnull(nextAvailabilityDateTime#3537669)) AND (nextAvailabilityDateTime#3537669 > availabilityDateTime#3537668))
(14) Project
Output [44]: [orderProposalId#3537657L, orderProposalItemId#3537658, supplierGroup#3537659, supplier#3537660, plant#3537661, deliveryDateTime#3537662, subrange#3537663, supplyingPlant#3537664, productGroup#3537665, product#3537666, orderDateTime#3537667, availabilityDateTime#3537668, nextAvailabilityDateTime#3537669, mrpController#3537670, sourceOfSupplyUuid#3537671, purchasingOrg#3537672, purchasingGroup#3537673, isFallbackOrderOnly#3537674, orderProposalHorizonGroupingId#3537675L, splitIndicator#3537676L, previousOrderProposal#3537677L, clusterId#3537678L, sequenceId#3537679, worklistShardItemId#3537680L, orderProposalItemGroupId#3537681, externalProductId#3537682, externalPlantId#3537683, logisticUnits#3537684, orderQuantityBaseUom#3537685, orderQuantityBaseUomUuid#3537686, minimumOrderQuantity#3537687, constraintLabels#3537688, constraintOperators#3537689, constraintValues#3537690, constraintRanks#3537691, constraintIsActive#3537692, netPriceAmount#3537693, netPriceCurrencyCode#3537694, netPriceQuantity#3537695, netPriceQuantityUom#3537696, netPriceQuantityUomUuid#3537697, measurements#3537698, originalReplenishmentRunId#3537699L, optimizationGroups#3537700]
Input [45]: [orderProposalId#3537657L, orderProposalItemId#3537658, supplierGroup#3537659, supplier#3537660, plant#3537661, deliveryDateTime#3537662, subrange#3537663, supplyingPlant#3537664, productGroup#3537665, product#3537666, orderDateTime#3537667, availabilityDateTime#3537668, nextAvailabilityDateTime#3537669, mrpController#3537670, sourceOfSupplyUuid#3537671, purchasingOrg#3537672, purchasingGroup#3537673, isFallbackOrderOnly#3537674, orderProposalHorizonGroupingId#3537675L, splitIndicator#3537676L, previousOrderProposal#3537677L, clusterId#3537678L, worklistShardItemId#3537680L, orderProposalItemGroupId#3537681, externalProductId#3537682, externalPlantId#3537683, logisticUnits#3537684, orderQuantityBaseUom#3537685, orderQuantityBaseUomUuid#3537686, minimumOrderQuantity#3537687, constraintLabels#3537688, constraintOperators#3537689, constraintValues#3537690, constraintRanks#3537691, constraintIsActive#3537692, netPriceAmount#3537693, netPriceCurrencyCode#3537694, netPriceQuantity#3537695, netPriceQuantityUom#3537696, netPriceQuantityUomUuid#3537697, measurements#3537698, originalReplenishmentRunId#3537699L, optimizationGroups#3537700, shardId#3537701, sequenceId#3537679]
(15) Exchange
Input [44]: [orderProposalId#3537657L, orderProposalItemId#3537658, supplierGroup#3537659, supplier#3537660, plant#3537661, deliveryDateTime#3537662, subrange#3537663, supplyingPlant#3537664, productGroup#3537665, product#3537666, orderDateTime#3537667, availabilityDateTime#3537668, nextAvailabilityDateTime#3537669, mrpController#3537670, sourceOfSupplyUuid#3537671, purchasingOrg#3537672, purchasingGroup#3537673, isFallbackOrderOnly#3537674, orderProposalHorizonGroupingId#3537675L, splitIndicator#3537676L, previousOrderProposal#3537677L, clusterId#3537678L, sequenceId#3537679, worklistShardItemId#3537680L, orderProposalItemGroupId#3537681, externalProductId#3537682, externalPlantId#3537683, logisticUnits#3537684, orderQuantityBaseUom#3537685, orderQuantityBaseUomUuid#3537686, minimumOrderQuantity#3537687, constraintLabels#3537688, constraintOperators#3537689, constraintValues#3537690, constraintRanks#3537691, constraintIsActive#3537692, netPriceAmount#3537693, netPriceCurrencyCode#3537694, netPriceQuantity#3537695, netPriceQuantityUom#3537696, netPriceQuantityUomUuid#3537697, measurements#3537698, originalReplenishmentRunId#3537699L, optimizationGroups#3537700]
Arguments: hashpartitioning(worklistShardItemId#3537680L, 37), REPARTITION_BY_NUM, [plan_id=1014314]
(16) Project
Output [45]: [0_7_10000000532 AS shardId#3537581, worklistShardItemId#3537680L, orderProposalId#3537657L, orderProposalItemId#3537658, orderProposalItemGroupId#3537681, originalReplenishmentRunId#3537699L, orderProposalHorizonGroupingId#3537675L, splitIndicator#3537676L, previousOrderProposal#3537677L, clusterId#3537678L, cast(sequenceId#3537679 as bigint) AS sequenceId#3537591L, sourceOfSupplyUuid#3537671, supplierGroup#3537659, supplier#3537660, subrange#3537663, product#3537666, plant#3537661, purchasingOrg#3537672, purchasingGroup#3537673, mrpController#3537670, orderDateTime#3537667, deliveryDateTime#3537662, availabilityDateTime#3537668, nextAvailabilityDateTime#3537669, isFallbackOrderOnly#3537674, orderQuantityBaseUom#3537685, orderQuantityBaseUomUuid#3537686, netPriceQuantity#3537695, netPriceQuantityUom#3537696, netPriceQuantityUomUuid#3537697, netPriceAmount#3537693, netPriceCurrencyCode#3537694, measurements#3537698, minimumOrderQuantity#3537687, constraintLabels#3537688, constraintOperators#3537689, constraintRanks#3537691, constraintValues#3537690, constraintIsActive#3537692, logisticUnits#3537684, optimizationGroups#3537700, externalProductId#3537682, externalPlantId#3537683, supplyingPlant#3537664, productGroup#3537665]
Input [44]: [orderProposalId#3537657L, orderProposalItemId#3537658, supplierGroup#3537659, supplier#3537660, plant#3537661, deliveryDateTime#3537662, subrange#3537663, supplyingPlant#3537664, productGroup#3537665, product#3537666, orderDateTime#3537667, availabilityDateTime#3537668, nextAvailabilityDateTime#3537669, mrpController#3537670, sourceOfSupplyUuid#3537671, purchasingOrg#3537672, purchasingGroup#3537673, isFallbackOrderOnly#3537674, orderProposalHorizonGroupingId#3537675L, splitIndicator#3537676L, previousOrderProposal#3537677L, clusterId#3537678L, sequenceId#3537679, worklistShardItemId#3537680L, orderProposalItemGroupId#3537681, externalProductId#3537682, externalPlantId#3537683, logisticUnits#3537684, orderQuantityBaseUom#3537685, orderQuantityBaseUomUuid#3537686, minimumOrderQuantity#3537687, constraintLabels#3537688, constraintOperators#3537689, constraintValues#3537690, constraintRanks#3537691, constraintIsActive#3537692, netPriceAmount#3537693, netPriceCurrencyCode#3537694, netPriceQuantity#3537695, netPriceQuantityUom#3537696, netPriceQuantityUomUuid#3537697, measurements#3537698, originalReplenishmentRunId#3537699L, optimizationGroups#3537700]
(17) AdaptiveSparkPlan
Output [45]: [shardId#3537581, worklistShardItemId#3537680L, orderProposalId#3537657L, orderProposalItemId#3537658, orderProposalItemGroupId#3537681, originalReplenishmentRunId#3537699L, orderProposalHorizonGroupingId#3537675L, splitIndicator#3537676L, previousOrderProposal#3537677L, clusterId#3537678L, sequenceId#3537591L, sourceOfSupplyUuid#3537671, supplierGroup#3537659, supplier#3537660, subrange#3537663, product#3537666, plant#3537661, purchasingOrg#3537672, purchasingGroup#3537673, mrpController#3537670, orderDateTime#3537667, deliveryDateTime#3537662, availabilityDateTime#3537668, nextAvailabilityDateTime#3537669, isFallbackOrderOnly#3537674, orderQuantityBaseUom#3537685, orderQuantityBaseUomUuid#3537686, netPriceQuantity#3537695, netPriceQuantityUom#3537696, netPriceQuantityUomUuid#3537697, netPriceAmount#3537693, netPriceCurrencyCode#3537694, measurements#3537698, minimumOrderQuantity#3537687, constraintLabels#3537688, constraintOperators#3537689, constraintRanks#3537691, constraintValues#3537690, constraintIsActive#3537692, logisticUnits#3537684, optimizationGroups#3537700, externalProductId#3537682, externalPlantId#3537683, supplyingPlant#3537664, productGroup#3537665]
Arguments: isFinalPlan=true
(18) TableCacheQueryStage
Output [3]: [shardId#3537581, worklistShardItemId#3537582L, orderProposalId#3537583L]
Arguments: 0
(19) Filter [codegen id : 1]
Input [3]: [shardId#3537581, worklistShardItemId#3537582L, orderProposalId#3537583L]
Condition : (isnotnull(shardId#3537581) AND isnotnull(orderProposalId#3537583L))
(20) ObjectHashAggregate
Input [3]: [shardId#3537581, worklistShardItemId#3537582L, orderProposalId#3537583L]
Keys [2]: [shardId#3537581, orderProposalId#3537583L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#3537582L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#3546702]
Results [3]: [shardId#3537581, orderProposalId#3537583L, buf#3546703]
(21) Exchange
Input [3]: [shardId#3537581, orderProposalId#3537583L, buf#3546703]
Arguments: hashpartitioning(shardId#3537581, orderProposalId#3537583L, 37), ENSURE_REQUIREMENTS, [plan_id=1015942]
(22) ShuffleQueryStage [codegen id : 6]
Output [3]: [shardId#3537581, orderProposalId#3537583L, buf#3546703]
Arguments: 2
(23) AQEShuffleRead [codegen id : 6]
Input [3]: [shardId#3537581, orderProposalId#3537583L, buf#3546703]
Arguments: coalesced
(24) ObjectHashAggregate [codegen id : 6]
Input [3]: [shardId#3537581, orderProposalId#3537583L, buf#3546703]
Keys [2]: [shardId#3537581, orderProposalId#3537583L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#3537582L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#3537582L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#3545198]
Results [7]: [shardId#3537581, orderProposalId#3537583L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#3537582L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#3545198, lambdafunction(struct(worklistShardItemId, lambda x_11742#3545219.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_11742#3545219.quantityAfterProdPlantOptimization, qty, lambda x_11742#3545219.optimalQuantity), lambda x_11742#3545219, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#3545220, [] AS optimizationGroups#3545214, false AS isOptimal#3545199, 2026-08-31 14:15:02.797384 AS lastModified#3545218, [] AS optimizationInsights#3545215]
(25) Union
(26) Exchange
Input [7]: [shardId#3545207, orderProposalId#3545208L, items#3545209, optimizationGroups#3545210, isOptimal#3545211, lastModified#3545212, optimizationInsights#3545213]
Arguments: hashpartitioning(shardId#3545207, orderProposalId#3545208L, lastModified#3545212, 37), ENSURE_REQUIREMENTS, [plan_id=1016174]
(27) ShuffleQueryStage
Output [7]: [shardId#3545207, orderProposalId#3545208L, items#3545209, optimizationGroups#3545210, isOptimal#3545211, lastModified#3545212, optimizationInsights#3545213]
Arguments: 5
(28) AQEShuffleRead
Input [7]: [shardId#3545207, orderProposalId#3545208L, items#3545209, optimizationGroups#3545210, isOptimal#3545211, lastModified#3545212, optimizationInsights#3545213]
Arguments: local
(29) Scan ExistingRDD [codegen id : 3]
Output [7]: [shardId#3545230, orderProposalId#3545231L, items#3545232, optimizationGroups#3545233, isOptimal#3545234, lastModified#3545235, optimizationInsights#3545236]
Arguments: [shardId#3545230, orderProposalId#3545231L, items#3545232, optimizationGroups#3545233, isOptimal#3545234, lastModified#3545235, optimizationInsights#3545236], MapPartitionsRDD[150669] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(30) Filter [codegen id : 3]
Input [7]: [shardId#3545230, orderProposalId#3545231L, items#3545232, optimizationGroups#3545233, isOptimal#3545234, lastModified#3545235, optimizationInsights#3545236]
Condition : (isnotnull(shardId#3545230) AND isnotnull(orderProposalId#3545231L))
(31) Project [codegen id : 3]
Output [3]: [shardId#3545230, orderProposalId#3545231L, lastModified#3545235]
Input [7]: [shardId#3545230, orderProposalId#3545231L, items#3545232, optimizationGroups#3545233, isOptimal#3545234, lastModified#3545235, optimizationInsights#3545236]
(32) InMemoryTableScan
Output [2]: [shardId#3545237, orderProposalId#3545239L]
Arguments: [shardId#3545237, orderProposalId#3545239L], [isnotnull(shardId#3545237), isnotnull(orderProposalId#3545239L)]
(33) InMemoryRelation
Arguments: [shardId#3545237, worklistShardItemId#3545238L, orderProposalId#3545239L, orderProposalItemId#3545240, orderProposalItemGroupId#3545241, originalReplenishmentRunId#3545242L, orderProposalHorizonGroupingId#3545243L, splitIndicator#3545244L, previousOrderProposal#3545245L, clusterId#3545246L, sequenceId#3545247L, sourceOfSupplyUuid#3545248, supplierGroup#3545249, supplier#3545250, subrange#3545251, product#3545252, plant#3545253, purchasingOrg#3545254, purchasingGroup#3545255, mrpController#3545256, orderDateTime#3545257, deliveryDateTime#3545258, availabilityDateTime#3545259, nextAvailabilityDateTime#3545260, isFallbackOrderOnly#3545261, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(34) TableCacheQueryStage
Output [2]: [shardId#3545237, orderProposalId#3545239L]
Arguments: 1
(35) Filter [codegen id : 2]
Input [2]: [shardId#3545237, orderProposalId#3545239L]
Condition : (isnotnull(shardId#3545237) AND isnotnull(orderProposalId#3545239L))
(36) HashAggregate [codegen id : 2]
Input [2]: [shardId#3545237, orderProposalId#3545239L]
Keys [2]: [shardId#3545237, orderProposalId#3545239L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#3545237, orderProposalId#3545239L]
(37) Exchange
Input [2]: [shardId#3545237, orderProposalId#3545239L]
Arguments: hashpartitioning(shardId#3545237, orderProposalId#3545239L, 37), ENSURE_REQUIREMENTS, [plan_id=1015978]
(38) ShuffleQueryStage
Output [2]: [shardId#3545237, orderProposalId#3545239L]
Arguments: 3
(39) AQEShuffleRead
Input [2]: [shardId#3545237, orderProposalId#3545239L]
Arguments: coalesced
(40) HashAggregate [codegen id : 4]
Input [2]: [shardId#3545237, orderProposalId#3545239L]
Keys [2]: [shardId#3545237, orderProposalId#3545239L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#3545237, orderProposalId#3545239L, 2026-08-31 14:15:02.797384 AS lastModified#3545334]
(41) Union
(42) HashAggregate [codegen id : 5]
Input [3]: [shardId#3545230, orderProposalId#3545231L, lastModified#3545235]
Keys [2]: [shardId#3545230, orderProposalId#3545231L]
Functions [1]: [partial_max(lastModified#3545235)]
Aggregate Attributes [1]: [max#3546704]
Results [3]: [shardId#3545230, orderProposalId#3545231L, max#3546705]
(43) Exchange
Input [3]: [shardId#3545230, orderProposalId#3545231L, max#3546705]
Arguments: hashpartitioning(shardId#3545230, orderProposalId#3545231L, 37), ENSURE_REQUIREMENTS, [plan_id=1016082]
(44) ShuffleQueryStage
Output [3]: [shardId#3545230, orderProposalId#3545231L, max#3546705]
Arguments: 4
(45) AQEShuffleRead
Input [3]: [shardId#3545230, orderProposalId#3545231L, max#3546705]
Arguments: coalesced
(46) HashAggregate [codegen id : 7]
Input [3]: [shardId#3545230, orderProposalId#3545231L, max#3546705]
Keys [2]: [shardId#3545230, orderProposalId#3545231L]
Functions [1]: [max(lastModified#3545235)]
Aggregate Attributes [1]: [max(lastModified#3545235)#3545229]
Results [3]: [shardId#3545230, orderProposalId#3545231L, max(lastModified#3545235)#3545229 AS lastModified#3545221]
(47) Filter [codegen id : 7]
Input [3]: [shardId#3545230, orderProposalId#3545231L, lastModified#3545221]
Condition : isnotnull(lastModified#3545221)
(48) BroadcastExchange
Input [3]: [shardId#3545230, orderProposalId#3545231L, lastModified#3545221]
Arguments: HashedRelationBroadcastMode(List(input[0, string, true], input[1, bigint, true], input[2, timestamp, false]),false), [plan_id=1016241]
(49) BroadcastQueryStage
Output [3]: [shardId#3545230, orderProposalId#3545231L, lastModified#3545221]
Arguments: 6
(50) BroadcastHashJoin [codegen id : 8]
Left keys [3]: [shardId#3545207, orderProposalId#3545208L, lastModified#3545212]
Right keys [3]: [shardId#3545230, orderProposalId#3545231L, lastModified#3545221]
Join type: Inner
Join condition: None
(51) Project [codegen id : 8]
Output [7]: [shardId#3545207, orderProposalId#3545208L, items#3545209, optimizationGroups#3545210, isOptimal#3545211, lastModified#3545212, optimizationInsights#3545213]
Input [10]: [shardId#3545207, orderProposalId#3545208L, items#3545209, optimizationGroups#3545210, isOptimal#3545211, lastModified#3545212, optimizationInsights#3545213, shardId#3545230, orderProposalId#3545231L, lastModified#3545221]
(52) DeserializeToObject
Input [7]: [shardId#3545207, orderProposalId#3545208L, items#3545209, optimizationGroups#3545210, isOptimal#3545211, lastModified#3545212, optimizationInsights#3545213]
Arguments: createexternalrow(invoke(shardId#3545207.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#3545208L)), 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#3545209, 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#3545210, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#3545211)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#3545212)), 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#3545213, 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#3545351: org.apache.spark.sql.Row
(53) ResultQueryStage
Output [1]: [obj#3545351]
Arguments: 7
(54) Filter
Input [3]: [shardId#3537581, worklistShardItemId#3537582L, orderProposalId#3537583L]
Condition : (isnotnull(shardId#3537581) AND isnotnull(orderProposalId#3537583L))
(55) ObjectHashAggregate
Input [3]: [shardId#3537581, worklistShardItemId#3537582L, orderProposalId#3537583L]
Keys [2]: [shardId#3537581, orderProposalId#3537583L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#3537582L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#3546702]
Results [3]: [shardId#3537581, orderProposalId#3537583L, buf#3546703]
(56) Exchange
Input [3]: [shardId#3537581, orderProposalId#3537583L, buf#3546703]
Arguments: hashpartitioning(shardId#3537581, orderProposalId#3537583L, 37), ENSURE_REQUIREMENTS, [plan_id=1015771]
(57) ObjectHashAggregate
Input [3]: [shardId#3537581, orderProposalId#3537583L, buf#3546703]
Keys [2]: [shardId#3537581, orderProposalId#3537583L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#3537582L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#3537582L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#3545198]
Results [7]: [shardId#3537581, orderProposalId#3537583L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#3537582L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#3545198, lambdafunction(struct(worklistShardItemId, lambda x_11742#3545219.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_11742#3545219.quantityAfterProdPlantOptimization, qty, lambda x_11742#3545219.optimalQuantity), lambda x_11742#3545219, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#3545220, [] AS optimizationGroups#3545214, false AS isOptimal#3545199, 2026-08-31 14:15:02.797384 AS lastModified#3545218, [] AS optimizationInsights#3545215]
(58) Union
(59) Exchange
Input [7]: [shardId#3545207, orderProposalId#3545208L, items#3545209, optimizationGroups#3545210, isOptimal#3545211, lastModified#3545212, optimizationInsights#3545213]
Arguments: hashpartitioning(shardId#3545207, orderProposalId#3545208L, lastModified#3545212, 37), ENSURE_REQUIREMENTS, [plan_id=1015784]
(60) Sort
Input [7]: [shardId#3545207, orderProposalId#3545208L, items#3545209, optimizationGroups#3545210, isOptimal#3545211, lastModified#3545212, optimizationInsights#3545213]
Arguments: [shardId#3545207 ASC NULLS FIRST, orderProposalId#3545208L ASC NULLS FIRST, lastModified#3545212 ASC NULLS FIRST], false, 0
(61) Filter
Input [2]: [shardId#3545237, orderProposalId#3545239L]
Condition : (isnotnull(shardId#3545237) AND isnotnull(orderProposalId#3545239L))
(62) HashAggregate
Input [2]: [shardId#3545237, orderProposalId#3545239L]
Keys [2]: [shardId#3545237, orderProposalId#3545239L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#3545237, orderProposalId#3545239L]
(63) Exchange
Input [2]: [shardId#3545237, orderProposalId#3545239L]
Arguments: hashpartitioning(shardId#3545237, orderProposalId#3545239L, 37), ENSURE_REQUIREMENTS, [plan_id=1015774]
(64) HashAggregate
Input [2]: [shardId#3545237, orderProposalId#3545239L]
Keys [2]: [shardId#3545237, orderProposalId#3545239L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#3545237, orderProposalId#3545239L, 2026-08-31 14:15:02.797384 AS lastModified#3545334]
(65) Union
(66) HashAggregate
Input [3]: [shardId#3545230, orderProposalId#3545231L, lastModified#3545235]
Keys [2]: [shardId#3545230, orderProposalId#3545231L]
Functions [1]: [partial_max(lastModified#3545235)]
Aggregate Attributes [1]: [max#3546704]
Results [3]: [shardId#3545230, orderProposalId#3545231L, max#3546705]
(67) Exchange
Input [3]: [shardId#3545230, orderProposalId#3545231L, max#3546705]
Arguments: hashpartitioning(shardId#3545230, orderProposalId#3545231L, 37), ENSURE_REQUIREMENTS, [plan_id=1015779]
(68) HashAggregate
Input [3]: [shardId#3545230, orderProposalId#3545231L, max#3546705]
Keys [2]: [shardId#3545230, orderProposalId#3545231L]
Functions [1]: [max(lastModified#3545235)]
Aggregate Attributes [1]: [max(lastModified#3545235)#3545229]
Results [3]: [shardId#3545230, orderProposalId#3545231L, max(lastModified#3545235)#3545229 AS lastModified#3545221]
(69) Filter
Input [3]: [shardId#3545230, orderProposalId#3545231L, lastModified#3545221]
Condition : isnotnull(lastModified#3545221)
(70) Exchange
Input [3]: [shardId#3545230, orderProposalId#3545231L, lastModified#3545221]
Arguments: hashpartitioning(shardId#3545230, orderProposalId#3545231L, lastModified#3545221, 37), ENSURE_REQUIREMENTS, [plan_id=1015785]
(71) Sort
Input [3]: [shardId#3545230, orderProposalId#3545231L, lastModified#3545221]
Arguments: [shardId#3545230 ASC NULLS FIRST, orderProposalId#3545231L ASC NULLS FIRST, lastModified#3545221 ASC NULLS FIRST], false, 0
(72) SortMergeJoin
Left keys [3]: [shardId#3545207, orderProposalId#3545208L, lastModified#3545212]
Right keys [3]: [shardId#3545230, orderProposalId#3545231L, lastModified#3545221]
Join type: Inner
Join condition: None
(73) Project
Output [7]: [shardId#3545207, orderProposalId#3545208L, items#3545209, optimizationGroups#3545210, isOptimal#3545211, lastModified#3545212, optimizationInsights#3545213]
Input [10]: [shardId#3545207, orderProposalId#3545208L, items#3545209, optimizationGroups#3545210, isOptimal#3545211, lastModified#3545212, optimizationInsights#3545213, shardId#3545230, orderProposalId#3545231L, lastModified#3545221]
(74) DeserializeToObject
Input [7]: [shardId#3545207, orderProposalId#3545208L, items#3545209, optimizationGroups#3545210, isOptimal#3545211, lastModified#3545212, optimizationInsights#3545213]
Arguments: createexternalrow(invoke(shardId#3545207.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#3545208L)), 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#3545209, 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#3545210, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#3545211)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#3545212)), 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#3545213, 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#3545351: org.apache.spark.sql.Row
(75) AdaptiveSparkPlan
Output [1]: [obj#3545351]
Arguments: isFinalPlan=true