== 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=688.0 B, rowCount=4)
: +- Exchange (26)
: +- Union (25)
: :- * Filter (2)
: : +- * Scan ExistingRDD (1)
: +- ObjectHashAggregate (24)
: +- AQEShuffleRead (23)
: +- ShuffleQueryStage (22), Statistics(sizeInBytes=720.0 B, rowCount=6)
: +- Exchange (21)
: +- ObjectHashAggregate (20)
: +- * Filter (19)
: +- TableCacheQueryStage (18), Statistics(sizeInBytes=9.5 KiB, rowCount=6)
: +- InMemoryTableScan (3)
: +- InMemoryRelation (4)
: +- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=10.4 KiB, rowCount=6)
+- 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.0 MiB, rowCount=4)
+- BroadcastExchange (48)
+- * Filter (47)
+- * HashAggregate (46)
+- AQEShuffleRead (45)
+- ShuffleQueryStage (44), Statistics(sizeInBytes=192.0 B, rowCount=4)
+- Exchange (43)
+- * HashAggregate (42)
+- Union (41)
:- * Project (31)
: +- * Filter (30)
: +- * Scan ExistingRDD (29)
+- * HashAggregate (40)
+- AQEShuffleRead (39)
+- ShuffleQueryStage (38), Statistics(sizeInBytes=240.0 B, rowCount=6)
+- Exchange (37)
+- * HashAggregate (36)
+- * Filter (35)
+- TableCacheQueryStage (34), Statistics(sizeInBytes=9.5 KiB, rowCount=6)
+- InMemoryTableScan (32)
+- InMemoryRelation (33)
+- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=10.4 KiB, rowCount=6)
+- 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=10.4 KiB, rowCount=6)
+- 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=10.4 KiB, rowCount=6)
+- 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#840884, orderProposalId#840885L, items#840886, optimizationGroups#840887, isOptimal#840888, lastModified#840889, optimizationInsights#840890]
Arguments: [shardId#840884, orderProposalId#840885L, items#840886, optimizationGroups#840887, isOptimal#840888, lastModified#840889, optimizationInsights#840890], MapPartitionsRDD[39306] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(2) Filter [codegen id : 3]
Input [7]: [shardId#840884, orderProposalId#840885L, items#840886, optimizationGroups#840887, isOptimal#840888, lastModified#840889, optimizationInsights#840890]
Condition : ((isnotnull(shardId#840884) AND isnotnull(orderProposalId#840885L)) AND isnotnull(lastModified#840889))
(3) InMemoryTableScan
Output [3]: [shardId#835462, worklistShardItemId#835463L, orderProposalId#835464L]
Arguments: [shardId#835462, worklistShardItemId#835463L, orderProposalId#835464L], [isnotnull(shardId#835462), isnotnull(orderProposalId#835464L)]
(4) InMemoryRelation
Arguments: [shardId#835462, worklistShardItemId#835463L, orderProposalId#835464L, orderProposalItemId#835465, orderProposalItemGroupId#835466, originalReplenishmentRunId#835467L, orderProposalHorizonGroupingId#835468L, splitIndicator#835469L, previousOrderProposal#835470L, clusterId#835471L, sequenceId#835472L, sourceOfSupplyUuid#835473, supplierGroup#835474, supplier#835475, subrange#835476, product#835477, plant#835478, purchasingOrg#835479, purchasingGroup#835480, mrpController#835481, orderDateTime#835482, deliveryDateTime#835483, availabilityDateTime#835484, nextAvailabilityDateTime#835485, isFallbackOrderOnly#835486, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(5) Scan parquet
Output [45]: [orderProposalId#835507L, orderProposalItemId#835508, supplierGroup#835509, supplier#835510, plant#835511, deliveryDateTime#835512, subrange#835513, supplyingPlant#835514, productGroup#835515, product#835516, orderDateTime#835517, availabilityDateTime#835518, nextAvailabilityDateTime#835519, mrpController#835520, sourceOfSupplyUuid#835521, purchasingOrg#835522, purchasingGroup#835523, isFallbackOrderOnly#835524, orderProposalHorizonGroupingId#835525L, splitIndicator#835526L, previousOrderProposal#835527L, clusterId#835528L, worklistShardItemId#835530L, orderProposalItemGroupId#835531, externalProductId#835532, externalPlantId#835533, logisticUnits#835534, orderQuantityBaseUom#835535, orderQuantityBaseUomUuid#835536, minimumOrderQuantity#835537, constraintLabels#835538, constraintOperators#835539, constraintValues#835540, constraintRanks#835541, constraintIsActive#835542, netPriceAmount#835543, netPriceCurrencyCode#835544, netPriceQuantity#835545, netPriceQuantityUom#835546, netPriceQuantityUomUuid#835547, measurements#835548, originalReplenishmentRunId#835549L, optimizationGroups#835550, shardId#835551, sequenceId#835529]
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/10000002109]
PartitionFilters: [isnotnull(shardId#835551), isnotnull(sequenceId#835529), (shardId#835551 = 0_1_10000002109), (sequenceId#835529 = 0)]
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#835507L, orderProposalItemId#835508, supplierGroup#835509, supplier#835510, plant#835511, deliveryDateTime#835512, subrange#835513, supplyingPlant#835514, productGroup#835515, product#835516, orderDateTime#835517, availabilityDateTime#835518, nextAvailabilityDateTime#835519, mrpController#835520, sourceOfSupplyUuid#835521, purchasingOrg#835522, purchasingGroup#835523, isFallbackOrderOnly#835524, orderProposalHorizonGroupingId#835525L, splitIndicator#835526L, previousOrderProposal#835527L, clusterId#835528L, worklistShardItemId#835530L, orderProposalItemGroupId#835531, externalProductId#835532, externalPlantId#835533, logisticUnits#835534, orderQuantityBaseUom#835535, orderQuantityBaseUomUuid#835536, minimumOrderQuantity#835537, constraintLabels#835538, constraintOperators#835539, constraintValues#835540, constraintRanks#835541, constraintIsActive#835542, netPriceAmount#835543, netPriceCurrencyCode#835544, netPriceQuantity#835545, netPriceQuantityUom#835546, netPriceQuantityUomUuid#835547, measurements#835548, originalReplenishmentRunId#835549L, optimizationGroups#835550, shardId#835551, sequenceId#835529]
(7) Filter [codegen id : 1]
Input [45]: [orderProposalId#835507L, orderProposalItemId#835508, supplierGroup#835509, supplier#835510, plant#835511, deliveryDateTime#835512, subrange#835513, supplyingPlant#835514, productGroup#835515, product#835516, orderDateTime#835517, availabilityDateTime#835518, nextAvailabilityDateTime#835519, mrpController#835520, sourceOfSupplyUuid#835521, purchasingOrg#835522, purchasingGroup#835523, isFallbackOrderOnly#835524, orderProposalHorizonGroupingId#835525L, splitIndicator#835526L, previousOrderProposal#835527L, clusterId#835528L, worklistShardItemId#835530L, orderProposalItemGroupId#835531, externalProductId#835532, externalPlantId#835533, logisticUnits#835534, orderQuantityBaseUom#835535, orderQuantityBaseUomUuid#835536, minimumOrderQuantity#835537, constraintLabels#835538, constraintOperators#835539, constraintValues#835540, constraintRanks#835541, constraintIsActive#835542, netPriceAmount#835543, netPriceCurrencyCode#835544, netPriceQuantity#835545, netPriceQuantityUom#835546, netPriceQuantityUomUuid#835547, measurements#835548, originalReplenishmentRunId#835549L, optimizationGroups#835550, shardId#835551, sequenceId#835529]
Condition : ((isnotnull(availabilityDateTime#835518) AND isnotnull(nextAvailabilityDateTime#835519)) AND (nextAvailabilityDateTime#835519 > availabilityDateTime#835518))
(8) Project [codegen id : 1]
Output [44]: [orderProposalId#835507L, orderProposalItemId#835508, supplierGroup#835509, supplier#835510, plant#835511, deliveryDateTime#835512, subrange#835513, supplyingPlant#835514, productGroup#835515, product#835516, orderDateTime#835517, availabilityDateTime#835518, nextAvailabilityDateTime#835519, mrpController#835520, sourceOfSupplyUuid#835521, purchasingOrg#835522, purchasingGroup#835523, isFallbackOrderOnly#835524, orderProposalHorizonGroupingId#835525L, splitIndicator#835526L, previousOrderProposal#835527L, clusterId#835528L, sequenceId#835529, worklistShardItemId#835530L, orderProposalItemGroupId#835531, externalProductId#835532, externalPlantId#835533, logisticUnits#835534, orderQuantityBaseUom#835535, orderQuantityBaseUomUuid#835536, minimumOrderQuantity#835537, constraintLabels#835538, constraintOperators#835539, constraintValues#835540, constraintRanks#835541, constraintIsActive#835542, netPriceAmount#835543, netPriceCurrencyCode#835544, netPriceQuantity#835545, netPriceQuantityUom#835546, netPriceQuantityUomUuid#835547, measurements#835548, originalReplenishmentRunId#835549L, optimizationGroups#835550]
Input [45]: [orderProposalId#835507L, orderProposalItemId#835508, supplierGroup#835509, supplier#835510, plant#835511, deliveryDateTime#835512, subrange#835513, supplyingPlant#835514, productGroup#835515, product#835516, orderDateTime#835517, availabilityDateTime#835518, nextAvailabilityDateTime#835519, mrpController#835520, sourceOfSupplyUuid#835521, purchasingOrg#835522, purchasingGroup#835523, isFallbackOrderOnly#835524, orderProposalHorizonGroupingId#835525L, splitIndicator#835526L, previousOrderProposal#835527L, clusterId#835528L, worklistShardItemId#835530L, orderProposalItemGroupId#835531, externalProductId#835532, externalPlantId#835533, logisticUnits#835534, orderQuantityBaseUom#835535, orderQuantityBaseUomUuid#835536, minimumOrderQuantity#835537, constraintLabels#835538, constraintOperators#835539, constraintValues#835540, constraintRanks#835541, constraintIsActive#835542, netPriceAmount#835543, netPriceCurrencyCode#835544, netPriceQuantity#835545, netPriceQuantityUom#835546, netPriceQuantityUomUuid#835547, measurements#835548, originalReplenishmentRunId#835549L, optimizationGroups#835550, shardId#835551, sequenceId#835529]
(9) Exchange
Input [44]: [orderProposalId#835507L, orderProposalItemId#835508, supplierGroup#835509, supplier#835510, plant#835511, deliveryDateTime#835512, subrange#835513, supplyingPlant#835514, productGroup#835515, product#835516, orderDateTime#835517, availabilityDateTime#835518, nextAvailabilityDateTime#835519, mrpController#835520, sourceOfSupplyUuid#835521, purchasingOrg#835522, purchasingGroup#835523, isFallbackOrderOnly#835524, orderProposalHorizonGroupingId#835525L, splitIndicator#835526L, previousOrderProposal#835527L, clusterId#835528L, sequenceId#835529, worklistShardItemId#835530L, orderProposalItemGroupId#835531, externalProductId#835532, externalPlantId#835533, logisticUnits#835534, orderQuantityBaseUom#835535, orderQuantityBaseUomUuid#835536, minimumOrderQuantity#835537, constraintLabels#835538, constraintOperators#835539, constraintValues#835540, constraintRanks#835541, constraintIsActive#835542, netPriceAmount#835543, netPriceCurrencyCode#835544, netPriceQuantity#835545, netPriceQuantityUom#835546, netPriceQuantityUomUuid#835547, measurements#835548, originalReplenishmentRunId#835549L, optimizationGroups#835550]
Arguments: hashpartitioning(worklistShardItemId#835530L, 25), REPARTITION_BY_NUM, [plan_id=331506]
(10) ShuffleQueryStage
Output [44]: [orderProposalId#835507L, orderProposalItemId#835508, supplierGroup#835509, supplier#835510, plant#835511, deliveryDateTime#835512, subrange#835513, supplyingPlant#835514, productGroup#835515, product#835516, orderDateTime#835517, availabilityDateTime#835518, nextAvailabilityDateTime#835519, mrpController#835520, sourceOfSupplyUuid#835521, purchasingOrg#835522, purchasingGroup#835523, isFallbackOrderOnly#835524, orderProposalHorizonGroupingId#835525L, splitIndicator#835526L, previousOrderProposal#835527L, clusterId#835528L, sequenceId#835529, worklistShardItemId#835530L, orderProposalItemGroupId#835531, externalProductId#835532, externalPlantId#835533, logisticUnits#835534, orderQuantityBaseUom#835535, orderQuantityBaseUomUuid#835536, minimumOrderQuantity#835537, constraintLabels#835538, constraintOperators#835539, constraintValues#835540, constraintRanks#835541, constraintIsActive#835542, netPriceAmount#835543, netPriceCurrencyCode#835544, netPriceQuantity#835545, netPriceQuantityUom#835546, netPriceQuantityUomUuid#835547, measurements#835548, originalReplenishmentRunId#835549L, optimizationGroups#835550]
Arguments: 0
(11) Project [codegen id : 2]
Output [45]: [0_1_10000002109 AS shardId#835462, worklistShardItemId#835530L, orderProposalId#835507L, orderProposalItemId#835508, orderProposalItemGroupId#835531, originalReplenishmentRunId#835549L, orderProposalHorizonGroupingId#835525L, splitIndicator#835526L, previousOrderProposal#835527L, clusterId#835528L, cast(sequenceId#835529 as bigint) AS sequenceId#835472L, sourceOfSupplyUuid#835521, supplierGroup#835509, supplier#835510, subrange#835513, product#835516, plant#835511, purchasingOrg#835522, purchasingGroup#835523, mrpController#835520, orderDateTime#835517, deliveryDateTime#835512, availabilityDateTime#835518, nextAvailabilityDateTime#835519, isFallbackOrderOnly#835524, orderQuantityBaseUom#835535, orderQuantityBaseUomUuid#835536, netPriceQuantity#835545, netPriceQuantityUom#835546, netPriceQuantityUomUuid#835547, netPriceAmount#835543, netPriceCurrencyCode#835544, measurements#835548, minimumOrderQuantity#835537, constraintLabels#835538, constraintOperators#835539, constraintRanks#835541, constraintValues#835540, constraintIsActive#835542, logisticUnits#835534, optimizationGroups#835550, externalProductId#835532, externalPlantId#835533, supplyingPlant#835514, productGroup#835515]
Input [44]: [orderProposalId#835507L, orderProposalItemId#835508, supplierGroup#835509, supplier#835510, plant#835511, deliveryDateTime#835512, subrange#835513, supplyingPlant#835514, productGroup#835515, product#835516, orderDateTime#835517, availabilityDateTime#835518, nextAvailabilityDateTime#835519, mrpController#835520, sourceOfSupplyUuid#835521, purchasingOrg#835522, purchasingGroup#835523, isFallbackOrderOnly#835524, orderProposalHorizonGroupingId#835525L, splitIndicator#835526L, previousOrderProposal#835527L, clusterId#835528L, sequenceId#835529, worklistShardItemId#835530L, orderProposalItemGroupId#835531, externalProductId#835532, externalPlantId#835533, logisticUnits#835534, orderQuantityBaseUom#835535, orderQuantityBaseUomUuid#835536, minimumOrderQuantity#835537, constraintLabels#835538, constraintOperators#835539, constraintValues#835540, constraintRanks#835541, constraintIsActive#835542, netPriceAmount#835543, netPriceCurrencyCode#835544, netPriceQuantity#835545, netPriceQuantityUom#835546, netPriceQuantityUomUuid#835547, measurements#835548, originalReplenishmentRunId#835549L, optimizationGroups#835550]
(12) ResultQueryStage
Output [45]: [shardId#835462, worklistShardItemId#835530L, orderProposalId#835507L, orderProposalItemId#835508, orderProposalItemGroupId#835531, originalReplenishmentRunId#835549L, orderProposalHorizonGroupingId#835525L, splitIndicator#835526L, previousOrderProposal#835527L, clusterId#835528L, sequenceId#835472L, sourceOfSupplyUuid#835521, supplierGroup#835509, supplier#835510, subrange#835513, product#835516, plant#835511, purchasingOrg#835522, purchasingGroup#835523, mrpController#835520, orderDateTime#835517, deliveryDateTime#835512, availabilityDateTime#835518, nextAvailabilityDateTime#835519, isFallbackOrderOnly#835524, orderQuantityBaseUom#835535, orderQuantityBaseUomUuid#835536, netPriceQuantity#835545, netPriceQuantityUom#835546, netPriceQuantityUomUuid#835547, netPriceAmount#835543, netPriceCurrencyCode#835544, measurements#835548, minimumOrderQuantity#835537, constraintLabels#835538, constraintOperators#835539, constraintRanks#835541, constraintValues#835540, constraintIsActive#835542, logisticUnits#835534, optimizationGroups#835550, externalProductId#835532, externalPlantId#835533, supplyingPlant#835514, productGroup#835515]
Arguments: 1
(13) Filter
Input [45]: [orderProposalId#835507L, orderProposalItemId#835508, supplierGroup#835509, supplier#835510, plant#835511, deliveryDateTime#835512, subrange#835513, supplyingPlant#835514, productGroup#835515, product#835516, orderDateTime#835517, availabilityDateTime#835518, nextAvailabilityDateTime#835519, mrpController#835520, sourceOfSupplyUuid#835521, purchasingOrg#835522, purchasingGroup#835523, isFallbackOrderOnly#835524, orderProposalHorizonGroupingId#835525L, splitIndicator#835526L, previousOrderProposal#835527L, clusterId#835528L, worklistShardItemId#835530L, orderProposalItemGroupId#835531, externalProductId#835532, externalPlantId#835533, logisticUnits#835534, orderQuantityBaseUom#835535, orderQuantityBaseUomUuid#835536, minimumOrderQuantity#835537, constraintLabels#835538, constraintOperators#835539, constraintValues#835540, constraintRanks#835541, constraintIsActive#835542, netPriceAmount#835543, netPriceCurrencyCode#835544, netPriceQuantity#835545, netPriceQuantityUom#835546, netPriceQuantityUomUuid#835547, measurements#835548, originalReplenishmentRunId#835549L, optimizationGroups#835550, shardId#835551, sequenceId#835529]
Condition : ((isnotnull(availabilityDateTime#835518) AND isnotnull(nextAvailabilityDateTime#835519)) AND (nextAvailabilityDateTime#835519 > availabilityDateTime#835518))
(14) Project
Output [44]: [orderProposalId#835507L, orderProposalItemId#835508, supplierGroup#835509, supplier#835510, plant#835511, deliveryDateTime#835512, subrange#835513, supplyingPlant#835514, productGroup#835515, product#835516, orderDateTime#835517, availabilityDateTime#835518, nextAvailabilityDateTime#835519, mrpController#835520, sourceOfSupplyUuid#835521, purchasingOrg#835522, purchasingGroup#835523, isFallbackOrderOnly#835524, orderProposalHorizonGroupingId#835525L, splitIndicator#835526L, previousOrderProposal#835527L, clusterId#835528L, sequenceId#835529, worklistShardItemId#835530L, orderProposalItemGroupId#835531, externalProductId#835532, externalPlantId#835533, logisticUnits#835534, orderQuantityBaseUom#835535, orderQuantityBaseUomUuid#835536, minimumOrderQuantity#835537, constraintLabels#835538, constraintOperators#835539, constraintValues#835540, constraintRanks#835541, constraintIsActive#835542, netPriceAmount#835543, netPriceCurrencyCode#835544, netPriceQuantity#835545, netPriceQuantityUom#835546, netPriceQuantityUomUuid#835547, measurements#835548, originalReplenishmentRunId#835549L, optimizationGroups#835550]
Input [45]: [orderProposalId#835507L, orderProposalItemId#835508, supplierGroup#835509, supplier#835510, plant#835511, deliveryDateTime#835512, subrange#835513, supplyingPlant#835514, productGroup#835515, product#835516, orderDateTime#835517, availabilityDateTime#835518, nextAvailabilityDateTime#835519, mrpController#835520, sourceOfSupplyUuid#835521, purchasingOrg#835522, purchasingGroup#835523, isFallbackOrderOnly#835524, orderProposalHorizonGroupingId#835525L, splitIndicator#835526L, previousOrderProposal#835527L, clusterId#835528L, worklistShardItemId#835530L, orderProposalItemGroupId#835531, externalProductId#835532, externalPlantId#835533, logisticUnits#835534, orderQuantityBaseUom#835535, orderQuantityBaseUomUuid#835536, minimumOrderQuantity#835537, constraintLabels#835538, constraintOperators#835539, constraintValues#835540, constraintRanks#835541, constraintIsActive#835542, netPriceAmount#835543, netPriceCurrencyCode#835544, netPriceQuantity#835545, netPriceQuantityUom#835546, netPriceQuantityUomUuid#835547, measurements#835548, originalReplenishmentRunId#835549L, optimizationGroups#835550, shardId#835551, sequenceId#835529]
(15) Exchange
Input [44]: [orderProposalId#835507L, orderProposalItemId#835508, supplierGroup#835509, supplier#835510, plant#835511, deliveryDateTime#835512, subrange#835513, supplyingPlant#835514, productGroup#835515, product#835516, orderDateTime#835517, availabilityDateTime#835518, nextAvailabilityDateTime#835519, mrpController#835520, sourceOfSupplyUuid#835521, purchasingOrg#835522, purchasingGroup#835523, isFallbackOrderOnly#835524, orderProposalHorizonGroupingId#835525L, splitIndicator#835526L, previousOrderProposal#835527L, clusterId#835528L, sequenceId#835529, worklistShardItemId#835530L, orderProposalItemGroupId#835531, externalProductId#835532, externalPlantId#835533, logisticUnits#835534, orderQuantityBaseUom#835535, orderQuantityBaseUomUuid#835536, minimumOrderQuantity#835537, constraintLabels#835538, constraintOperators#835539, constraintValues#835540, constraintRanks#835541, constraintIsActive#835542, netPriceAmount#835543, netPriceCurrencyCode#835544, netPriceQuantity#835545, netPriceQuantityUom#835546, netPriceQuantityUomUuid#835547, measurements#835548, originalReplenishmentRunId#835549L, optimizationGroups#835550]
Arguments: hashpartitioning(worklistShardItemId#835530L, 25), REPARTITION_BY_NUM, [plan_id=331478]
(16) Project
Output [45]: [0_1_10000002109 AS shardId#835462, worklistShardItemId#835530L, orderProposalId#835507L, orderProposalItemId#835508, orderProposalItemGroupId#835531, originalReplenishmentRunId#835549L, orderProposalHorizonGroupingId#835525L, splitIndicator#835526L, previousOrderProposal#835527L, clusterId#835528L, cast(sequenceId#835529 as bigint) AS sequenceId#835472L, sourceOfSupplyUuid#835521, supplierGroup#835509, supplier#835510, subrange#835513, product#835516, plant#835511, purchasingOrg#835522, purchasingGroup#835523, mrpController#835520, orderDateTime#835517, deliveryDateTime#835512, availabilityDateTime#835518, nextAvailabilityDateTime#835519, isFallbackOrderOnly#835524, orderQuantityBaseUom#835535, orderQuantityBaseUomUuid#835536, netPriceQuantity#835545, netPriceQuantityUom#835546, netPriceQuantityUomUuid#835547, netPriceAmount#835543, netPriceCurrencyCode#835544, measurements#835548, minimumOrderQuantity#835537, constraintLabels#835538, constraintOperators#835539, constraintRanks#835541, constraintValues#835540, constraintIsActive#835542, logisticUnits#835534, optimizationGroups#835550, externalProductId#835532, externalPlantId#835533, supplyingPlant#835514, productGroup#835515]
Input [44]: [orderProposalId#835507L, orderProposalItemId#835508, supplierGroup#835509, supplier#835510, plant#835511, deliveryDateTime#835512, subrange#835513, supplyingPlant#835514, productGroup#835515, product#835516, orderDateTime#835517, availabilityDateTime#835518, nextAvailabilityDateTime#835519, mrpController#835520, sourceOfSupplyUuid#835521, purchasingOrg#835522, purchasingGroup#835523, isFallbackOrderOnly#835524, orderProposalHorizonGroupingId#835525L, splitIndicator#835526L, previousOrderProposal#835527L, clusterId#835528L, sequenceId#835529, worklistShardItemId#835530L, orderProposalItemGroupId#835531, externalProductId#835532, externalPlantId#835533, logisticUnits#835534, orderQuantityBaseUom#835535, orderQuantityBaseUomUuid#835536, minimumOrderQuantity#835537, constraintLabels#835538, constraintOperators#835539, constraintValues#835540, constraintRanks#835541, constraintIsActive#835542, netPriceAmount#835543, netPriceCurrencyCode#835544, netPriceQuantity#835545, netPriceQuantityUom#835546, netPriceQuantityUomUuid#835547, measurements#835548, originalReplenishmentRunId#835549L, optimizationGroups#835550]
(17) AdaptiveSparkPlan
Output [45]: [shardId#835462, worklistShardItemId#835530L, orderProposalId#835507L, orderProposalItemId#835508, orderProposalItemGroupId#835531, originalReplenishmentRunId#835549L, orderProposalHorizonGroupingId#835525L, splitIndicator#835526L, previousOrderProposal#835527L, clusterId#835528L, sequenceId#835472L, sourceOfSupplyUuid#835521, supplierGroup#835509, supplier#835510, subrange#835513, product#835516, plant#835511, purchasingOrg#835522, purchasingGroup#835523, mrpController#835520, orderDateTime#835517, deliveryDateTime#835512, availabilityDateTime#835518, nextAvailabilityDateTime#835519, isFallbackOrderOnly#835524, orderQuantityBaseUom#835535, orderQuantityBaseUomUuid#835536, netPriceQuantity#835545, netPriceQuantityUom#835546, netPriceQuantityUomUuid#835547, netPriceAmount#835543, netPriceCurrencyCode#835544, measurements#835548, minimumOrderQuantity#835537, constraintLabels#835538, constraintOperators#835539, constraintRanks#835541, constraintValues#835540, constraintIsActive#835542, logisticUnits#835534, optimizationGroups#835550, externalProductId#835532, externalPlantId#835533, supplyingPlant#835514, productGroup#835515]
Arguments: isFinalPlan=true
(18) TableCacheQueryStage
Output [3]: [shardId#835462, worklistShardItemId#835463L, orderProposalId#835464L]
Arguments: 0
(19) Filter [codegen id : 1]
Input [3]: [shardId#835462, worklistShardItemId#835463L, orderProposalId#835464L]
Condition : (isnotnull(shardId#835462) AND isnotnull(orderProposalId#835464L))
(20) ObjectHashAggregate
Input [3]: [shardId#835462, worklistShardItemId#835463L, orderProposalId#835464L]
Keys [2]: [shardId#835462, orderProposalId#835464L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#835463L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#842379]
Results [3]: [shardId#835462, orderProposalId#835464L, buf#842380]
(21) Exchange
Input [3]: [shardId#835462, orderProposalId#835464L, buf#842380]
Arguments: hashpartitioning(shardId#835462, orderProposalId#835464L, 25), ENSURE_REQUIREMENTS, [plan_id=331872]
(22) ShuffleQueryStage [codegen id : 3]
Output [3]: [shardId#835462, orderProposalId#835464L, buf#842380]
Arguments: 2
(23) AQEShuffleRead [codegen id : 3]
Input [3]: [shardId#835462, orderProposalId#835464L, buf#842380]
Arguments: coalesced
(24) ObjectHashAggregate [codegen id : 3]
Input [3]: [shardId#835462, orderProposalId#835464L, buf#842380]
Keys [2]: [shardId#835462, orderProposalId#835464L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#835463L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#835463L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#840875]
Results [7]: [shardId#835462, orderProposalId#835464L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#835463L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#840875, lambdafunction(struct(worklistShardItemId, lambda x_2171#840896.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_2171#840896.quantityAfterProdPlantOptimization, qty, lambda x_2171#840896.optimalQuantity), lambda x_2171#840896, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#840897, [] AS optimizationGroups#840891, false AS isOptimal#840876, 2026-08-10 11:30:32.394895 AS lastModified#840895, [] AS optimizationInsights#840892]
(25) Union
(26) Exchange
Input [7]: [shardId#840884, orderProposalId#840885L, items#840886, optimizationGroups#840887, isOptimal#840888, lastModified#840889, optimizationInsights#840890]
Arguments: hashpartitioning(shardId#840884, orderProposalId#840885L, lastModified#840889, 25), ENSURE_REQUIREMENTS, [plan_id=331992]
(27) ShuffleQueryStage
Output [7]: [shardId#840884, orderProposalId#840885L, items#840886, optimizationGroups#840887, isOptimal#840888, lastModified#840889, optimizationInsights#840890]
Arguments: 4
(28) AQEShuffleRead
Input [7]: [shardId#840884, orderProposalId#840885L, items#840886, optimizationGroups#840887, isOptimal#840888, lastModified#840889, optimizationInsights#840890]
Arguments: local
(29) Scan ExistingRDD [codegen id : 4]
Output [7]: [shardId#840907, orderProposalId#840908L, items#840909, optimizationGroups#840910, isOptimal#840911, lastModified#840912, optimizationInsights#840913]
Arguments: [shardId#840907, orderProposalId#840908L, items#840909, optimizationGroups#840910, isOptimal#840911, lastModified#840912, optimizationInsights#840913], MapPartitionsRDD[39306] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(30) Filter [codegen id : 4]
Input [7]: [shardId#840907, orderProposalId#840908L, items#840909, optimizationGroups#840910, isOptimal#840911, lastModified#840912, optimizationInsights#840913]
Condition : (isnotnull(shardId#840907) AND isnotnull(orderProposalId#840908L))
(31) Project [codegen id : 4]
Output [3]: [shardId#840907, orderProposalId#840908L, lastModified#840912]
Input [7]: [shardId#840907, orderProposalId#840908L, items#840909, optimizationGroups#840910, isOptimal#840911, lastModified#840912, optimizationInsights#840913]
(32) InMemoryTableScan
Output [2]: [shardId#840914, orderProposalId#840916L]
Arguments: [shardId#840914, orderProposalId#840916L], [isnotnull(shardId#840914), isnotnull(orderProposalId#840916L)]
(33) InMemoryRelation
Arguments: [shardId#840914, worklistShardItemId#840915L, orderProposalId#840916L, orderProposalItemId#840917, orderProposalItemGroupId#840918, originalReplenishmentRunId#840919L, orderProposalHorizonGroupingId#840920L, splitIndicator#840921L, previousOrderProposal#840922L, clusterId#840923L, sequenceId#840924L, sourceOfSupplyUuid#840925, supplierGroup#840926, supplier#840927, subrange#840928, product#840929, plant#840930, purchasingOrg#840931, purchasingGroup#840932, mrpController#840933, orderDateTime#840934, deliveryDateTime#840935, availabilityDateTime#840936, nextAvailabilityDateTime#840937, isFallbackOrderOnly#840938, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(34) TableCacheQueryStage
Output [2]: [shardId#840914, orderProposalId#840916L]
Arguments: 1
(35) Filter [codegen id : 2]
Input [2]: [shardId#840914, orderProposalId#840916L]
Condition : (isnotnull(shardId#840914) AND isnotnull(orderProposalId#840916L))
(36) HashAggregate [codegen id : 2]
Input [2]: [shardId#840914, orderProposalId#840916L]
Keys [2]: [shardId#840914, orderProposalId#840916L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#840914, orderProposalId#840916L]
(37) Exchange
Input [2]: [shardId#840914, orderProposalId#840916L]
Arguments: hashpartitioning(shardId#840914, orderProposalId#840916L, 25), ENSURE_REQUIREMENTS, [plan_id=331908]
(38) ShuffleQueryStage
Output [2]: [shardId#840914, orderProposalId#840916L]
Arguments: 3
(39) AQEShuffleRead
Input [2]: [shardId#840914, orderProposalId#840916L]
Arguments: coalesced
(40) HashAggregate [codegen id : 5]
Input [2]: [shardId#840914, orderProposalId#840916L]
Keys [2]: [shardId#840914, orderProposalId#840916L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#840914, orderProposalId#840916L, 2026-08-10 11:30:32.394895 AS lastModified#841011]
(41) Union
(42) HashAggregate [codegen id : 6]
Input [3]: [shardId#840907, orderProposalId#840908L, lastModified#840912]
Keys [2]: [shardId#840907, orderProposalId#840908L]
Functions [1]: [partial_max(lastModified#840912)]
Aggregate Attributes [1]: [max#842381]
Results [3]: [shardId#840907, orderProposalId#840908L, max#842382]
(43) Exchange
Input [3]: [shardId#840907, orderProposalId#840908L, max#842382]
Arguments: hashpartitioning(shardId#840907, orderProposalId#840908L, 25), ENSURE_REQUIREMENTS, [plan_id=332074]
(44) ShuffleQueryStage
Output [3]: [shardId#840907, orderProposalId#840908L, max#842382]
Arguments: 5
(45) AQEShuffleRead
Input [3]: [shardId#840907, orderProposalId#840908L, max#842382]
Arguments: coalesced
(46) HashAggregate [codegen id : 7]
Input [3]: [shardId#840907, orderProposalId#840908L, max#842382]
Keys [2]: [shardId#840907, orderProposalId#840908L]
Functions [1]: [max(lastModified#840912)]
Aggregate Attributes [1]: [max(lastModified#840912)#840906]
Results [3]: [shardId#840907, orderProposalId#840908L, max(lastModified#840912)#840906 AS lastModified#840898]
(47) Filter [codegen id : 7]
Input [3]: [shardId#840907, orderProposalId#840908L, lastModified#840898]
Condition : isnotnull(lastModified#840898)
(48) BroadcastExchange
Input [3]: [shardId#840907, orderProposalId#840908L, lastModified#840898]
Arguments: HashedRelationBroadcastMode(List(input[0, string, true], input[1, bigint, true], input[2, timestamp, false]),false), [plan_id=332154]
(49) BroadcastQueryStage
Output [3]: [shardId#840907, orderProposalId#840908L, lastModified#840898]
Arguments: 6
(50) BroadcastHashJoin [codegen id : 8]
Left keys [3]: [shardId#840884, orderProposalId#840885L, lastModified#840889]
Right keys [3]: [shardId#840907, orderProposalId#840908L, lastModified#840898]
Join type: Inner
Join condition: None
(51) Project [codegen id : 8]
Output [7]: [shardId#840884, orderProposalId#840885L, items#840886, optimizationGroups#840887, isOptimal#840888, lastModified#840889, optimizationInsights#840890]
Input [10]: [shardId#840884, orderProposalId#840885L, items#840886, optimizationGroups#840887, isOptimal#840888, lastModified#840889, optimizationInsights#840890, shardId#840907, orderProposalId#840908L, lastModified#840898]
(52) DeserializeToObject
Input [7]: [shardId#840884, orderProposalId#840885L, items#840886, optimizationGroups#840887, isOptimal#840888, lastModified#840889, optimizationInsights#840890]
Arguments: createexternalrow(invoke(shardId#840884.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#840885L)), 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#840886, 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#840887, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#840888)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#840889)), 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#840890, 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#841028: org.apache.spark.sql.Row
(53) ResultQueryStage
Output [1]: [obj#841028]
Arguments: 7
(54) Filter
Input [3]: [shardId#835462, worklistShardItemId#835463L, orderProposalId#835464L]
Condition : (isnotnull(shardId#835462) AND isnotnull(orderProposalId#835464L))
(55) ObjectHashAggregate
Input [3]: [shardId#835462, worklistShardItemId#835463L, orderProposalId#835464L]
Keys [2]: [shardId#835462, orderProposalId#835464L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#835463L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#842379]
Results [3]: [shardId#835462, orderProposalId#835464L, buf#842380]
(56) Exchange
Input [3]: [shardId#835462, orderProposalId#835464L, buf#842380]
Arguments: hashpartitioning(shardId#835462, orderProposalId#835464L, 25), ENSURE_REQUIREMENTS, [plan_id=331701]
(57) ObjectHashAggregate
Input [3]: [shardId#835462, orderProposalId#835464L, buf#842380]
Keys [2]: [shardId#835462, orderProposalId#835464L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#835463L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#835463L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#840875]
Results [7]: [shardId#835462, orderProposalId#835464L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#835463L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#840875, lambdafunction(struct(worklistShardItemId, lambda x_2171#840896.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_2171#840896.quantityAfterProdPlantOptimization, qty, lambda x_2171#840896.optimalQuantity), lambda x_2171#840896, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#840897, [] AS optimizationGroups#840891, false AS isOptimal#840876, 2026-08-10 11:30:32.394895 AS lastModified#840895, [] AS optimizationInsights#840892]
(58) Union
(59) Exchange
Input [7]: [shardId#840884, orderProposalId#840885L, items#840886, optimizationGroups#840887, isOptimal#840888, lastModified#840889, optimizationInsights#840890]
Arguments: hashpartitioning(shardId#840884, orderProposalId#840885L, lastModified#840889, 25), ENSURE_REQUIREMENTS, [plan_id=331714]
(60) Sort
Input [7]: [shardId#840884, orderProposalId#840885L, items#840886, optimizationGroups#840887, isOptimal#840888, lastModified#840889, optimizationInsights#840890]
Arguments: [shardId#840884 ASC NULLS FIRST, orderProposalId#840885L ASC NULLS FIRST, lastModified#840889 ASC NULLS FIRST], false, 0
(61) Filter
Input [2]: [shardId#840914, orderProposalId#840916L]
Condition : (isnotnull(shardId#840914) AND isnotnull(orderProposalId#840916L))
(62) HashAggregate
Input [2]: [shardId#840914, orderProposalId#840916L]
Keys [2]: [shardId#840914, orderProposalId#840916L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#840914, orderProposalId#840916L]
(63) Exchange
Input [2]: [shardId#840914, orderProposalId#840916L]
Arguments: hashpartitioning(shardId#840914, orderProposalId#840916L, 25), ENSURE_REQUIREMENTS, [plan_id=331704]
(64) HashAggregate
Input [2]: [shardId#840914, orderProposalId#840916L]
Keys [2]: [shardId#840914, orderProposalId#840916L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#840914, orderProposalId#840916L, 2026-08-10 11:30:32.394895 AS lastModified#841011]
(65) Union
(66) HashAggregate
Input [3]: [shardId#840907, orderProposalId#840908L, lastModified#840912]
Keys [2]: [shardId#840907, orderProposalId#840908L]
Functions [1]: [partial_max(lastModified#840912)]
Aggregate Attributes [1]: [max#842381]
Results [3]: [shardId#840907, orderProposalId#840908L, max#842382]
(67) Exchange
Input [3]: [shardId#840907, orderProposalId#840908L, max#842382]
Arguments: hashpartitioning(shardId#840907, orderProposalId#840908L, 25), ENSURE_REQUIREMENTS, [plan_id=331709]
(68) HashAggregate
Input [3]: [shardId#840907, orderProposalId#840908L, max#842382]
Keys [2]: [shardId#840907, orderProposalId#840908L]
Functions [1]: [max(lastModified#840912)]
Aggregate Attributes [1]: [max(lastModified#840912)#840906]
Results [3]: [shardId#840907, orderProposalId#840908L, max(lastModified#840912)#840906 AS lastModified#840898]
(69) Filter
Input [3]: [shardId#840907, orderProposalId#840908L, lastModified#840898]
Condition : isnotnull(lastModified#840898)
(70) Exchange
Input [3]: [shardId#840907, orderProposalId#840908L, lastModified#840898]
Arguments: hashpartitioning(shardId#840907, orderProposalId#840908L, lastModified#840898, 25), ENSURE_REQUIREMENTS, [plan_id=331715]
(71) Sort
Input [3]: [shardId#840907, orderProposalId#840908L, lastModified#840898]
Arguments: [shardId#840907 ASC NULLS FIRST, orderProposalId#840908L ASC NULLS FIRST, lastModified#840898 ASC NULLS FIRST], false, 0
(72) SortMergeJoin
Left keys [3]: [shardId#840884, orderProposalId#840885L, lastModified#840889]
Right keys [3]: [shardId#840907, orderProposalId#840908L, lastModified#840898]
Join type: Inner
Join condition: None
(73) Project
Output [7]: [shardId#840884, orderProposalId#840885L, items#840886, optimizationGroups#840887, isOptimal#840888, lastModified#840889, optimizationInsights#840890]
Input [10]: [shardId#840884, orderProposalId#840885L, items#840886, optimizationGroups#840887, isOptimal#840888, lastModified#840889, optimizationInsights#840890, shardId#840907, orderProposalId#840908L, lastModified#840898]
(74) DeserializeToObject
Input [7]: [shardId#840884, orderProposalId#840885L, items#840886, optimizationGroups#840887, isOptimal#840888, lastModified#840889, optimizationInsights#840890]
Arguments: createexternalrow(invoke(shardId#840884.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#840885L)), 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#840886, 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#840887, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#840888)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#840889)), 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#840890, 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#841028: org.apache.spark.sql.Row
(75) AdaptiveSparkPlan
Output [1]: [obj#841028]
Arguments: isFinalPlan=true