== Physical Plan ==
AdaptiveSparkPlan (75)
+- == Final Plan ==
ResultQueryStage (53), Statistics(sizeInBytes=8.0 EiB)
+- DeserializeToObject (52)
+- * Project (51)
+- * BroadcastHashJoin Inner BuildLeft (50)
:- BroadcastQueryStage (30), Statistics(sizeInBytes=2.0 MiB, rowCount=5)
: +- BroadcastExchange (29)
: +- AQEShuffleRead (28)
: +- ShuffleQueryStage (27), Statistics(sizeInBytes=880.0 B, rowCount=5)
: +- Exchange (26)
: +- Union (25)
: :- * Filter (2)
: : +- * Scan ExistingRDD (1)
: +- ObjectHashAggregate (24)
: +- AQEShuffleRead (23)
: +- ShuffleQueryStage (22), Statistics(sizeInBytes=960.0 B, rowCount=8)
: +- Exchange (21)
: +- ObjectHashAggregate (20)
: +- * Filter (19)
: +- TableCacheQueryStage (18), Statistics(sizeInBytes=12.3 KiB, rowCount=8)
: +- InMemoryTableScan (3)
: +- InMemoryRelation (4)
: +- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=13.5 KiB, rowCount=8)
+- Exchange (9)
+- * Project (8)
+- * Filter (7)
+- * ColumnarToRow (6)
+- Scan parquet (5)
+- == Initial Plan ==
Project (16)
+- Exchange (15)
+- Project (14)
+- Filter (13)
+- Scan parquet (5)
+- * Filter (49)
+- * HashAggregate (48)
+- AQEShuffleRead (47)
+- ShuffleQueryStage (46), Statistics(sizeInBytes=240.0 B, rowCount=5)
+- Exchange (45)
+- * HashAggregate (44)
+- Union (43)
:- * Project (33)
: +- * Filter (32)
: +- * Scan ExistingRDD (31)
+- * HashAggregate (42)
+- AQEShuffleRead (41)
+- ShuffleQueryStage (40), Statistics(sizeInBytes=320.0 B, rowCount=8)
+- Exchange (39)
+- * HashAggregate (38)
+- * Filter (37)
+- TableCacheQueryStage (36), Statistics(sizeInBytes=12.3 KiB, rowCount=8)
+- InMemoryTableScan (34)
+- InMemoryRelation (35)
+- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=13.5 KiB, rowCount=8)
+- 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=13.5 KiB, rowCount=8)
+- 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 (33)
: +- Filter (32)
: +- Scan ExistingRDD (31)
+- HashAggregate (64)
+- Exchange (63)
+- HashAggregate (62)
+- Filter (61)
+- InMemoryTableScan (34)
+- InMemoryRelation (35)
+- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=13.5 KiB, rowCount=8)
+- 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 : 3]
Output [7]: [shardId#974932, orderProposalId#974933L, items#974934, optimizationGroups#974935, isOptimal#974936, lastModified#974937, optimizationInsights#974938]
Arguments: [shardId#974932, orderProposalId#974933L, items#974934, optimizationGroups#974935, isOptimal#974936, lastModified#974937, optimizationInsights#974938], MapPartitionsRDD[45511] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(2) Filter [codegen id : 3]
Input [7]: [shardId#974932, orderProposalId#974933L, items#974934, optimizationGroups#974935, isOptimal#974936, lastModified#974937, optimizationInsights#974938]
Condition : ((isnotnull(shardId#974932) AND isnotnull(orderProposalId#974933L)) AND isnotnull(lastModified#974937))
(3) InMemoryTableScan
Output [3]: [shardId#969678, worklistShardItemId#969679L, orderProposalId#969680L]
Arguments: [shardId#969678, worklistShardItemId#969679L, orderProposalId#969680L], [isnotnull(shardId#969678), isnotnull(orderProposalId#969680L)]
(4) InMemoryRelation
Arguments: [shardId#969678, worklistShardItemId#969679L, orderProposalId#969680L, orderProposalItemId#969681, orderProposalItemGroupId#969682, originalReplenishmentRunId#969683L, orderProposalHorizonGroupingId#969684L, splitIndicator#969685L, previousOrderProposal#969686L, clusterId#969687L, sequenceId#969688L, sourceOfSupplyUuid#969689, supplierGroup#969690, supplier#969691, subrange#969692, product#969693, plant#969694, purchasingOrg#969695, purchasingGroup#969696, mrpController#969697, orderDateTime#969698, deliveryDateTime#969699, availabilityDateTime#969700, nextAvailabilityDateTime#969701, isFallbackOrderOnly#969702, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(5) Scan parquet
Output [45]: [orderProposalId#969723L, orderProposalItemId#969724, supplierGroup#969725, supplier#969726, plant#969727, deliveryDateTime#969728, subrange#969729, supplyingPlant#969730, productGroup#969731, product#969732, orderDateTime#969733, availabilityDateTime#969734, nextAvailabilityDateTime#969735, mrpController#969736, sourceOfSupplyUuid#969737, purchasingOrg#969738, purchasingGroup#969739, isFallbackOrderOnly#969740, orderProposalHorizonGroupingId#969741L, splitIndicator#969742L, previousOrderProposal#969743L, clusterId#969744L, worklistShardItemId#969746L, orderProposalItemGroupId#969747, externalProductId#969748, externalPlantId#969749, logisticUnits#969750, orderQuantityBaseUom#969751, orderQuantityBaseUomUuid#969752, minimumOrderQuantity#969753, constraintLabels#969754, constraintOperators#969755, constraintValues#969756, constraintRanks#969757, constraintIsActive#969758, netPriceAmount#969759, netPriceCurrencyCode#969760, netPriceQuantity#969761, netPriceQuantityUom#969762, netPriceQuantityUomUuid#969763, measurements#969764, originalReplenishmentRunId#969765L, optimizationGroups#969766, shardId#969767, sequenceId#969745]
Batched: true
Location: PreparedDeltaFileIndex [hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20.hanacloud.ondemand.com:443/crp-order-qty-opt-service/internal/prod-plant-snapshot/10000002110]
PartitionFilters: [isnotnull(shardId#969767), isnotnull(sequenceId#969745), (shardId#969767 = 0_1_10000002110), (sequenceId#969745 = 2)]
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#969723L, orderProposalItemId#969724, supplierGroup#969725, supplier#969726, plant#969727, deliveryDateTime#969728, subrange#969729, supplyingPlant#969730, productGroup#969731, product#969732, orderDateTime#969733, availabilityDateTime#969734, nextAvailabilityDateTime#969735, mrpController#969736, sourceOfSupplyUuid#969737, purchasingOrg#969738, purchasingGroup#969739, isFallbackOrderOnly#969740, orderProposalHorizonGroupingId#969741L, splitIndicator#969742L, previousOrderProposal#969743L, clusterId#969744L, worklistShardItemId#969746L, orderProposalItemGroupId#969747, externalProductId#969748, externalPlantId#969749, logisticUnits#969750, orderQuantityBaseUom#969751, orderQuantityBaseUomUuid#969752, minimumOrderQuantity#969753, constraintLabels#969754, constraintOperators#969755, constraintValues#969756, constraintRanks#969757, constraintIsActive#969758, netPriceAmount#969759, netPriceCurrencyCode#969760, netPriceQuantity#969761, netPriceQuantityUom#969762, netPriceQuantityUomUuid#969763, measurements#969764, originalReplenishmentRunId#969765L, optimizationGroups#969766, shardId#969767, sequenceId#969745]
(7) Filter [codegen id : 1]
Input [45]: [orderProposalId#969723L, orderProposalItemId#969724, supplierGroup#969725, supplier#969726, plant#969727, deliveryDateTime#969728, subrange#969729, supplyingPlant#969730, productGroup#969731, product#969732, orderDateTime#969733, availabilityDateTime#969734, nextAvailabilityDateTime#969735, mrpController#969736, sourceOfSupplyUuid#969737, purchasingOrg#969738, purchasingGroup#969739, isFallbackOrderOnly#969740, orderProposalHorizonGroupingId#969741L, splitIndicator#969742L, previousOrderProposal#969743L, clusterId#969744L, worklistShardItemId#969746L, orderProposalItemGroupId#969747, externalProductId#969748, externalPlantId#969749, logisticUnits#969750, orderQuantityBaseUom#969751, orderQuantityBaseUomUuid#969752, minimumOrderQuantity#969753, constraintLabels#969754, constraintOperators#969755, constraintValues#969756, constraintRanks#969757, constraintIsActive#969758, netPriceAmount#969759, netPriceCurrencyCode#969760, netPriceQuantity#969761, netPriceQuantityUom#969762, netPriceQuantityUomUuid#969763, measurements#969764, originalReplenishmentRunId#969765L, optimizationGroups#969766, shardId#969767, sequenceId#969745]
Condition : ((isnotnull(availabilityDateTime#969734) AND isnotnull(nextAvailabilityDateTime#969735)) AND (nextAvailabilityDateTime#969735 > availabilityDateTime#969734))
(8) Project [codegen id : 1]
Output [44]: [orderProposalId#969723L, orderProposalItemId#969724, supplierGroup#969725, supplier#969726, plant#969727, deliveryDateTime#969728, subrange#969729, supplyingPlant#969730, productGroup#969731, product#969732, orderDateTime#969733, availabilityDateTime#969734, nextAvailabilityDateTime#969735, mrpController#969736, sourceOfSupplyUuid#969737, purchasingOrg#969738, purchasingGroup#969739, isFallbackOrderOnly#969740, orderProposalHorizonGroupingId#969741L, splitIndicator#969742L, previousOrderProposal#969743L, clusterId#969744L, sequenceId#969745, worklistShardItemId#969746L, orderProposalItemGroupId#969747, externalProductId#969748, externalPlantId#969749, logisticUnits#969750, orderQuantityBaseUom#969751, orderQuantityBaseUomUuid#969752, minimumOrderQuantity#969753, constraintLabels#969754, constraintOperators#969755, constraintValues#969756, constraintRanks#969757, constraintIsActive#969758, netPriceAmount#969759, netPriceCurrencyCode#969760, netPriceQuantity#969761, netPriceQuantityUom#969762, netPriceQuantityUomUuid#969763, measurements#969764, originalReplenishmentRunId#969765L, optimizationGroups#969766]
Input [45]: [orderProposalId#969723L, orderProposalItemId#969724, supplierGroup#969725, supplier#969726, plant#969727, deliveryDateTime#969728, subrange#969729, supplyingPlant#969730, productGroup#969731, product#969732, orderDateTime#969733, availabilityDateTime#969734, nextAvailabilityDateTime#969735, mrpController#969736, sourceOfSupplyUuid#969737, purchasingOrg#969738, purchasingGroup#969739, isFallbackOrderOnly#969740, orderProposalHorizonGroupingId#969741L, splitIndicator#969742L, previousOrderProposal#969743L, clusterId#969744L, worklistShardItemId#969746L, orderProposalItemGroupId#969747, externalProductId#969748, externalPlantId#969749, logisticUnits#969750, orderQuantityBaseUom#969751, orderQuantityBaseUomUuid#969752, minimumOrderQuantity#969753, constraintLabels#969754, constraintOperators#969755, constraintValues#969756, constraintRanks#969757, constraintIsActive#969758, netPriceAmount#969759, netPriceCurrencyCode#969760, netPriceQuantity#969761, netPriceQuantityUom#969762, netPriceQuantityUomUuid#969763, measurements#969764, originalReplenishmentRunId#969765L, optimizationGroups#969766, shardId#969767, sequenceId#969745]
(9) Exchange
Input [44]: [orderProposalId#969723L, orderProposalItemId#969724, supplierGroup#969725, supplier#969726, plant#969727, deliveryDateTime#969728, subrange#969729, supplyingPlant#969730, productGroup#969731, product#969732, orderDateTime#969733, availabilityDateTime#969734, nextAvailabilityDateTime#969735, mrpController#969736, sourceOfSupplyUuid#969737, purchasingOrg#969738, purchasingGroup#969739, isFallbackOrderOnly#969740, orderProposalHorizonGroupingId#969741L, splitIndicator#969742L, previousOrderProposal#969743L, clusterId#969744L, sequenceId#969745, worklistShardItemId#969746L, orderProposalItemGroupId#969747, externalProductId#969748, externalPlantId#969749, logisticUnits#969750, orderQuantityBaseUom#969751, orderQuantityBaseUomUuid#969752, minimumOrderQuantity#969753, constraintLabels#969754, constraintOperators#969755, constraintValues#969756, constraintRanks#969757, constraintIsActive#969758, netPriceAmount#969759, netPriceCurrencyCode#969760, netPriceQuantity#969761, netPriceQuantityUom#969762, netPriceQuantityUomUuid#969763, measurements#969764, originalReplenishmentRunId#969765L, optimizationGroups#969766]
Arguments: hashpartitioning(worklistShardItemId#969746L, 25), REPARTITION_BY_NUM, [plan_id=377579]
(10) ShuffleQueryStage
Output [44]: [orderProposalId#969723L, orderProposalItemId#969724, supplierGroup#969725, supplier#969726, plant#969727, deliveryDateTime#969728, subrange#969729, supplyingPlant#969730, productGroup#969731, product#969732, orderDateTime#969733, availabilityDateTime#969734, nextAvailabilityDateTime#969735, mrpController#969736, sourceOfSupplyUuid#969737, purchasingOrg#969738, purchasingGroup#969739, isFallbackOrderOnly#969740, orderProposalHorizonGroupingId#969741L, splitIndicator#969742L, previousOrderProposal#969743L, clusterId#969744L, sequenceId#969745, worklistShardItemId#969746L, orderProposalItemGroupId#969747, externalProductId#969748, externalPlantId#969749, logisticUnits#969750, orderQuantityBaseUom#969751, orderQuantityBaseUomUuid#969752, minimumOrderQuantity#969753, constraintLabels#969754, constraintOperators#969755, constraintValues#969756, constraintRanks#969757, constraintIsActive#969758, netPriceAmount#969759, netPriceCurrencyCode#969760, netPriceQuantity#969761, netPriceQuantityUom#969762, netPriceQuantityUomUuid#969763, measurements#969764, originalReplenishmentRunId#969765L, optimizationGroups#969766]
Arguments: 0
(11) Project [codegen id : 2]
Output [45]: [0_1_10000002110 AS shardId#969678, worklistShardItemId#969746L, orderProposalId#969723L, orderProposalItemId#969724, orderProposalItemGroupId#969747, originalReplenishmentRunId#969765L, orderProposalHorizonGroupingId#969741L, splitIndicator#969742L, previousOrderProposal#969743L, clusterId#969744L, cast(sequenceId#969745 as bigint) AS sequenceId#969688L, sourceOfSupplyUuid#969737, supplierGroup#969725, supplier#969726, subrange#969729, product#969732, plant#969727, purchasingOrg#969738, purchasingGroup#969739, mrpController#969736, orderDateTime#969733, deliveryDateTime#969728, availabilityDateTime#969734, nextAvailabilityDateTime#969735, isFallbackOrderOnly#969740, orderQuantityBaseUom#969751, orderQuantityBaseUomUuid#969752, netPriceQuantity#969761, netPriceQuantityUom#969762, netPriceQuantityUomUuid#969763, netPriceAmount#969759, netPriceCurrencyCode#969760, measurements#969764, minimumOrderQuantity#969753, constraintLabels#969754, constraintOperators#969755, constraintRanks#969757, constraintValues#969756, constraintIsActive#969758, logisticUnits#969750, optimizationGroups#969766, externalProductId#969748, externalPlantId#969749, supplyingPlant#969730, productGroup#969731]
Input [44]: [orderProposalId#969723L, orderProposalItemId#969724, supplierGroup#969725, supplier#969726, plant#969727, deliveryDateTime#969728, subrange#969729, supplyingPlant#969730, productGroup#969731, product#969732, orderDateTime#969733, availabilityDateTime#969734, nextAvailabilityDateTime#969735, mrpController#969736, sourceOfSupplyUuid#969737, purchasingOrg#969738, purchasingGroup#969739, isFallbackOrderOnly#969740, orderProposalHorizonGroupingId#969741L, splitIndicator#969742L, previousOrderProposal#969743L, clusterId#969744L, sequenceId#969745, worklistShardItemId#969746L, orderProposalItemGroupId#969747, externalProductId#969748, externalPlantId#969749, logisticUnits#969750, orderQuantityBaseUom#969751, orderQuantityBaseUomUuid#969752, minimumOrderQuantity#969753, constraintLabels#969754, constraintOperators#969755, constraintValues#969756, constraintRanks#969757, constraintIsActive#969758, netPriceAmount#969759, netPriceCurrencyCode#969760, netPriceQuantity#969761, netPriceQuantityUom#969762, netPriceQuantityUomUuid#969763, measurements#969764, originalReplenishmentRunId#969765L, optimizationGroups#969766]
(12) ResultQueryStage
Output [45]: [shardId#969678, worklistShardItemId#969746L, orderProposalId#969723L, orderProposalItemId#969724, orderProposalItemGroupId#969747, originalReplenishmentRunId#969765L, orderProposalHorizonGroupingId#969741L, splitIndicator#969742L, previousOrderProposal#969743L, clusterId#969744L, sequenceId#969688L, sourceOfSupplyUuid#969737, supplierGroup#969725, supplier#969726, subrange#969729, product#969732, plant#969727, purchasingOrg#969738, purchasingGroup#969739, mrpController#969736, orderDateTime#969733, deliveryDateTime#969728, availabilityDateTime#969734, nextAvailabilityDateTime#969735, isFallbackOrderOnly#969740, orderQuantityBaseUom#969751, orderQuantityBaseUomUuid#969752, netPriceQuantity#969761, netPriceQuantityUom#969762, netPriceQuantityUomUuid#969763, netPriceAmount#969759, netPriceCurrencyCode#969760, measurements#969764, minimumOrderQuantity#969753, constraintLabels#969754, constraintOperators#969755, constraintRanks#969757, constraintValues#969756, constraintIsActive#969758, logisticUnits#969750, optimizationGroups#969766, externalProductId#969748, externalPlantId#969749, supplyingPlant#969730, productGroup#969731]
Arguments: 1
(13) Filter
Input [45]: [orderProposalId#969723L, orderProposalItemId#969724, supplierGroup#969725, supplier#969726, plant#969727, deliveryDateTime#969728, subrange#969729, supplyingPlant#969730, productGroup#969731, product#969732, orderDateTime#969733, availabilityDateTime#969734, nextAvailabilityDateTime#969735, mrpController#969736, sourceOfSupplyUuid#969737, purchasingOrg#969738, purchasingGroup#969739, isFallbackOrderOnly#969740, orderProposalHorizonGroupingId#969741L, splitIndicator#969742L, previousOrderProposal#969743L, clusterId#969744L, worklistShardItemId#969746L, orderProposalItemGroupId#969747, externalProductId#969748, externalPlantId#969749, logisticUnits#969750, orderQuantityBaseUom#969751, orderQuantityBaseUomUuid#969752, minimumOrderQuantity#969753, constraintLabels#969754, constraintOperators#969755, constraintValues#969756, constraintRanks#969757, constraintIsActive#969758, netPriceAmount#969759, netPriceCurrencyCode#969760, netPriceQuantity#969761, netPriceQuantityUom#969762, netPriceQuantityUomUuid#969763, measurements#969764, originalReplenishmentRunId#969765L, optimizationGroups#969766, shardId#969767, sequenceId#969745]
Condition : ((isnotnull(availabilityDateTime#969734) AND isnotnull(nextAvailabilityDateTime#969735)) AND (nextAvailabilityDateTime#969735 > availabilityDateTime#969734))
(14) Project
Output [44]: [orderProposalId#969723L, orderProposalItemId#969724, supplierGroup#969725, supplier#969726, plant#969727, deliveryDateTime#969728, subrange#969729, supplyingPlant#969730, productGroup#969731, product#969732, orderDateTime#969733, availabilityDateTime#969734, nextAvailabilityDateTime#969735, mrpController#969736, sourceOfSupplyUuid#969737, purchasingOrg#969738, purchasingGroup#969739, isFallbackOrderOnly#969740, orderProposalHorizonGroupingId#969741L, splitIndicator#969742L, previousOrderProposal#969743L, clusterId#969744L, sequenceId#969745, worklistShardItemId#969746L, orderProposalItemGroupId#969747, externalProductId#969748, externalPlantId#969749, logisticUnits#969750, orderQuantityBaseUom#969751, orderQuantityBaseUomUuid#969752, minimumOrderQuantity#969753, constraintLabels#969754, constraintOperators#969755, constraintValues#969756, constraintRanks#969757, constraintIsActive#969758, netPriceAmount#969759, netPriceCurrencyCode#969760, netPriceQuantity#969761, netPriceQuantityUom#969762, netPriceQuantityUomUuid#969763, measurements#969764, originalReplenishmentRunId#969765L, optimizationGroups#969766]
Input [45]: [orderProposalId#969723L, orderProposalItemId#969724, supplierGroup#969725, supplier#969726, plant#969727, deliveryDateTime#969728, subrange#969729, supplyingPlant#969730, productGroup#969731, product#969732, orderDateTime#969733, availabilityDateTime#969734, nextAvailabilityDateTime#969735, mrpController#969736, sourceOfSupplyUuid#969737, purchasingOrg#969738, purchasingGroup#969739, isFallbackOrderOnly#969740, orderProposalHorizonGroupingId#969741L, splitIndicator#969742L, previousOrderProposal#969743L, clusterId#969744L, worklistShardItemId#969746L, orderProposalItemGroupId#969747, externalProductId#969748, externalPlantId#969749, logisticUnits#969750, orderQuantityBaseUom#969751, orderQuantityBaseUomUuid#969752, minimumOrderQuantity#969753, constraintLabels#969754, constraintOperators#969755, constraintValues#969756, constraintRanks#969757, constraintIsActive#969758, netPriceAmount#969759, netPriceCurrencyCode#969760, netPriceQuantity#969761, netPriceQuantityUom#969762, netPriceQuantityUomUuid#969763, measurements#969764, originalReplenishmentRunId#969765L, optimizationGroups#969766, shardId#969767, sequenceId#969745]
(15) Exchange
Input [44]: [orderProposalId#969723L, orderProposalItemId#969724, supplierGroup#969725, supplier#969726, plant#969727, deliveryDateTime#969728, subrange#969729, supplyingPlant#969730, productGroup#969731, product#969732, orderDateTime#969733, availabilityDateTime#969734, nextAvailabilityDateTime#969735, mrpController#969736, sourceOfSupplyUuid#969737, purchasingOrg#969738, purchasingGroup#969739, isFallbackOrderOnly#969740, orderProposalHorizonGroupingId#969741L, splitIndicator#969742L, previousOrderProposal#969743L, clusterId#969744L, sequenceId#969745, worklistShardItemId#969746L, orderProposalItemGroupId#969747, externalProductId#969748, externalPlantId#969749, logisticUnits#969750, orderQuantityBaseUom#969751, orderQuantityBaseUomUuid#969752, minimumOrderQuantity#969753, constraintLabels#969754, constraintOperators#969755, constraintValues#969756, constraintRanks#969757, constraintIsActive#969758, netPriceAmount#969759, netPriceCurrencyCode#969760, netPriceQuantity#969761, netPriceQuantityUom#969762, netPriceQuantityUomUuid#969763, measurements#969764, originalReplenishmentRunId#969765L, optimizationGroups#969766]
Arguments: hashpartitioning(worklistShardItemId#969746L, 25), REPARTITION_BY_NUM, [plan_id=377551]
(16) Project
Output [45]: [0_1_10000002110 AS shardId#969678, worklistShardItemId#969746L, orderProposalId#969723L, orderProposalItemId#969724, orderProposalItemGroupId#969747, originalReplenishmentRunId#969765L, orderProposalHorizonGroupingId#969741L, splitIndicator#969742L, previousOrderProposal#969743L, clusterId#969744L, cast(sequenceId#969745 as bigint) AS sequenceId#969688L, sourceOfSupplyUuid#969737, supplierGroup#969725, supplier#969726, subrange#969729, product#969732, plant#969727, purchasingOrg#969738, purchasingGroup#969739, mrpController#969736, orderDateTime#969733, deliveryDateTime#969728, availabilityDateTime#969734, nextAvailabilityDateTime#969735, isFallbackOrderOnly#969740, orderQuantityBaseUom#969751, orderQuantityBaseUomUuid#969752, netPriceQuantity#969761, netPriceQuantityUom#969762, netPriceQuantityUomUuid#969763, netPriceAmount#969759, netPriceCurrencyCode#969760, measurements#969764, minimumOrderQuantity#969753, constraintLabels#969754, constraintOperators#969755, constraintRanks#969757, constraintValues#969756, constraintIsActive#969758, logisticUnits#969750, optimizationGroups#969766, externalProductId#969748, externalPlantId#969749, supplyingPlant#969730, productGroup#969731]
Input [44]: [orderProposalId#969723L, orderProposalItemId#969724, supplierGroup#969725, supplier#969726, plant#969727, deliveryDateTime#969728, subrange#969729, supplyingPlant#969730, productGroup#969731, product#969732, orderDateTime#969733, availabilityDateTime#969734, nextAvailabilityDateTime#969735, mrpController#969736, sourceOfSupplyUuid#969737, purchasingOrg#969738, purchasingGroup#969739, isFallbackOrderOnly#969740, orderProposalHorizonGroupingId#969741L, splitIndicator#969742L, previousOrderProposal#969743L, clusterId#969744L, sequenceId#969745, worklistShardItemId#969746L, orderProposalItemGroupId#969747, externalProductId#969748, externalPlantId#969749, logisticUnits#969750, orderQuantityBaseUom#969751, orderQuantityBaseUomUuid#969752, minimumOrderQuantity#969753, constraintLabels#969754, constraintOperators#969755, constraintValues#969756, constraintRanks#969757, constraintIsActive#969758, netPriceAmount#969759, netPriceCurrencyCode#969760, netPriceQuantity#969761, netPriceQuantityUom#969762, netPriceQuantityUomUuid#969763, measurements#969764, originalReplenishmentRunId#969765L, optimizationGroups#969766]
(17) AdaptiveSparkPlan
Output [45]: [shardId#969678, worklistShardItemId#969746L, orderProposalId#969723L, orderProposalItemId#969724, orderProposalItemGroupId#969747, originalReplenishmentRunId#969765L, orderProposalHorizonGroupingId#969741L, splitIndicator#969742L, previousOrderProposal#969743L, clusterId#969744L, sequenceId#969688L, sourceOfSupplyUuid#969737, supplierGroup#969725, supplier#969726, subrange#969729, product#969732, plant#969727, purchasingOrg#969738, purchasingGroup#969739, mrpController#969736, orderDateTime#969733, deliveryDateTime#969728, availabilityDateTime#969734, nextAvailabilityDateTime#969735, isFallbackOrderOnly#969740, orderQuantityBaseUom#969751, orderQuantityBaseUomUuid#969752, netPriceQuantity#969761, netPriceQuantityUom#969762, netPriceQuantityUomUuid#969763, netPriceAmount#969759, netPriceCurrencyCode#969760, measurements#969764, minimumOrderQuantity#969753, constraintLabels#969754, constraintOperators#969755, constraintRanks#969757, constraintValues#969756, constraintIsActive#969758, logisticUnits#969750, optimizationGroups#969766, externalProductId#969748, externalPlantId#969749, supplyingPlant#969730, productGroup#969731]
Arguments: isFinalPlan=true
(18) TableCacheQueryStage
Output [3]: [shardId#969678, worklistShardItemId#969679L, orderProposalId#969680L]
Arguments: 0
(19) Filter [codegen id : 1]
Input [3]: [shardId#969678, worklistShardItemId#969679L, orderProposalId#969680L]
Condition : (isnotnull(shardId#969678) AND isnotnull(orderProposalId#969680L))
(20) ObjectHashAggregate
Input [3]: [shardId#969678, worklistShardItemId#969679L, orderProposalId#969680L]
Keys [2]: [shardId#969678, orderProposalId#969680L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#969679L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#976427]
Results [3]: [shardId#969678, orderProposalId#969680L, buf#976428]
(21) Exchange
Input [3]: [shardId#969678, orderProposalId#969680L, buf#976428]
Arguments: hashpartitioning(shardId#969678, orderProposalId#969680L, 25), ENSURE_REQUIREMENTS, [plan_id=377945]
(22) ShuffleQueryStage [codegen id : 3]
Output [3]: [shardId#969678, orderProposalId#969680L, buf#976428]
Arguments: 2
(23) AQEShuffleRead [codegen id : 3]
Input [3]: [shardId#969678, orderProposalId#969680L, buf#976428]
Arguments: coalesced
(24) ObjectHashAggregate [codegen id : 3]
Input [3]: [shardId#969678, orderProposalId#969680L, buf#976428]
Keys [2]: [shardId#969678, orderProposalId#969680L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#969679L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#969679L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#974923]
Results [7]: [shardId#969678, orderProposalId#969680L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#969679L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#974923, lambdafunction(struct(worklistShardItemId, lambda x_2532#974944.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_2532#974944.quantityAfterProdPlantOptimization, qty, lambda x_2532#974944.optimalQuantity), lambda x_2532#974944, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#974945, [] AS optimizationGroups#974939, false AS isOptimal#974924, 2026-08-10 12:32:23.156927 AS lastModified#974943, [] AS optimizationInsights#974940]
(25) Union
(26) Exchange
Input [7]: [shardId#974932, orderProposalId#974933L, items#974934, optimizationGroups#974935, isOptimal#974936, lastModified#974937, optimizationInsights#974938]
Arguments: hashpartitioning(shardId#974932, orderProposalId#974933L, lastModified#974937, 25), ENSURE_REQUIREMENTS, [plan_id=378065]
(27) ShuffleQueryStage
Output [7]: [shardId#974932, orderProposalId#974933L, items#974934, optimizationGroups#974935, isOptimal#974936, lastModified#974937, optimizationInsights#974938]
Arguments: 4
(28) AQEShuffleRead
Input [7]: [shardId#974932, orderProposalId#974933L, items#974934, optimizationGroups#974935, isOptimal#974936, lastModified#974937, optimizationInsights#974938]
Arguments: local
(29) BroadcastExchange
Input [7]: [shardId#974932, orderProposalId#974933L, items#974934, optimizationGroups#974935, isOptimal#974936, lastModified#974937, optimizationInsights#974938]
Arguments: HashedRelationBroadcastMode(List(input[0, string, true], input[1, bigint, true], input[5, timestamp, false]),false), [plan_id=378191]
(30) BroadcastQueryStage
Output [7]: [shardId#974932, orderProposalId#974933L, items#974934, optimizationGroups#974935, isOptimal#974936, lastModified#974937, optimizationInsights#974938]
Arguments: 6
(31) Scan ExistingRDD [codegen id : 4]
Output [7]: [shardId#974955, orderProposalId#974956L, items#974957, optimizationGroups#974958, isOptimal#974959, lastModified#974960, optimizationInsights#974961]
Arguments: [shardId#974955, orderProposalId#974956L, items#974957, optimizationGroups#974958, isOptimal#974959, lastModified#974960, optimizationInsights#974961], MapPartitionsRDD[45511] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(32) Filter [codegen id : 4]
Input [7]: [shardId#974955, orderProposalId#974956L, items#974957, optimizationGroups#974958, isOptimal#974959, lastModified#974960, optimizationInsights#974961]
Condition : (isnotnull(shardId#974955) AND isnotnull(orderProposalId#974956L))
(33) Project [codegen id : 4]
Output [3]: [shardId#974955, orderProposalId#974956L, lastModified#974960]
Input [7]: [shardId#974955, orderProposalId#974956L, items#974957, optimizationGroups#974958, isOptimal#974959, lastModified#974960, optimizationInsights#974961]
(34) InMemoryTableScan
Output [2]: [shardId#974962, orderProposalId#974964L]
Arguments: [shardId#974962, orderProposalId#974964L], [isnotnull(shardId#974962), isnotnull(orderProposalId#974964L)]
(35) InMemoryRelation
Arguments: [shardId#974962, worklistShardItemId#974963L, orderProposalId#974964L, orderProposalItemId#974965, orderProposalItemGroupId#974966, originalReplenishmentRunId#974967L, orderProposalHorizonGroupingId#974968L, splitIndicator#974969L, previousOrderProposal#974970L, clusterId#974971L, sequenceId#974972L, sourceOfSupplyUuid#974973, supplierGroup#974974, supplier#974975, subrange#974976, product#974977, plant#974978, purchasingOrg#974979, purchasingGroup#974980, mrpController#974981, orderDateTime#974982, deliveryDateTime#974983, availabilityDateTime#974984, nextAvailabilityDateTime#974985, isFallbackOrderOnly#974986, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(36) TableCacheQueryStage
Output [2]: [shardId#974962, orderProposalId#974964L]
Arguments: 1
(37) Filter [codegen id : 2]
Input [2]: [shardId#974962, orderProposalId#974964L]
Condition : (isnotnull(shardId#974962) AND isnotnull(orderProposalId#974964L))
(38) HashAggregate [codegen id : 2]
Input [2]: [shardId#974962, orderProposalId#974964L]
Keys [2]: [shardId#974962, orderProposalId#974964L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#974962, orderProposalId#974964L]
(39) Exchange
Input [2]: [shardId#974962, orderProposalId#974964L]
Arguments: hashpartitioning(shardId#974962, orderProposalId#974964L, 25), ENSURE_REQUIREMENTS, [plan_id=377981]
(40) ShuffleQueryStage
Output [2]: [shardId#974962, orderProposalId#974964L]
Arguments: 3
(41) AQEShuffleRead
Input [2]: [shardId#974962, orderProposalId#974964L]
Arguments: coalesced
(42) HashAggregate [codegen id : 5]
Input [2]: [shardId#974962, orderProposalId#974964L]
Keys [2]: [shardId#974962, orderProposalId#974964L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#974962, orderProposalId#974964L, 2026-08-10 12:32:23.156927 AS lastModified#975059]
(43) Union
(44) HashAggregate [codegen id : 6]
Input [3]: [shardId#974955, orderProposalId#974956L, lastModified#974960]
Keys [2]: [shardId#974955, orderProposalId#974956L]
Functions [1]: [partial_max(lastModified#974960)]
Aggregate Attributes [1]: [max#976429]
Results [3]: [shardId#974955, orderProposalId#974956L, max#976430]
(45) Exchange
Input [3]: [shardId#974955, orderProposalId#974956L, max#976430]
Arguments: hashpartitioning(shardId#974955, orderProposalId#974956L, 25), ENSURE_REQUIREMENTS, [plan_id=378147]
(46) ShuffleQueryStage
Output [3]: [shardId#974955, orderProposalId#974956L, max#976430]
Arguments: 5
(47) AQEShuffleRead
Input [3]: [shardId#974955, orderProposalId#974956L, max#976430]
Arguments: coalesced
(48) HashAggregate
Input [3]: [shardId#974955, orderProposalId#974956L, max#976430]
Keys [2]: [shardId#974955, orderProposalId#974956L]
Functions [1]: [max(lastModified#974960)]
Aggregate Attributes [1]: [max(lastModified#974960)#974954]
Results [3]: [shardId#974955, orderProposalId#974956L, max(lastModified#974960)#974954 AS lastModified#974946]
(49) Filter
Input [3]: [shardId#974955, orderProposalId#974956L, lastModified#974946]
Condition : isnotnull(lastModified#974946)
(50) BroadcastHashJoin [codegen id : 7]
Left keys [3]: [shardId#974932, orderProposalId#974933L, lastModified#974937]
Right keys [3]: [shardId#974955, orderProposalId#974956L, lastModified#974946]
Join type: Inner
Join condition: None
(51) Project [codegen id : 7]
Output [7]: [shardId#974932, orderProposalId#974933L, items#974934, optimizationGroups#974935, isOptimal#974936, lastModified#974937, optimizationInsights#974938]
Input [10]: [shardId#974932, orderProposalId#974933L, items#974934, optimizationGroups#974935, isOptimal#974936, lastModified#974937, optimizationInsights#974938, shardId#974955, orderProposalId#974956L, lastModified#974946]
(52) DeserializeToObject
Input [7]: [shardId#974932, orderProposalId#974933L, items#974934, optimizationGroups#974935, isOptimal#974936, lastModified#974937, optimizationInsights#974938]
Arguments: createexternalrow(invoke(shardId#974932.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#974933L)), 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#974934, 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#974935, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#974936)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#974937)), 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#974938, 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#975076: org.apache.spark.sql.Row
(53) ResultQueryStage
Output [1]: [obj#975076]
Arguments: 7
(54) Filter
Input [3]: [shardId#969678, worklistShardItemId#969679L, orderProposalId#969680L]
Condition : (isnotnull(shardId#969678) AND isnotnull(orderProposalId#969680L))
(55) ObjectHashAggregate
Input [3]: [shardId#969678, worklistShardItemId#969679L, orderProposalId#969680L]
Keys [2]: [shardId#969678, orderProposalId#969680L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#969679L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#976427]
Results [3]: [shardId#969678, orderProposalId#969680L, buf#976428]
(56) Exchange
Input [3]: [shardId#969678, orderProposalId#969680L, buf#976428]
Arguments: hashpartitioning(shardId#969678, orderProposalId#969680L, 25), ENSURE_REQUIREMENTS, [plan_id=377774]
(57) ObjectHashAggregate
Input [3]: [shardId#969678, orderProposalId#969680L, buf#976428]
Keys [2]: [shardId#969678, orderProposalId#969680L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#969679L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#969679L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#974923]
Results [7]: [shardId#969678, orderProposalId#969680L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#969679L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#974923, lambdafunction(struct(worklistShardItemId, lambda x_2532#974944.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_2532#974944.quantityAfterProdPlantOptimization, qty, lambda x_2532#974944.optimalQuantity), lambda x_2532#974944, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#974945, [] AS optimizationGroups#974939, false AS isOptimal#974924, 2026-08-10 12:32:23.156927 AS lastModified#974943, [] AS optimizationInsights#974940]
(58) Union
(59) Exchange
Input [7]: [shardId#974932, orderProposalId#974933L, items#974934, optimizationGroups#974935, isOptimal#974936, lastModified#974937, optimizationInsights#974938]
Arguments: hashpartitioning(shardId#974932, orderProposalId#974933L, lastModified#974937, 25), ENSURE_REQUIREMENTS, [plan_id=377787]
(60) Sort
Input [7]: [shardId#974932, orderProposalId#974933L, items#974934, optimizationGroups#974935, isOptimal#974936, lastModified#974937, optimizationInsights#974938]
Arguments: [shardId#974932 ASC NULLS FIRST, orderProposalId#974933L ASC NULLS FIRST, lastModified#974937 ASC NULLS FIRST], false, 0
(61) Filter
Input [2]: [shardId#974962, orderProposalId#974964L]
Condition : (isnotnull(shardId#974962) AND isnotnull(orderProposalId#974964L))
(62) HashAggregate
Input [2]: [shardId#974962, orderProposalId#974964L]
Keys [2]: [shardId#974962, orderProposalId#974964L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#974962, orderProposalId#974964L]
(63) Exchange
Input [2]: [shardId#974962, orderProposalId#974964L]
Arguments: hashpartitioning(shardId#974962, orderProposalId#974964L, 25), ENSURE_REQUIREMENTS, [plan_id=377777]
(64) HashAggregate
Input [2]: [shardId#974962, orderProposalId#974964L]
Keys [2]: [shardId#974962, orderProposalId#974964L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#974962, orderProposalId#974964L, 2026-08-10 12:32:23.156927 AS lastModified#975059]
(65) Union
(66) HashAggregate
Input [3]: [shardId#974955, orderProposalId#974956L, lastModified#974960]
Keys [2]: [shardId#974955, orderProposalId#974956L]
Functions [1]: [partial_max(lastModified#974960)]
Aggregate Attributes [1]: [max#976429]
Results [3]: [shardId#974955, orderProposalId#974956L, max#976430]
(67) Exchange
Input [3]: [shardId#974955, orderProposalId#974956L, max#976430]
Arguments: hashpartitioning(shardId#974955, orderProposalId#974956L, 25), ENSURE_REQUIREMENTS, [plan_id=377782]
(68) HashAggregate
Input [3]: [shardId#974955, orderProposalId#974956L, max#976430]
Keys [2]: [shardId#974955, orderProposalId#974956L]
Functions [1]: [max(lastModified#974960)]
Aggregate Attributes [1]: [max(lastModified#974960)#974954]
Results [3]: [shardId#974955, orderProposalId#974956L, max(lastModified#974960)#974954 AS lastModified#974946]
(69) Filter
Input [3]: [shardId#974955, orderProposalId#974956L, lastModified#974946]
Condition : isnotnull(lastModified#974946)
(70) Exchange
Input [3]: [shardId#974955, orderProposalId#974956L, lastModified#974946]
Arguments: hashpartitioning(shardId#974955, orderProposalId#974956L, lastModified#974946, 25), ENSURE_REQUIREMENTS, [plan_id=377788]
(71) Sort
Input [3]: [shardId#974955, orderProposalId#974956L, lastModified#974946]
Arguments: [shardId#974955 ASC NULLS FIRST, orderProposalId#974956L ASC NULLS FIRST, lastModified#974946 ASC NULLS FIRST], false, 0
(72) SortMergeJoin
Left keys [3]: [shardId#974932, orderProposalId#974933L, lastModified#974937]
Right keys [3]: [shardId#974955, orderProposalId#974956L, lastModified#974946]
Join type: Inner
Join condition: None
(73) Project
Output [7]: [shardId#974932, orderProposalId#974933L, items#974934, optimizationGroups#974935, isOptimal#974936, lastModified#974937, optimizationInsights#974938]
Input [10]: [shardId#974932, orderProposalId#974933L, items#974934, optimizationGroups#974935, isOptimal#974936, lastModified#974937, optimizationInsights#974938, shardId#974955, orderProposalId#974956L, lastModified#974946]
(74) DeserializeToObject
Input [7]: [shardId#974932, orderProposalId#974933L, items#974934, optimizationGroups#974935, isOptimal#974936, lastModified#974937, optimizationInsights#974938]
Arguments: createexternalrow(invoke(shardId#974932.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#974933L)), 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#974934, 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#974935, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#974936)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#974937)), 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#974938, 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#975076: org.apache.spark.sql.Row
(75) AdaptiveSparkPlan
Output [1]: [obj#975076]
Arguments: isFinalPlan=true