== 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=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)
+- BroadcastQueryStage (49), Statistics(sizeInBytes=2.0 MiB, rowCount=5)
+- BroadcastExchange (48)
+- * Filter (47)
+- * HashAggregate (46)
+- AQEShuffleRead (45)
+- ShuffleQueryStage (44), Statistics(sizeInBytes=240.0 B, rowCount=5)
+- Exchange (43)
+- * HashAggregate (42)
+- Union (41)
:- * Project (31)
: +- * Filter (30)
: +- * Scan ExistingRDD (29)
+- * HashAggregate (40)
+- AQEShuffleRead (39)
+- ShuffleQueryStage (38), Statistics(sizeInBytes=320.0 B, rowCount=8)
+- Exchange (37)
+- * HashAggregate (36)
+- * Filter (35)
+- TableCacheQueryStage (34), Statistics(sizeInBytes=12.3 KiB, rowCount=8)
+- InMemoryTableScan (32)
+- InMemoryRelation (33)
+- 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 (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=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#951763, orderProposalId#951764L, items#951765, optimizationGroups#951766, isOptimal#951767, lastModified#951768, optimizationInsights#951769]
Arguments: [shardId#951763, orderProposalId#951764L, items#951765, optimizationGroups#951766, isOptimal#951767, lastModified#951768, optimizationInsights#951769], MapPartitionsRDD[44448] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(2) Filter [codegen id : 3]
Input [7]: [shardId#951763, orderProposalId#951764L, items#951765, optimizationGroups#951766, isOptimal#951767, lastModified#951768, optimizationInsights#951769]
Condition : ((isnotnull(shardId#951763) AND isnotnull(orderProposalId#951764L)) AND isnotnull(lastModified#951768))
(3) InMemoryTableScan
Output [3]: [shardId#946509, worklistShardItemId#946510L, orderProposalId#946511L]
Arguments: [shardId#946509, worklistShardItemId#946510L, orderProposalId#946511L], [isnotnull(shardId#946509), isnotnull(orderProposalId#946511L)]
(4) InMemoryRelation
Arguments: [shardId#946509, worklistShardItemId#946510L, orderProposalId#946511L, orderProposalItemId#946512, orderProposalItemGroupId#946513, originalReplenishmentRunId#946514L, orderProposalHorizonGroupingId#946515L, splitIndicator#946516L, previousOrderProposal#946517L, clusterId#946518L, sequenceId#946519L, sourceOfSupplyUuid#946520, supplierGroup#946521, supplier#946522, subrange#946523, product#946524, plant#946525, purchasingOrg#946526, purchasingGroup#946527, mrpController#946528, orderDateTime#946529, deliveryDateTime#946530, availabilityDateTime#946531, nextAvailabilityDateTime#946532, isFallbackOrderOnly#946533, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(5) Scan parquet
Output [45]: [orderProposalId#946554L, orderProposalItemId#946555, supplierGroup#946556, supplier#946557, plant#946558, deliveryDateTime#946559, subrange#946560, supplyingPlant#946561, productGroup#946562, product#946563, orderDateTime#946564, availabilityDateTime#946565, nextAvailabilityDateTime#946566, mrpController#946567, sourceOfSupplyUuid#946568, purchasingOrg#946569, purchasingGroup#946570, isFallbackOrderOnly#946571, orderProposalHorizonGroupingId#946572L, splitIndicator#946573L, previousOrderProposal#946574L, clusterId#946575L, worklistShardItemId#946577L, orderProposalItemGroupId#946578, externalProductId#946579, externalPlantId#946580, logisticUnits#946581, orderQuantityBaseUom#946582, orderQuantityBaseUomUuid#946583, minimumOrderQuantity#946584, constraintLabels#946585, constraintOperators#946586, constraintValues#946587, constraintRanks#946588, constraintIsActive#946589, netPriceAmount#946590, netPriceCurrencyCode#946591, netPriceQuantity#946592, netPriceQuantityUom#946593, netPriceQuantityUomUuid#946594, measurements#946595, originalReplenishmentRunId#946596L, optimizationGroups#946597, shardId#946598, sequenceId#946576]
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#946598), isnotnull(sequenceId#946576), (shardId#946598 = 0_1_10000002110), (sequenceId#946576 = 1)]
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#946554L, orderProposalItemId#946555, supplierGroup#946556, supplier#946557, plant#946558, deliveryDateTime#946559, subrange#946560, supplyingPlant#946561, productGroup#946562, product#946563, orderDateTime#946564, availabilityDateTime#946565, nextAvailabilityDateTime#946566, mrpController#946567, sourceOfSupplyUuid#946568, purchasingOrg#946569, purchasingGroup#946570, isFallbackOrderOnly#946571, orderProposalHorizonGroupingId#946572L, splitIndicator#946573L, previousOrderProposal#946574L, clusterId#946575L, worklistShardItemId#946577L, orderProposalItemGroupId#946578, externalProductId#946579, externalPlantId#946580, logisticUnits#946581, orderQuantityBaseUom#946582, orderQuantityBaseUomUuid#946583, minimumOrderQuantity#946584, constraintLabels#946585, constraintOperators#946586, constraintValues#946587, constraintRanks#946588, constraintIsActive#946589, netPriceAmount#946590, netPriceCurrencyCode#946591, netPriceQuantity#946592, netPriceQuantityUom#946593, netPriceQuantityUomUuid#946594, measurements#946595, originalReplenishmentRunId#946596L, optimizationGroups#946597, shardId#946598, sequenceId#946576]
(7) Filter [codegen id : 1]
Input [45]: [orderProposalId#946554L, orderProposalItemId#946555, supplierGroup#946556, supplier#946557, plant#946558, deliveryDateTime#946559, subrange#946560, supplyingPlant#946561, productGroup#946562, product#946563, orderDateTime#946564, availabilityDateTime#946565, nextAvailabilityDateTime#946566, mrpController#946567, sourceOfSupplyUuid#946568, purchasingOrg#946569, purchasingGroup#946570, isFallbackOrderOnly#946571, orderProposalHorizonGroupingId#946572L, splitIndicator#946573L, previousOrderProposal#946574L, clusterId#946575L, worklistShardItemId#946577L, orderProposalItemGroupId#946578, externalProductId#946579, externalPlantId#946580, logisticUnits#946581, orderQuantityBaseUom#946582, orderQuantityBaseUomUuid#946583, minimumOrderQuantity#946584, constraintLabels#946585, constraintOperators#946586, constraintValues#946587, constraintRanks#946588, constraintIsActive#946589, netPriceAmount#946590, netPriceCurrencyCode#946591, netPriceQuantity#946592, netPriceQuantityUom#946593, netPriceQuantityUomUuid#946594, measurements#946595, originalReplenishmentRunId#946596L, optimizationGroups#946597, shardId#946598, sequenceId#946576]
Condition : ((isnotnull(availabilityDateTime#946565) AND isnotnull(nextAvailabilityDateTime#946566)) AND (nextAvailabilityDateTime#946566 > availabilityDateTime#946565))
(8) Project [codegen id : 1]
Output [44]: [orderProposalId#946554L, orderProposalItemId#946555, supplierGroup#946556, supplier#946557, plant#946558, deliveryDateTime#946559, subrange#946560, supplyingPlant#946561, productGroup#946562, product#946563, orderDateTime#946564, availabilityDateTime#946565, nextAvailabilityDateTime#946566, mrpController#946567, sourceOfSupplyUuid#946568, purchasingOrg#946569, purchasingGroup#946570, isFallbackOrderOnly#946571, orderProposalHorizonGroupingId#946572L, splitIndicator#946573L, previousOrderProposal#946574L, clusterId#946575L, sequenceId#946576, worklistShardItemId#946577L, orderProposalItemGroupId#946578, externalProductId#946579, externalPlantId#946580, logisticUnits#946581, orderQuantityBaseUom#946582, orderQuantityBaseUomUuid#946583, minimumOrderQuantity#946584, constraintLabels#946585, constraintOperators#946586, constraintValues#946587, constraintRanks#946588, constraintIsActive#946589, netPriceAmount#946590, netPriceCurrencyCode#946591, netPriceQuantity#946592, netPriceQuantityUom#946593, netPriceQuantityUomUuid#946594, measurements#946595, originalReplenishmentRunId#946596L, optimizationGroups#946597]
Input [45]: [orderProposalId#946554L, orderProposalItemId#946555, supplierGroup#946556, supplier#946557, plant#946558, deliveryDateTime#946559, subrange#946560, supplyingPlant#946561, productGroup#946562, product#946563, orderDateTime#946564, availabilityDateTime#946565, nextAvailabilityDateTime#946566, mrpController#946567, sourceOfSupplyUuid#946568, purchasingOrg#946569, purchasingGroup#946570, isFallbackOrderOnly#946571, orderProposalHorizonGroupingId#946572L, splitIndicator#946573L, previousOrderProposal#946574L, clusterId#946575L, worklistShardItemId#946577L, orderProposalItemGroupId#946578, externalProductId#946579, externalPlantId#946580, logisticUnits#946581, orderQuantityBaseUom#946582, orderQuantityBaseUomUuid#946583, minimumOrderQuantity#946584, constraintLabels#946585, constraintOperators#946586, constraintValues#946587, constraintRanks#946588, constraintIsActive#946589, netPriceAmount#946590, netPriceCurrencyCode#946591, netPriceQuantity#946592, netPriceQuantityUom#946593, netPriceQuantityUomUuid#946594, measurements#946595, originalReplenishmentRunId#946596L, optimizationGroups#946597, shardId#946598, sequenceId#946576]
(9) Exchange
Input [44]: [orderProposalId#946554L, orderProposalItemId#946555, supplierGroup#946556, supplier#946557, plant#946558, deliveryDateTime#946559, subrange#946560, supplyingPlant#946561, productGroup#946562, product#946563, orderDateTime#946564, availabilityDateTime#946565, nextAvailabilityDateTime#946566, mrpController#946567, sourceOfSupplyUuid#946568, purchasingOrg#946569, purchasingGroup#946570, isFallbackOrderOnly#946571, orderProposalHorizonGroupingId#946572L, splitIndicator#946573L, previousOrderProposal#946574L, clusterId#946575L, sequenceId#946576, worklistShardItemId#946577L, orderProposalItemGroupId#946578, externalProductId#946579, externalPlantId#946580, logisticUnits#946581, orderQuantityBaseUom#946582, orderQuantityBaseUomUuid#946583, minimumOrderQuantity#946584, constraintLabels#946585, constraintOperators#946586, constraintValues#946587, constraintRanks#946588, constraintIsActive#946589, netPriceAmount#946590, netPriceCurrencyCode#946591, netPriceQuantity#946592, netPriceQuantityUom#946593, netPriceQuantityUomUuid#946594, measurements#946595, originalReplenishmentRunId#946596L, optimizationGroups#946597]
Arguments: hashpartitioning(worklistShardItemId#946577L, 25), REPARTITION_BY_NUM, [plan_id=370746]
(10) ShuffleQueryStage
Output [44]: [orderProposalId#946554L, orderProposalItemId#946555, supplierGroup#946556, supplier#946557, plant#946558, deliveryDateTime#946559, subrange#946560, supplyingPlant#946561, productGroup#946562, product#946563, orderDateTime#946564, availabilityDateTime#946565, nextAvailabilityDateTime#946566, mrpController#946567, sourceOfSupplyUuid#946568, purchasingOrg#946569, purchasingGroup#946570, isFallbackOrderOnly#946571, orderProposalHorizonGroupingId#946572L, splitIndicator#946573L, previousOrderProposal#946574L, clusterId#946575L, sequenceId#946576, worklistShardItemId#946577L, orderProposalItemGroupId#946578, externalProductId#946579, externalPlantId#946580, logisticUnits#946581, orderQuantityBaseUom#946582, orderQuantityBaseUomUuid#946583, minimumOrderQuantity#946584, constraintLabels#946585, constraintOperators#946586, constraintValues#946587, constraintRanks#946588, constraintIsActive#946589, netPriceAmount#946590, netPriceCurrencyCode#946591, netPriceQuantity#946592, netPriceQuantityUom#946593, netPriceQuantityUomUuid#946594, measurements#946595, originalReplenishmentRunId#946596L, optimizationGroups#946597]
Arguments: 0
(11) Project [codegen id : 2]
Output [45]: [0_1_10000002110 AS shardId#946509, worklistShardItemId#946577L, orderProposalId#946554L, orderProposalItemId#946555, orderProposalItemGroupId#946578, originalReplenishmentRunId#946596L, orderProposalHorizonGroupingId#946572L, splitIndicator#946573L, previousOrderProposal#946574L, clusterId#946575L, cast(sequenceId#946576 as bigint) AS sequenceId#946519L, sourceOfSupplyUuid#946568, supplierGroup#946556, supplier#946557, subrange#946560, product#946563, plant#946558, purchasingOrg#946569, purchasingGroup#946570, mrpController#946567, orderDateTime#946564, deliveryDateTime#946559, availabilityDateTime#946565, nextAvailabilityDateTime#946566, isFallbackOrderOnly#946571, orderQuantityBaseUom#946582, orderQuantityBaseUomUuid#946583, netPriceQuantity#946592, netPriceQuantityUom#946593, netPriceQuantityUomUuid#946594, netPriceAmount#946590, netPriceCurrencyCode#946591, measurements#946595, minimumOrderQuantity#946584, constraintLabels#946585, constraintOperators#946586, constraintRanks#946588, constraintValues#946587, constraintIsActive#946589, logisticUnits#946581, optimizationGroups#946597, externalProductId#946579, externalPlantId#946580, supplyingPlant#946561, productGroup#946562]
Input [44]: [orderProposalId#946554L, orderProposalItemId#946555, supplierGroup#946556, supplier#946557, plant#946558, deliveryDateTime#946559, subrange#946560, supplyingPlant#946561, productGroup#946562, product#946563, orderDateTime#946564, availabilityDateTime#946565, nextAvailabilityDateTime#946566, mrpController#946567, sourceOfSupplyUuid#946568, purchasingOrg#946569, purchasingGroup#946570, isFallbackOrderOnly#946571, orderProposalHorizonGroupingId#946572L, splitIndicator#946573L, previousOrderProposal#946574L, clusterId#946575L, sequenceId#946576, worklistShardItemId#946577L, orderProposalItemGroupId#946578, externalProductId#946579, externalPlantId#946580, logisticUnits#946581, orderQuantityBaseUom#946582, orderQuantityBaseUomUuid#946583, minimumOrderQuantity#946584, constraintLabels#946585, constraintOperators#946586, constraintValues#946587, constraintRanks#946588, constraintIsActive#946589, netPriceAmount#946590, netPriceCurrencyCode#946591, netPriceQuantity#946592, netPriceQuantityUom#946593, netPriceQuantityUomUuid#946594, measurements#946595, originalReplenishmentRunId#946596L, optimizationGroups#946597]
(12) ResultQueryStage
Output [45]: [shardId#946509, worklistShardItemId#946577L, orderProposalId#946554L, orderProposalItemId#946555, orderProposalItemGroupId#946578, originalReplenishmentRunId#946596L, orderProposalHorizonGroupingId#946572L, splitIndicator#946573L, previousOrderProposal#946574L, clusterId#946575L, sequenceId#946519L, sourceOfSupplyUuid#946568, supplierGroup#946556, supplier#946557, subrange#946560, product#946563, plant#946558, purchasingOrg#946569, purchasingGroup#946570, mrpController#946567, orderDateTime#946564, deliveryDateTime#946559, availabilityDateTime#946565, nextAvailabilityDateTime#946566, isFallbackOrderOnly#946571, orderQuantityBaseUom#946582, orderQuantityBaseUomUuid#946583, netPriceQuantity#946592, netPriceQuantityUom#946593, netPriceQuantityUomUuid#946594, netPriceAmount#946590, netPriceCurrencyCode#946591, measurements#946595, minimumOrderQuantity#946584, constraintLabels#946585, constraintOperators#946586, constraintRanks#946588, constraintValues#946587, constraintIsActive#946589, logisticUnits#946581, optimizationGroups#946597, externalProductId#946579, externalPlantId#946580, supplyingPlant#946561, productGroup#946562]
Arguments: 1
(13) Filter
Input [45]: [orderProposalId#946554L, orderProposalItemId#946555, supplierGroup#946556, supplier#946557, plant#946558, deliveryDateTime#946559, subrange#946560, supplyingPlant#946561, productGroup#946562, product#946563, orderDateTime#946564, availabilityDateTime#946565, nextAvailabilityDateTime#946566, mrpController#946567, sourceOfSupplyUuid#946568, purchasingOrg#946569, purchasingGroup#946570, isFallbackOrderOnly#946571, orderProposalHorizonGroupingId#946572L, splitIndicator#946573L, previousOrderProposal#946574L, clusterId#946575L, worklistShardItemId#946577L, orderProposalItemGroupId#946578, externalProductId#946579, externalPlantId#946580, logisticUnits#946581, orderQuantityBaseUom#946582, orderQuantityBaseUomUuid#946583, minimumOrderQuantity#946584, constraintLabels#946585, constraintOperators#946586, constraintValues#946587, constraintRanks#946588, constraintIsActive#946589, netPriceAmount#946590, netPriceCurrencyCode#946591, netPriceQuantity#946592, netPriceQuantityUom#946593, netPriceQuantityUomUuid#946594, measurements#946595, originalReplenishmentRunId#946596L, optimizationGroups#946597, shardId#946598, sequenceId#946576]
Condition : ((isnotnull(availabilityDateTime#946565) AND isnotnull(nextAvailabilityDateTime#946566)) AND (nextAvailabilityDateTime#946566 > availabilityDateTime#946565))
(14) Project
Output [44]: [orderProposalId#946554L, orderProposalItemId#946555, supplierGroup#946556, supplier#946557, plant#946558, deliveryDateTime#946559, subrange#946560, supplyingPlant#946561, productGroup#946562, product#946563, orderDateTime#946564, availabilityDateTime#946565, nextAvailabilityDateTime#946566, mrpController#946567, sourceOfSupplyUuid#946568, purchasingOrg#946569, purchasingGroup#946570, isFallbackOrderOnly#946571, orderProposalHorizonGroupingId#946572L, splitIndicator#946573L, previousOrderProposal#946574L, clusterId#946575L, sequenceId#946576, worklistShardItemId#946577L, orderProposalItemGroupId#946578, externalProductId#946579, externalPlantId#946580, logisticUnits#946581, orderQuantityBaseUom#946582, orderQuantityBaseUomUuid#946583, minimumOrderQuantity#946584, constraintLabels#946585, constraintOperators#946586, constraintValues#946587, constraintRanks#946588, constraintIsActive#946589, netPriceAmount#946590, netPriceCurrencyCode#946591, netPriceQuantity#946592, netPriceQuantityUom#946593, netPriceQuantityUomUuid#946594, measurements#946595, originalReplenishmentRunId#946596L, optimizationGroups#946597]
Input [45]: [orderProposalId#946554L, orderProposalItemId#946555, supplierGroup#946556, supplier#946557, plant#946558, deliveryDateTime#946559, subrange#946560, supplyingPlant#946561, productGroup#946562, product#946563, orderDateTime#946564, availabilityDateTime#946565, nextAvailabilityDateTime#946566, mrpController#946567, sourceOfSupplyUuid#946568, purchasingOrg#946569, purchasingGroup#946570, isFallbackOrderOnly#946571, orderProposalHorizonGroupingId#946572L, splitIndicator#946573L, previousOrderProposal#946574L, clusterId#946575L, worklistShardItemId#946577L, orderProposalItemGroupId#946578, externalProductId#946579, externalPlantId#946580, logisticUnits#946581, orderQuantityBaseUom#946582, orderQuantityBaseUomUuid#946583, minimumOrderQuantity#946584, constraintLabels#946585, constraintOperators#946586, constraintValues#946587, constraintRanks#946588, constraintIsActive#946589, netPriceAmount#946590, netPriceCurrencyCode#946591, netPriceQuantity#946592, netPriceQuantityUom#946593, netPriceQuantityUomUuid#946594, measurements#946595, originalReplenishmentRunId#946596L, optimizationGroups#946597, shardId#946598, sequenceId#946576]
(15) Exchange
Input [44]: [orderProposalId#946554L, orderProposalItemId#946555, supplierGroup#946556, supplier#946557, plant#946558, deliveryDateTime#946559, subrange#946560, supplyingPlant#946561, productGroup#946562, product#946563, orderDateTime#946564, availabilityDateTime#946565, nextAvailabilityDateTime#946566, mrpController#946567, sourceOfSupplyUuid#946568, purchasingOrg#946569, purchasingGroup#946570, isFallbackOrderOnly#946571, orderProposalHorizonGroupingId#946572L, splitIndicator#946573L, previousOrderProposal#946574L, clusterId#946575L, sequenceId#946576, worklistShardItemId#946577L, orderProposalItemGroupId#946578, externalProductId#946579, externalPlantId#946580, logisticUnits#946581, orderQuantityBaseUom#946582, orderQuantityBaseUomUuid#946583, minimumOrderQuantity#946584, constraintLabels#946585, constraintOperators#946586, constraintValues#946587, constraintRanks#946588, constraintIsActive#946589, netPriceAmount#946590, netPriceCurrencyCode#946591, netPriceQuantity#946592, netPriceQuantityUom#946593, netPriceQuantityUomUuid#946594, measurements#946595, originalReplenishmentRunId#946596L, optimizationGroups#946597]
Arguments: hashpartitioning(worklistShardItemId#946577L, 25), REPARTITION_BY_NUM, [plan_id=370718]
(16) Project
Output [45]: [0_1_10000002110 AS shardId#946509, worklistShardItemId#946577L, orderProposalId#946554L, orderProposalItemId#946555, orderProposalItemGroupId#946578, originalReplenishmentRunId#946596L, orderProposalHorizonGroupingId#946572L, splitIndicator#946573L, previousOrderProposal#946574L, clusterId#946575L, cast(sequenceId#946576 as bigint) AS sequenceId#946519L, sourceOfSupplyUuid#946568, supplierGroup#946556, supplier#946557, subrange#946560, product#946563, plant#946558, purchasingOrg#946569, purchasingGroup#946570, mrpController#946567, orderDateTime#946564, deliveryDateTime#946559, availabilityDateTime#946565, nextAvailabilityDateTime#946566, isFallbackOrderOnly#946571, orderQuantityBaseUom#946582, orderQuantityBaseUomUuid#946583, netPriceQuantity#946592, netPriceQuantityUom#946593, netPriceQuantityUomUuid#946594, netPriceAmount#946590, netPriceCurrencyCode#946591, measurements#946595, minimumOrderQuantity#946584, constraintLabels#946585, constraintOperators#946586, constraintRanks#946588, constraintValues#946587, constraintIsActive#946589, logisticUnits#946581, optimizationGroups#946597, externalProductId#946579, externalPlantId#946580, supplyingPlant#946561, productGroup#946562]
Input [44]: [orderProposalId#946554L, orderProposalItemId#946555, supplierGroup#946556, supplier#946557, plant#946558, deliveryDateTime#946559, subrange#946560, supplyingPlant#946561, productGroup#946562, product#946563, orderDateTime#946564, availabilityDateTime#946565, nextAvailabilityDateTime#946566, mrpController#946567, sourceOfSupplyUuid#946568, purchasingOrg#946569, purchasingGroup#946570, isFallbackOrderOnly#946571, orderProposalHorizonGroupingId#946572L, splitIndicator#946573L, previousOrderProposal#946574L, clusterId#946575L, sequenceId#946576, worklistShardItemId#946577L, orderProposalItemGroupId#946578, externalProductId#946579, externalPlantId#946580, logisticUnits#946581, orderQuantityBaseUom#946582, orderQuantityBaseUomUuid#946583, minimumOrderQuantity#946584, constraintLabels#946585, constraintOperators#946586, constraintValues#946587, constraintRanks#946588, constraintIsActive#946589, netPriceAmount#946590, netPriceCurrencyCode#946591, netPriceQuantity#946592, netPriceQuantityUom#946593, netPriceQuantityUomUuid#946594, measurements#946595, originalReplenishmentRunId#946596L, optimizationGroups#946597]
(17) AdaptiveSparkPlan
Output [45]: [shardId#946509, worklistShardItemId#946577L, orderProposalId#946554L, orderProposalItemId#946555, orderProposalItemGroupId#946578, originalReplenishmentRunId#946596L, orderProposalHorizonGroupingId#946572L, splitIndicator#946573L, previousOrderProposal#946574L, clusterId#946575L, sequenceId#946519L, sourceOfSupplyUuid#946568, supplierGroup#946556, supplier#946557, subrange#946560, product#946563, plant#946558, purchasingOrg#946569, purchasingGroup#946570, mrpController#946567, orderDateTime#946564, deliveryDateTime#946559, availabilityDateTime#946565, nextAvailabilityDateTime#946566, isFallbackOrderOnly#946571, orderQuantityBaseUom#946582, orderQuantityBaseUomUuid#946583, netPriceQuantity#946592, netPriceQuantityUom#946593, netPriceQuantityUomUuid#946594, netPriceAmount#946590, netPriceCurrencyCode#946591, measurements#946595, minimumOrderQuantity#946584, constraintLabels#946585, constraintOperators#946586, constraintRanks#946588, constraintValues#946587, constraintIsActive#946589, logisticUnits#946581, optimizationGroups#946597, externalProductId#946579, externalPlantId#946580, supplyingPlant#946561, productGroup#946562]
Arguments: isFinalPlan=true
(18) TableCacheQueryStage
Output [3]: [shardId#946509, worklistShardItemId#946510L, orderProposalId#946511L]
Arguments: 0
(19) Filter [codegen id : 1]
Input [3]: [shardId#946509, worklistShardItemId#946510L, orderProposalId#946511L]
Condition : (isnotnull(shardId#946509) AND isnotnull(orderProposalId#946511L))
(20) ObjectHashAggregate
Input [3]: [shardId#946509, worklistShardItemId#946510L, orderProposalId#946511L]
Keys [2]: [shardId#946509, orderProposalId#946511L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#946510L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#953258]
Results [3]: [shardId#946509, orderProposalId#946511L, buf#953259]
(21) Exchange
Input [3]: [shardId#946509, orderProposalId#946511L, buf#953259]
Arguments: hashpartitioning(shardId#946509, orderProposalId#946511L, 25), ENSURE_REQUIREMENTS, [plan_id=371112]
(22) ShuffleQueryStage [codegen id : 3]
Output [3]: [shardId#946509, orderProposalId#946511L, buf#953259]
Arguments: 2
(23) AQEShuffleRead [codegen id : 3]
Input [3]: [shardId#946509, orderProposalId#946511L, buf#953259]
Arguments: coalesced
(24) ObjectHashAggregate [codegen id : 3]
Input [3]: [shardId#946509, orderProposalId#946511L, buf#953259]
Keys [2]: [shardId#946509, orderProposalId#946511L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#946510L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#946510L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#951754]
Results [7]: [shardId#946509, orderProposalId#946511L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#946510L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#951754, lambdafunction(struct(worklistShardItemId, lambda x_2465#951775.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_2465#951775.quantityAfterProdPlantOptimization, qty, lambda x_2465#951775.optimalQuantity), lambda x_2465#951775, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#951776, [] AS optimizationGroups#951770, false AS isOptimal#951755, 2026-08-10 12:31:06.564893 AS lastModified#951774, [] AS optimizationInsights#951771]
(25) Union
(26) Exchange
Input [7]: [shardId#951763, orderProposalId#951764L, items#951765, optimizationGroups#951766, isOptimal#951767, lastModified#951768, optimizationInsights#951769]
Arguments: hashpartitioning(shardId#951763, orderProposalId#951764L, lastModified#951768, 25), ENSURE_REQUIREMENTS, [plan_id=371232]
(27) ShuffleQueryStage
Output [7]: [shardId#951763, orderProposalId#951764L, items#951765, optimizationGroups#951766, isOptimal#951767, lastModified#951768, optimizationInsights#951769]
Arguments: 4
(28) AQEShuffleRead
Input [7]: [shardId#951763, orderProposalId#951764L, items#951765, optimizationGroups#951766, isOptimal#951767, lastModified#951768, optimizationInsights#951769]
Arguments: local
(29) Scan ExistingRDD [codegen id : 4]
Output [7]: [shardId#951786, orderProposalId#951787L, items#951788, optimizationGroups#951789, isOptimal#951790, lastModified#951791, optimizationInsights#951792]
Arguments: [shardId#951786, orderProposalId#951787L, items#951788, optimizationGroups#951789, isOptimal#951790, lastModified#951791, optimizationInsights#951792], MapPartitionsRDD[44448] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(30) Filter [codegen id : 4]
Input [7]: [shardId#951786, orderProposalId#951787L, items#951788, optimizationGroups#951789, isOptimal#951790, lastModified#951791, optimizationInsights#951792]
Condition : (isnotnull(shardId#951786) AND isnotnull(orderProposalId#951787L))
(31) Project [codegen id : 4]
Output [3]: [shardId#951786, orderProposalId#951787L, lastModified#951791]
Input [7]: [shardId#951786, orderProposalId#951787L, items#951788, optimizationGroups#951789, isOptimal#951790, lastModified#951791, optimizationInsights#951792]
(32) InMemoryTableScan
Output [2]: [shardId#951793, orderProposalId#951795L]
Arguments: [shardId#951793, orderProposalId#951795L], [isnotnull(shardId#951793), isnotnull(orderProposalId#951795L)]
(33) InMemoryRelation
Arguments: [shardId#951793, worklistShardItemId#951794L, orderProposalId#951795L, orderProposalItemId#951796, orderProposalItemGroupId#951797, originalReplenishmentRunId#951798L, orderProposalHorizonGroupingId#951799L, splitIndicator#951800L, previousOrderProposal#951801L, clusterId#951802L, sequenceId#951803L, sourceOfSupplyUuid#951804, supplierGroup#951805, supplier#951806, subrange#951807, product#951808, plant#951809, purchasingOrg#951810, purchasingGroup#951811, mrpController#951812, orderDateTime#951813, deliveryDateTime#951814, availabilityDateTime#951815, nextAvailabilityDateTime#951816, isFallbackOrderOnly#951817, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(34) TableCacheQueryStage
Output [2]: [shardId#951793, orderProposalId#951795L]
Arguments: 1
(35) Filter [codegen id : 2]
Input [2]: [shardId#951793, orderProposalId#951795L]
Condition : (isnotnull(shardId#951793) AND isnotnull(orderProposalId#951795L))
(36) HashAggregate [codegen id : 2]
Input [2]: [shardId#951793, orderProposalId#951795L]
Keys [2]: [shardId#951793, orderProposalId#951795L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#951793, orderProposalId#951795L]
(37) Exchange
Input [2]: [shardId#951793, orderProposalId#951795L]
Arguments: hashpartitioning(shardId#951793, orderProposalId#951795L, 25), ENSURE_REQUIREMENTS, [plan_id=371148]
(38) ShuffleQueryStage
Output [2]: [shardId#951793, orderProposalId#951795L]
Arguments: 3
(39) AQEShuffleRead
Input [2]: [shardId#951793, orderProposalId#951795L]
Arguments: coalesced
(40) HashAggregate [codegen id : 5]
Input [2]: [shardId#951793, orderProposalId#951795L]
Keys [2]: [shardId#951793, orderProposalId#951795L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#951793, orderProposalId#951795L, 2026-08-10 12:31:06.564893 AS lastModified#951890]
(41) Union
(42) HashAggregate [codegen id : 6]
Input [3]: [shardId#951786, orderProposalId#951787L, lastModified#951791]
Keys [2]: [shardId#951786, orderProposalId#951787L]
Functions [1]: [partial_max(lastModified#951791)]
Aggregate Attributes [1]: [max#953260]
Results [3]: [shardId#951786, orderProposalId#951787L, max#953261]
(43) Exchange
Input [3]: [shardId#951786, orderProposalId#951787L, max#953261]
Arguments: hashpartitioning(shardId#951786, orderProposalId#951787L, 25), ENSURE_REQUIREMENTS, [plan_id=371314]
(44) ShuffleQueryStage
Output [3]: [shardId#951786, orderProposalId#951787L, max#953261]
Arguments: 5
(45) AQEShuffleRead
Input [3]: [shardId#951786, orderProposalId#951787L, max#953261]
Arguments: coalesced
(46) HashAggregate [codegen id : 7]
Input [3]: [shardId#951786, orderProposalId#951787L, max#953261]
Keys [2]: [shardId#951786, orderProposalId#951787L]
Functions [1]: [max(lastModified#951791)]
Aggregate Attributes [1]: [max(lastModified#951791)#951785]
Results [3]: [shardId#951786, orderProposalId#951787L, max(lastModified#951791)#951785 AS lastModified#951777]
(47) Filter [codegen id : 7]
Input [3]: [shardId#951786, orderProposalId#951787L, lastModified#951777]
Condition : isnotnull(lastModified#951777)
(48) BroadcastExchange
Input [3]: [shardId#951786, orderProposalId#951787L, lastModified#951777]
Arguments: HashedRelationBroadcastMode(List(input[0, string, true], input[1, bigint, true], input[2, timestamp, false]),false), [plan_id=371394]
(49) BroadcastQueryStage
Output [3]: [shardId#951786, orderProposalId#951787L, lastModified#951777]
Arguments: 6
(50) BroadcastHashJoin [codegen id : 8]
Left keys [3]: [shardId#951763, orderProposalId#951764L, lastModified#951768]
Right keys [3]: [shardId#951786, orderProposalId#951787L, lastModified#951777]
Join type: Inner
Join condition: None
(51) Project [codegen id : 8]
Output [7]: [shardId#951763, orderProposalId#951764L, items#951765, optimizationGroups#951766, isOptimal#951767, lastModified#951768, optimizationInsights#951769]
Input [10]: [shardId#951763, orderProposalId#951764L, items#951765, optimizationGroups#951766, isOptimal#951767, lastModified#951768, optimizationInsights#951769, shardId#951786, orderProposalId#951787L, lastModified#951777]
(52) DeserializeToObject
Input [7]: [shardId#951763, orderProposalId#951764L, items#951765, optimizationGroups#951766, isOptimal#951767, lastModified#951768, optimizationInsights#951769]
Arguments: createexternalrow(invoke(shardId#951763.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#951764L)), 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#951765, 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#951766, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#951767)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#951768)), 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#951769, 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#951907: org.apache.spark.sql.Row
(53) ResultQueryStage
Output [1]: [obj#951907]
Arguments: 7
(54) Filter
Input [3]: [shardId#946509, worklistShardItemId#946510L, orderProposalId#946511L]
Condition : (isnotnull(shardId#946509) AND isnotnull(orderProposalId#946511L))
(55) ObjectHashAggregate
Input [3]: [shardId#946509, worklistShardItemId#946510L, orderProposalId#946511L]
Keys [2]: [shardId#946509, orderProposalId#946511L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#946510L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#953258]
Results [3]: [shardId#946509, orderProposalId#946511L, buf#953259]
(56) Exchange
Input [3]: [shardId#946509, orderProposalId#946511L, buf#953259]
Arguments: hashpartitioning(shardId#946509, orderProposalId#946511L, 25), ENSURE_REQUIREMENTS, [plan_id=370941]
(57) ObjectHashAggregate
Input [3]: [shardId#946509, orderProposalId#946511L, buf#953259]
Keys [2]: [shardId#946509, orderProposalId#946511L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#946510L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#946510L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#951754]
Results [7]: [shardId#946509, orderProposalId#946511L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#946510L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#951754, lambdafunction(struct(worklistShardItemId, lambda x_2465#951775.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_2465#951775.quantityAfterProdPlantOptimization, qty, lambda x_2465#951775.optimalQuantity), lambda x_2465#951775, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#951776, [] AS optimizationGroups#951770, false AS isOptimal#951755, 2026-08-10 12:31:06.564893 AS lastModified#951774, [] AS optimizationInsights#951771]
(58) Union
(59) Exchange
Input [7]: [shardId#951763, orderProposalId#951764L, items#951765, optimizationGroups#951766, isOptimal#951767, lastModified#951768, optimizationInsights#951769]
Arguments: hashpartitioning(shardId#951763, orderProposalId#951764L, lastModified#951768, 25), ENSURE_REQUIREMENTS, [plan_id=370954]
(60) Sort
Input [7]: [shardId#951763, orderProposalId#951764L, items#951765, optimizationGroups#951766, isOptimal#951767, lastModified#951768, optimizationInsights#951769]
Arguments: [shardId#951763 ASC NULLS FIRST, orderProposalId#951764L ASC NULLS FIRST, lastModified#951768 ASC NULLS FIRST], false, 0
(61) Filter
Input [2]: [shardId#951793, orderProposalId#951795L]
Condition : (isnotnull(shardId#951793) AND isnotnull(orderProposalId#951795L))
(62) HashAggregate
Input [2]: [shardId#951793, orderProposalId#951795L]
Keys [2]: [shardId#951793, orderProposalId#951795L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#951793, orderProposalId#951795L]
(63) Exchange
Input [2]: [shardId#951793, orderProposalId#951795L]
Arguments: hashpartitioning(shardId#951793, orderProposalId#951795L, 25), ENSURE_REQUIREMENTS, [plan_id=370944]
(64) HashAggregate
Input [2]: [shardId#951793, orderProposalId#951795L]
Keys [2]: [shardId#951793, orderProposalId#951795L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#951793, orderProposalId#951795L, 2026-08-10 12:31:06.564893 AS lastModified#951890]
(65) Union
(66) HashAggregate
Input [3]: [shardId#951786, orderProposalId#951787L, lastModified#951791]
Keys [2]: [shardId#951786, orderProposalId#951787L]
Functions [1]: [partial_max(lastModified#951791)]
Aggregate Attributes [1]: [max#953260]
Results [3]: [shardId#951786, orderProposalId#951787L, max#953261]
(67) Exchange
Input [3]: [shardId#951786, orderProposalId#951787L, max#953261]
Arguments: hashpartitioning(shardId#951786, orderProposalId#951787L, 25), ENSURE_REQUIREMENTS, [plan_id=370949]
(68) HashAggregate
Input [3]: [shardId#951786, orderProposalId#951787L, max#953261]
Keys [2]: [shardId#951786, orderProposalId#951787L]
Functions [1]: [max(lastModified#951791)]
Aggregate Attributes [1]: [max(lastModified#951791)#951785]
Results [3]: [shardId#951786, orderProposalId#951787L, max(lastModified#951791)#951785 AS lastModified#951777]
(69) Filter
Input [3]: [shardId#951786, orderProposalId#951787L, lastModified#951777]
Condition : isnotnull(lastModified#951777)
(70) Exchange
Input [3]: [shardId#951786, orderProposalId#951787L, lastModified#951777]
Arguments: hashpartitioning(shardId#951786, orderProposalId#951787L, lastModified#951777, 25), ENSURE_REQUIREMENTS, [plan_id=370955]
(71) Sort
Input [3]: [shardId#951786, orderProposalId#951787L, lastModified#951777]
Arguments: [shardId#951786 ASC NULLS FIRST, orderProposalId#951787L ASC NULLS FIRST, lastModified#951777 ASC NULLS FIRST], false, 0
(72) SortMergeJoin
Left keys [3]: [shardId#951763, orderProposalId#951764L, lastModified#951768]
Right keys [3]: [shardId#951786, orderProposalId#951787L, lastModified#951777]
Join type: Inner
Join condition: None
(73) Project
Output [7]: [shardId#951763, orderProposalId#951764L, items#951765, optimizationGroups#951766, isOptimal#951767, lastModified#951768, optimizationInsights#951769]
Input [10]: [shardId#951763, orderProposalId#951764L, items#951765, optimizationGroups#951766, isOptimal#951767, lastModified#951768, optimizationInsights#951769, shardId#951786, orderProposalId#951787L, lastModified#951777]
(74) DeserializeToObject
Input [7]: [shardId#951763, orderProposalId#951764L, items#951765, optimizationGroups#951766, isOptimal#951767, lastModified#951768, optimizationInsights#951769]
Arguments: createexternalrow(invoke(shardId#951763.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#951764L)), 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#951765, 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#951766, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#951767)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#951768)), 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#951769, 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#951907: org.apache.spark.sql.Row
(75) AdaptiveSparkPlan
Output [1]: [obj#951907]
Arguments: isFinalPlan=true