== 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=1384.0 B, rowCount=2)
: +- Exchange (26)
: +- Union (25)
: :- * Filter (2)
: : +- * Scan ExistingRDD (1)
: +- ObjectHashAggregate (24)
: +- AQEShuffleRead (23)
: +- ShuffleQueryStage (22), Statistics(sizeInBytes=2.9 KiB, rowCount=22)
: +- Exchange (21)
: +- ObjectHashAggregate (20)
: +- * Filter (19)
: +- TableCacheQueryStage (18), Statistics(sizeInBytes=36.7 KiB, rowCount=29)
: +- InMemoryTableScan (3)
: +- InMemoryRelation (4)
: +- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=40.9 KiB, rowCount=29)
+- 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=2)
+- BroadcastExchange (48)
+- * Filter (47)
+- * HashAggregate (46)
+- AQEShuffleRead (45)
+- ShuffleQueryStage (44), Statistics(sizeInBytes=96.0 B, rowCount=2)
+- Exchange (43)
+- * HashAggregate (42)
+- Union (41)
:- * Project (31)
: +- * Filter (30)
: +- * Scan ExistingRDD (29)
+- * HashAggregate (40)
+- AQEShuffleRead (39)
+- ShuffleQueryStage (38), Statistics(sizeInBytes=880.0 B, rowCount=22)
+- Exchange (37)
+- * HashAggregate (36)
+- * Filter (35)
+- TableCacheQueryStage (34), Statistics(sizeInBytes=36.7 KiB, rowCount=29)
+- InMemoryTableScan (32)
+- InMemoryRelation (33)
+- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=40.9 KiB, rowCount=29)
+- 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=40.9 KiB, rowCount=29)
+- 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=40.9 KiB, rowCount=29)
+- Exchange (9)
+- * Project (8)
+- * Filter (7)
+- * ColumnarToRow (6)
+- Scan parquet (5)
+- == Initial Plan ==
Project (16)
+- Exchange (15)
+- Project (14)
+- Filter (13)
+- Scan parquet (5)
(1) Scan ExistingRDD [codegen id : 6]
Output [7]: [shardId#5463722, orderProposalId#5463723L, items#5463724, optimizationGroups#5463725, isOptimal#5463726, lastModified#5463727, optimizationInsights#5463728]
Arguments: [shardId#5463722, orderProposalId#5463723L, items#5463724, optimizationGroups#5463725, isOptimal#5463726, lastModified#5463727, optimizationInsights#5463728], MapPartitionsRDD[384005] at createDataFrame at OptimalQuantitiesCacheImpl.java:214, ExistingRDD, UnknownPartitioning(0)
(2) Filter [codegen id : 6]
Input [7]: [shardId#5463722, orderProposalId#5463723L, items#5463724, optimizationGroups#5463725, isOptimal#5463726, lastModified#5463727, optimizationInsights#5463728]
Condition : ((isnotnull(shardId#5463722) AND isnotnull(orderProposalId#5463723L)) AND isnotnull(lastModified#5463727))
(3) InMemoryTableScan
Output [3]: [shardId#5455555, worklistShardItemId#5455556L, orderProposalId#5455557L]
Arguments: [shardId#5455555, worklistShardItemId#5455556L, orderProposalId#5455557L], [isnotnull(shardId#5455555), isnotnull(orderProposalId#5455557L)]
(4) InMemoryRelation
Arguments: [shardId#5455555, worklistShardItemId#5455556L, orderProposalId#5455557L, orderProposalItemId#5455558, orderProposalItemGroupId#5455559, originalReplenishmentRunId#5455560L, orderProposalHorizonGroupingId#5455561L, splitIndicator#5455562L, previousOrderProposal#5455563L, clusterId#5455564L, sequenceId#5455565L, sourceOfSupplyUuid#5455566, supplierGroup#5455567, supplier#5455568, subrange#5455569, product#5455570, plant#5455571, purchasingOrg#5455572, purchasingGroup#5455573, mrpController#5455574, orderDateTime#5455575, deliveryDateTime#5455576, availabilityDateTime#5455577, nextAvailabilityDateTime#5455578, isFallbackOrderOnly#5455579, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(5) Scan parquet
Output [45]: [orderProposalId#5455600L, orderProposalItemId#5455601, supplierGroup#5455602, supplier#5455603, plant#5455604, deliveryDateTime#5455605, subrange#5455606, supplyingPlant#5455607, productGroup#5455608, product#5455609, orderDateTime#5455610, availabilityDateTime#5455611, nextAvailabilityDateTime#5455612, mrpController#5455613, sourceOfSupplyUuid#5455614, purchasingOrg#5455615, purchasingGroup#5455616, isFallbackOrderOnly#5455617, orderProposalHorizonGroupingId#5455618L, splitIndicator#5455619L, previousOrderProposal#5455620L, clusterId#5455621L, worklistShardItemId#5455623L, orderProposalItemGroupId#5455624, externalProductId#5455625, externalPlantId#5455626, logisticUnits#5455627, orderQuantityBaseUom#5455628, orderQuantityBaseUomUuid#5455629, minimumOrderQuantity#5455630, constraintLabels#5455631, constraintOperators#5455632, constraintValues#5455633, constraintRanks#5455634, constraintIsActive#5455635, netPriceAmount#5455636, netPriceCurrencyCode#5455637, netPriceQuantity#5455638, netPriceQuantityUom#5455639, netPriceQuantityUomUuid#5455640, measurements#5455641, originalReplenishmentRunId#5455642L, optimizationGroups#5455643, shardId#5455644, sequenceId#5455622]
Batched: true
Location: PreparedDeltaFileIndex [hdlfs://332d7051-0d16-44f5-ae76-bf2dcf30365f.files.hdl.prod-eu20.hanacloud.ondemand.com:443/crp-order-qty-opt-service/internal/prod-plant-snapshot/10000001445]
PartitionFilters: [isnotnull(shardId#5455644), isnotnull(sequenceId#5455622), (shardId#5455644 = 0_1_10000001445), (sequenceId#5455622 = 6)]
PushedFilters: [IsNotNull(availabilityDateTime), IsNotNull(nextAvailabilityDateTime)]
ReadSchema: struct<orderProposalId:bigint,orderProposalItemId:string,supplierGroup:string,supplier:string,plant:string,deliveryDateTime:timestamp,subrange:string,supplyingPlant:string,productGroup:string,product:string,orderDateTime:timestamp,availabilityDateTime:timestamp,nextAvailabilityDateTime:timestamp,mrpController:string,sourceOfSupplyUuid:string,purchasingOrg:string,purchasingGroup:string,isFallbackOrderOnly:boolean,orderProposalHorizonGroupingId:bigint,splitIndicator:bigint,previousOrderProposal:bigint,clusterId:bigint,worklistShardItemId:bigint,orderProposalItemGroupId:string,externalProductId:string,externalPlantId:string,logisticUnits:array<struct<uom:string,uomUuid:string,numerator:int,denominator:int,isOrderUnit:boolean,isPreferred:boolean>>,orderQuantityBaseUom:string,orderQuantityBaseUomUuid:string,minimumOrderQuantity:double,constraintLabels:array<string>,constraintOperators:array<string>,constraintValues:array<double>,constraintRanks:array<int>,constraintIsActive:array<boolean>,netPriceAmount:double,netPriceCurrencyCode:string,netPriceQuantity:double,netPriceQuantityUom:string,netPriceQuantityUomUuid:string,measurements:array<struct<value:double,dimensionType:int,dimensionCode:string,dimensionCodeUuid:string,isoCode:string>>,originalReplenishmentRunId:bigint,optimizationGroups:array<string>>
(6) ColumnarToRow [codegen id : 1]
Input [45]: [orderProposalId#5455600L, orderProposalItemId#5455601, supplierGroup#5455602, supplier#5455603, plant#5455604, deliveryDateTime#5455605, subrange#5455606, supplyingPlant#5455607, productGroup#5455608, product#5455609, orderDateTime#5455610, availabilityDateTime#5455611, nextAvailabilityDateTime#5455612, mrpController#5455613, sourceOfSupplyUuid#5455614, purchasingOrg#5455615, purchasingGroup#5455616, isFallbackOrderOnly#5455617, orderProposalHorizonGroupingId#5455618L, splitIndicator#5455619L, previousOrderProposal#5455620L, clusterId#5455621L, worklistShardItemId#5455623L, orderProposalItemGroupId#5455624, externalProductId#5455625, externalPlantId#5455626, logisticUnits#5455627, orderQuantityBaseUom#5455628, orderQuantityBaseUomUuid#5455629, minimumOrderQuantity#5455630, constraintLabels#5455631, constraintOperators#5455632, constraintValues#5455633, constraintRanks#5455634, constraintIsActive#5455635, netPriceAmount#5455636, netPriceCurrencyCode#5455637, netPriceQuantity#5455638, netPriceQuantityUom#5455639, netPriceQuantityUomUuid#5455640, measurements#5455641, originalReplenishmentRunId#5455642L, optimizationGroups#5455643, shardId#5455644, sequenceId#5455622]
(7) Filter [codegen id : 1]
Input [45]: [orderProposalId#5455600L, orderProposalItemId#5455601, supplierGroup#5455602, supplier#5455603, plant#5455604, deliveryDateTime#5455605, subrange#5455606, supplyingPlant#5455607, productGroup#5455608, product#5455609, orderDateTime#5455610, availabilityDateTime#5455611, nextAvailabilityDateTime#5455612, mrpController#5455613, sourceOfSupplyUuid#5455614, purchasingOrg#5455615, purchasingGroup#5455616, isFallbackOrderOnly#5455617, orderProposalHorizonGroupingId#5455618L, splitIndicator#5455619L, previousOrderProposal#5455620L, clusterId#5455621L, worklistShardItemId#5455623L, orderProposalItemGroupId#5455624, externalProductId#5455625, externalPlantId#5455626, logisticUnits#5455627, orderQuantityBaseUom#5455628, orderQuantityBaseUomUuid#5455629, minimumOrderQuantity#5455630, constraintLabels#5455631, constraintOperators#5455632, constraintValues#5455633, constraintRanks#5455634, constraintIsActive#5455635, netPriceAmount#5455636, netPriceCurrencyCode#5455637, netPriceQuantity#5455638, netPriceQuantityUom#5455639, netPriceQuantityUomUuid#5455640, measurements#5455641, originalReplenishmentRunId#5455642L, optimizationGroups#5455643, shardId#5455644, sequenceId#5455622]
Condition : ((isnotnull(availabilityDateTime#5455611) AND isnotnull(nextAvailabilityDateTime#5455612)) AND (nextAvailabilityDateTime#5455612 > availabilityDateTime#5455611))
(8) Project [codegen id : 1]
Output [44]: [orderProposalId#5455600L, orderProposalItemId#5455601, supplierGroup#5455602, supplier#5455603, plant#5455604, deliveryDateTime#5455605, subrange#5455606, supplyingPlant#5455607, productGroup#5455608, product#5455609, orderDateTime#5455610, availabilityDateTime#5455611, nextAvailabilityDateTime#5455612, mrpController#5455613, sourceOfSupplyUuid#5455614, purchasingOrg#5455615, purchasingGroup#5455616, isFallbackOrderOnly#5455617, orderProposalHorizonGroupingId#5455618L, splitIndicator#5455619L, previousOrderProposal#5455620L, clusterId#5455621L, sequenceId#5455622, worklistShardItemId#5455623L, orderProposalItemGroupId#5455624, externalProductId#5455625, externalPlantId#5455626, logisticUnits#5455627, orderQuantityBaseUom#5455628, orderQuantityBaseUomUuid#5455629, minimumOrderQuantity#5455630, constraintLabels#5455631, constraintOperators#5455632, constraintValues#5455633, constraintRanks#5455634, constraintIsActive#5455635, netPriceAmount#5455636, netPriceCurrencyCode#5455637, netPriceQuantity#5455638, netPriceQuantityUom#5455639, netPriceQuantityUomUuid#5455640, measurements#5455641, originalReplenishmentRunId#5455642L, optimizationGroups#5455643]
Input [45]: [orderProposalId#5455600L, orderProposalItemId#5455601, supplierGroup#5455602, supplier#5455603, plant#5455604, deliveryDateTime#5455605, subrange#5455606, supplyingPlant#5455607, productGroup#5455608, product#5455609, orderDateTime#5455610, availabilityDateTime#5455611, nextAvailabilityDateTime#5455612, mrpController#5455613, sourceOfSupplyUuid#5455614, purchasingOrg#5455615, purchasingGroup#5455616, isFallbackOrderOnly#5455617, orderProposalHorizonGroupingId#5455618L, splitIndicator#5455619L, previousOrderProposal#5455620L, clusterId#5455621L, worklistShardItemId#5455623L, orderProposalItemGroupId#5455624, externalProductId#5455625, externalPlantId#5455626, logisticUnits#5455627, orderQuantityBaseUom#5455628, orderQuantityBaseUomUuid#5455629, minimumOrderQuantity#5455630, constraintLabels#5455631, constraintOperators#5455632, constraintValues#5455633, constraintRanks#5455634, constraintIsActive#5455635, netPriceAmount#5455636, netPriceCurrencyCode#5455637, netPriceQuantity#5455638, netPriceQuantityUom#5455639, netPriceQuantityUomUuid#5455640, measurements#5455641, originalReplenishmentRunId#5455642L, optimizationGroups#5455643, shardId#5455644, sequenceId#5455622]
(9) Exchange
Input [44]: [orderProposalId#5455600L, orderProposalItemId#5455601, supplierGroup#5455602, supplier#5455603, plant#5455604, deliveryDateTime#5455605, subrange#5455606, supplyingPlant#5455607, productGroup#5455608, product#5455609, orderDateTime#5455610, availabilityDateTime#5455611, nextAvailabilityDateTime#5455612, mrpController#5455613, sourceOfSupplyUuid#5455614, purchasingOrg#5455615, purchasingGroup#5455616, isFallbackOrderOnly#5455617, orderProposalHorizonGroupingId#5455618L, splitIndicator#5455619L, previousOrderProposal#5455620L, clusterId#5455621L, sequenceId#5455622, worklistShardItemId#5455623L, orderProposalItemGroupId#5455624, externalProductId#5455625, externalPlantId#5455626, logisticUnits#5455627, orderQuantityBaseUom#5455628, orderQuantityBaseUomUuid#5455629, minimumOrderQuantity#5455630, constraintLabels#5455631, constraintOperators#5455632, constraintValues#5455633, constraintRanks#5455634, constraintIsActive#5455635, netPriceAmount#5455636, netPriceCurrencyCode#5455637, netPriceQuantity#5455638, netPriceQuantityUom#5455639, netPriceQuantityUomUuid#5455640, measurements#5455641, originalReplenishmentRunId#5455642L, optimizationGroups#5455643]
Arguments: hashpartitioning(worklistShardItemId#5455623L, 37), REPARTITION_BY_NUM, [plan_id=2828924]
(10) ShuffleQueryStage
Output [44]: [orderProposalId#5455600L, orderProposalItemId#5455601, supplierGroup#5455602, supplier#5455603, plant#5455604, deliveryDateTime#5455605, subrange#5455606, supplyingPlant#5455607, productGroup#5455608, product#5455609, orderDateTime#5455610, availabilityDateTime#5455611, nextAvailabilityDateTime#5455612, mrpController#5455613, sourceOfSupplyUuid#5455614, purchasingOrg#5455615, purchasingGroup#5455616, isFallbackOrderOnly#5455617, orderProposalHorizonGroupingId#5455618L, splitIndicator#5455619L, previousOrderProposal#5455620L, clusterId#5455621L, sequenceId#5455622, worklistShardItemId#5455623L, orderProposalItemGroupId#5455624, externalProductId#5455625, externalPlantId#5455626, logisticUnits#5455627, orderQuantityBaseUom#5455628, orderQuantityBaseUomUuid#5455629, minimumOrderQuantity#5455630, constraintLabels#5455631, constraintOperators#5455632, constraintValues#5455633, constraintRanks#5455634, constraintIsActive#5455635, netPriceAmount#5455636, netPriceCurrencyCode#5455637, netPriceQuantity#5455638, netPriceQuantityUom#5455639, netPriceQuantityUomUuid#5455640, measurements#5455641, originalReplenishmentRunId#5455642L, optimizationGroups#5455643]
Arguments: 0
(11) Project [codegen id : 2]
Output [45]: [0_1_10000001445 AS shardId#5455555, worklistShardItemId#5455623L, orderProposalId#5455600L, orderProposalItemId#5455601, orderProposalItemGroupId#5455624, originalReplenishmentRunId#5455642L, orderProposalHorizonGroupingId#5455618L, splitIndicator#5455619L, previousOrderProposal#5455620L, clusterId#5455621L, cast(sequenceId#5455622 as bigint) AS sequenceId#5455565L, sourceOfSupplyUuid#5455614, supplierGroup#5455602, supplier#5455603, subrange#5455606, product#5455609, plant#5455604, purchasingOrg#5455615, purchasingGroup#5455616, mrpController#5455613, orderDateTime#5455610, deliveryDateTime#5455605, availabilityDateTime#5455611, nextAvailabilityDateTime#5455612, isFallbackOrderOnly#5455617, orderQuantityBaseUom#5455628, orderQuantityBaseUomUuid#5455629, netPriceQuantity#5455638, netPriceQuantityUom#5455639, netPriceQuantityUomUuid#5455640, netPriceAmount#5455636, netPriceCurrencyCode#5455637, measurements#5455641, minimumOrderQuantity#5455630, constraintLabels#5455631, constraintOperators#5455632, constraintRanks#5455634, constraintValues#5455633, constraintIsActive#5455635, logisticUnits#5455627, optimizationGroups#5455643, externalProductId#5455625, externalPlantId#5455626, supplyingPlant#5455607, productGroup#5455608]
Input [44]: [orderProposalId#5455600L, orderProposalItemId#5455601, supplierGroup#5455602, supplier#5455603, plant#5455604, deliveryDateTime#5455605, subrange#5455606, supplyingPlant#5455607, productGroup#5455608, product#5455609, orderDateTime#5455610, availabilityDateTime#5455611, nextAvailabilityDateTime#5455612, mrpController#5455613, sourceOfSupplyUuid#5455614, purchasingOrg#5455615, purchasingGroup#5455616, isFallbackOrderOnly#5455617, orderProposalHorizonGroupingId#5455618L, splitIndicator#5455619L, previousOrderProposal#5455620L, clusterId#5455621L, sequenceId#5455622, worklistShardItemId#5455623L, orderProposalItemGroupId#5455624, externalProductId#5455625, externalPlantId#5455626, logisticUnits#5455627, orderQuantityBaseUom#5455628, orderQuantityBaseUomUuid#5455629, minimumOrderQuantity#5455630, constraintLabels#5455631, constraintOperators#5455632, constraintValues#5455633, constraintRanks#5455634, constraintIsActive#5455635, netPriceAmount#5455636, netPriceCurrencyCode#5455637, netPriceQuantity#5455638, netPriceQuantityUom#5455639, netPriceQuantityUomUuid#5455640, measurements#5455641, originalReplenishmentRunId#5455642L, optimizationGroups#5455643]
(12) ResultQueryStage
Output [45]: [shardId#5455555, worklistShardItemId#5455623L, orderProposalId#5455600L, orderProposalItemId#5455601, orderProposalItemGroupId#5455624, originalReplenishmentRunId#5455642L, orderProposalHorizonGroupingId#5455618L, splitIndicator#5455619L, previousOrderProposal#5455620L, clusterId#5455621L, sequenceId#5455565L, sourceOfSupplyUuid#5455614, supplierGroup#5455602, supplier#5455603, subrange#5455606, product#5455609, plant#5455604, purchasingOrg#5455615, purchasingGroup#5455616, mrpController#5455613, orderDateTime#5455610, deliveryDateTime#5455605, availabilityDateTime#5455611, nextAvailabilityDateTime#5455612, isFallbackOrderOnly#5455617, orderQuantityBaseUom#5455628, orderQuantityBaseUomUuid#5455629, netPriceQuantity#5455638, netPriceQuantityUom#5455639, netPriceQuantityUomUuid#5455640, netPriceAmount#5455636, netPriceCurrencyCode#5455637, measurements#5455641, minimumOrderQuantity#5455630, constraintLabels#5455631, constraintOperators#5455632, constraintRanks#5455634, constraintValues#5455633, constraintIsActive#5455635, logisticUnits#5455627, optimizationGroups#5455643, externalProductId#5455625, externalPlantId#5455626, supplyingPlant#5455607, productGroup#5455608]
Arguments: 1
(13) Filter
Input [45]: [orderProposalId#5455600L, orderProposalItemId#5455601, supplierGroup#5455602, supplier#5455603, plant#5455604, deliveryDateTime#5455605, subrange#5455606, supplyingPlant#5455607, productGroup#5455608, product#5455609, orderDateTime#5455610, availabilityDateTime#5455611, nextAvailabilityDateTime#5455612, mrpController#5455613, sourceOfSupplyUuid#5455614, purchasingOrg#5455615, purchasingGroup#5455616, isFallbackOrderOnly#5455617, orderProposalHorizonGroupingId#5455618L, splitIndicator#5455619L, previousOrderProposal#5455620L, clusterId#5455621L, worklistShardItemId#5455623L, orderProposalItemGroupId#5455624, externalProductId#5455625, externalPlantId#5455626, logisticUnits#5455627, orderQuantityBaseUom#5455628, orderQuantityBaseUomUuid#5455629, minimumOrderQuantity#5455630, constraintLabels#5455631, constraintOperators#5455632, constraintValues#5455633, constraintRanks#5455634, constraintIsActive#5455635, netPriceAmount#5455636, netPriceCurrencyCode#5455637, netPriceQuantity#5455638, netPriceQuantityUom#5455639, netPriceQuantityUomUuid#5455640, measurements#5455641, originalReplenishmentRunId#5455642L, optimizationGroups#5455643, shardId#5455644, sequenceId#5455622]
Condition : ((isnotnull(availabilityDateTime#5455611) AND isnotnull(nextAvailabilityDateTime#5455612)) AND (nextAvailabilityDateTime#5455612 > availabilityDateTime#5455611))
(14) Project
Output [44]: [orderProposalId#5455600L, orderProposalItemId#5455601, supplierGroup#5455602, supplier#5455603, plant#5455604, deliveryDateTime#5455605, subrange#5455606, supplyingPlant#5455607, productGroup#5455608, product#5455609, orderDateTime#5455610, availabilityDateTime#5455611, nextAvailabilityDateTime#5455612, mrpController#5455613, sourceOfSupplyUuid#5455614, purchasingOrg#5455615, purchasingGroup#5455616, isFallbackOrderOnly#5455617, orderProposalHorizonGroupingId#5455618L, splitIndicator#5455619L, previousOrderProposal#5455620L, clusterId#5455621L, sequenceId#5455622, worklistShardItemId#5455623L, orderProposalItemGroupId#5455624, externalProductId#5455625, externalPlantId#5455626, logisticUnits#5455627, orderQuantityBaseUom#5455628, orderQuantityBaseUomUuid#5455629, minimumOrderQuantity#5455630, constraintLabels#5455631, constraintOperators#5455632, constraintValues#5455633, constraintRanks#5455634, constraintIsActive#5455635, netPriceAmount#5455636, netPriceCurrencyCode#5455637, netPriceQuantity#5455638, netPriceQuantityUom#5455639, netPriceQuantityUomUuid#5455640, measurements#5455641, originalReplenishmentRunId#5455642L, optimizationGroups#5455643]
Input [45]: [orderProposalId#5455600L, orderProposalItemId#5455601, supplierGroup#5455602, supplier#5455603, plant#5455604, deliveryDateTime#5455605, subrange#5455606, supplyingPlant#5455607, productGroup#5455608, product#5455609, orderDateTime#5455610, availabilityDateTime#5455611, nextAvailabilityDateTime#5455612, mrpController#5455613, sourceOfSupplyUuid#5455614, purchasingOrg#5455615, purchasingGroup#5455616, isFallbackOrderOnly#5455617, orderProposalHorizonGroupingId#5455618L, splitIndicator#5455619L, previousOrderProposal#5455620L, clusterId#5455621L, worklistShardItemId#5455623L, orderProposalItemGroupId#5455624, externalProductId#5455625, externalPlantId#5455626, logisticUnits#5455627, orderQuantityBaseUom#5455628, orderQuantityBaseUomUuid#5455629, minimumOrderQuantity#5455630, constraintLabels#5455631, constraintOperators#5455632, constraintValues#5455633, constraintRanks#5455634, constraintIsActive#5455635, netPriceAmount#5455636, netPriceCurrencyCode#5455637, netPriceQuantity#5455638, netPriceQuantityUom#5455639, netPriceQuantityUomUuid#5455640, measurements#5455641, originalReplenishmentRunId#5455642L, optimizationGroups#5455643, shardId#5455644, sequenceId#5455622]
(15) Exchange
Input [44]: [orderProposalId#5455600L, orderProposalItemId#5455601, supplierGroup#5455602, supplier#5455603, plant#5455604, deliveryDateTime#5455605, subrange#5455606, supplyingPlant#5455607, productGroup#5455608, product#5455609, orderDateTime#5455610, availabilityDateTime#5455611, nextAvailabilityDateTime#5455612, mrpController#5455613, sourceOfSupplyUuid#5455614, purchasingOrg#5455615, purchasingGroup#5455616, isFallbackOrderOnly#5455617, orderProposalHorizonGroupingId#5455618L, splitIndicator#5455619L, previousOrderProposal#5455620L, clusterId#5455621L, sequenceId#5455622, worklistShardItemId#5455623L, orderProposalItemGroupId#5455624, externalProductId#5455625, externalPlantId#5455626, logisticUnits#5455627, orderQuantityBaseUom#5455628, orderQuantityBaseUomUuid#5455629, minimumOrderQuantity#5455630, constraintLabels#5455631, constraintOperators#5455632, constraintValues#5455633, constraintRanks#5455634, constraintIsActive#5455635, netPriceAmount#5455636, netPriceCurrencyCode#5455637, netPriceQuantity#5455638, netPriceQuantityUom#5455639, netPriceQuantityUomUuid#5455640, measurements#5455641, originalReplenishmentRunId#5455642L, optimizationGroups#5455643]
Arguments: hashpartitioning(worklistShardItemId#5455623L, 37), REPARTITION_BY_NUM, [plan_id=2828896]
(16) Project
Output [45]: [0_1_10000001445 AS shardId#5455555, worklistShardItemId#5455623L, orderProposalId#5455600L, orderProposalItemId#5455601, orderProposalItemGroupId#5455624, originalReplenishmentRunId#5455642L, orderProposalHorizonGroupingId#5455618L, splitIndicator#5455619L, previousOrderProposal#5455620L, clusterId#5455621L, cast(sequenceId#5455622 as bigint) AS sequenceId#5455565L, sourceOfSupplyUuid#5455614, supplierGroup#5455602, supplier#5455603, subrange#5455606, product#5455609, plant#5455604, purchasingOrg#5455615, purchasingGroup#5455616, mrpController#5455613, orderDateTime#5455610, deliveryDateTime#5455605, availabilityDateTime#5455611, nextAvailabilityDateTime#5455612, isFallbackOrderOnly#5455617, orderQuantityBaseUom#5455628, orderQuantityBaseUomUuid#5455629, netPriceQuantity#5455638, netPriceQuantityUom#5455639, netPriceQuantityUomUuid#5455640, netPriceAmount#5455636, netPriceCurrencyCode#5455637, measurements#5455641, minimumOrderQuantity#5455630, constraintLabels#5455631, constraintOperators#5455632, constraintRanks#5455634, constraintValues#5455633, constraintIsActive#5455635, logisticUnits#5455627, optimizationGroups#5455643, externalProductId#5455625, externalPlantId#5455626, supplyingPlant#5455607, productGroup#5455608]
Input [44]: [orderProposalId#5455600L, orderProposalItemId#5455601, supplierGroup#5455602, supplier#5455603, plant#5455604, deliveryDateTime#5455605, subrange#5455606, supplyingPlant#5455607, productGroup#5455608, product#5455609, orderDateTime#5455610, availabilityDateTime#5455611, nextAvailabilityDateTime#5455612, mrpController#5455613, sourceOfSupplyUuid#5455614, purchasingOrg#5455615, purchasingGroup#5455616, isFallbackOrderOnly#5455617, orderProposalHorizonGroupingId#5455618L, splitIndicator#5455619L, previousOrderProposal#5455620L, clusterId#5455621L, sequenceId#5455622, worklistShardItemId#5455623L, orderProposalItemGroupId#5455624, externalProductId#5455625, externalPlantId#5455626, logisticUnits#5455627, orderQuantityBaseUom#5455628, orderQuantityBaseUomUuid#5455629, minimumOrderQuantity#5455630, constraintLabels#5455631, constraintOperators#5455632, constraintValues#5455633, constraintRanks#5455634, constraintIsActive#5455635, netPriceAmount#5455636, netPriceCurrencyCode#5455637, netPriceQuantity#5455638, netPriceQuantityUom#5455639, netPriceQuantityUomUuid#5455640, measurements#5455641, originalReplenishmentRunId#5455642L, optimizationGroups#5455643]
(17) AdaptiveSparkPlan
Output [45]: [shardId#5455555, worklistShardItemId#5455623L, orderProposalId#5455600L, orderProposalItemId#5455601, orderProposalItemGroupId#5455624, originalReplenishmentRunId#5455642L, orderProposalHorizonGroupingId#5455618L, splitIndicator#5455619L, previousOrderProposal#5455620L, clusterId#5455621L, sequenceId#5455565L, sourceOfSupplyUuid#5455614, supplierGroup#5455602, supplier#5455603, subrange#5455606, product#5455609, plant#5455604, purchasingOrg#5455615, purchasingGroup#5455616, mrpController#5455613, orderDateTime#5455610, deliveryDateTime#5455605, availabilityDateTime#5455611, nextAvailabilityDateTime#5455612, isFallbackOrderOnly#5455617, orderQuantityBaseUom#5455628, orderQuantityBaseUomUuid#5455629, netPriceQuantity#5455638, netPriceQuantityUom#5455639, netPriceQuantityUomUuid#5455640, netPriceAmount#5455636, netPriceCurrencyCode#5455637, measurements#5455641, minimumOrderQuantity#5455630, constraintLabels#5455631, constraintOperators#5455632, constraintRanks#5455634, constraintValues#5455633, constraintIsActive#5455635, logisticUnits#5455627, optimizationGroups#5455643, externalProductId#5455625, externalPlantId#5455626, supplyingPlant#5455607, productGroup#5455608]
Arguments: isFinalPlan=true
(18) TableCacheQueryStage
Output [3]: [shardId#5455555, worklistShardItemId#5455556L, orderProposalId#5455557L]
Arguments: 0
(19) Filter [codegen id : 1]
Input [3]: [shardId#5455555, worklistShardItemId#5455556L, orderProposalId#5455557L]
Condition : (isnotnull(shardId#5455555) AND isnotnull(orderProposalId#5455557L))
(20) ObjectHashAggregate
Input [3]: [shardId#5455555, worklistShardItemId#5455556L, orderProposalId#5455557L]
Keys [2]: [shardId#5455555, orderProposalId#5455557L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#5455556L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#5465217]
Results [3]: [shardId#5455555, orderProposalId#5455557L, buf#5465218]
(21) Exchange
Input [3]: [shardId#5455555, orderProposalId#5455557L, buf#5465218]
Arguments: hashpartitioning(shardId#5455555, orderProposalId#5455557L, 37), ENSURE_REQUIREMENTS, [plan_id=2829563]
(22) ShuffleQueryStage [codegen id : 6]
Output [3]: [shardId#5455555, orderProposalId#5455557L, buf#5465218]
Arguments: 2
(23) AQEShuffleRead [codegen id : 6]
Input [3]: [shardId#5455555, orderProposalId#5455557L, buf#5465218]
Arguments: coalesced
(24) ObjectHashAggregate [codegen id : 6]
Input [3]: [shardId#5455555, orderProposalId#5455557L, buf#5465218]
Keys [2]: [shardId#5455555, orderProposalId#5455557L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#5455556L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#5455556L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#5463713]
Results [7]: [shardId#5455555, orderProposalId#5455557L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#5455556L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#5463713, lambdafunction(struct(worklistShardItemId, lambda x_10841#5463734.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_10841#5463734.quantityAfterProdPlantOptimization, qty, lambda x_10841#5463734.optimalQuantity), lambda x_10841#5463734, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#5463735, [] AS optimizationGroups#5463729, false AS isOptimal#5463714, 2026-07-21 20:41:19.887932 AS lastModified#5463733, [] AS optimizationInsights#5463730]
(25) Union
(26) Exchange
Input [7]: [shardId#5463722, orderProposalId#5463723L, items#5463724, optimizationGroups#5463725, isOptimal#5463726, lastModified#5463727, optimizationInsights#5463728]
Arguments: hashpartitioning(shardId#5463722, orderProposalId#5463723L, lastModified#5463727, 37), ENSURE_REQUIREMENTS, [plan_id=2829780]
(27) ShuffleQueryStage
Output [7]: [shardId#5463722, orderProposalId#5463723L, items#5463724, optimizationGroups#5463725, isOptimal#5463726, lastModified#5463727, optimizationInsights#5463728]
Arguments: 5
(28) AQEShuffleRead
Input [7]: [shardId#5463722, orderProposalId#5463723L, items#5463724, optimizationGroups#5463725, isOptimal#5463726, lastModified#5463727, optimizationInsights#5463728]
Arguments: local
(29) Scan ExistingRDD [codegen id : 3]
Output [7]: [shardId#5463745, orderProposalId#5463746L, items#5463747, optimizationGroups#5463748, isOptimal#5463749, lastModified#5463750, optimizationInsights#5463751]
Arguments: [shardId#5463745, orderProposalId#5463746L, items#5463747, optimizationGroups#5463748, isOptimal#5463749, lastModified#5463750, optimizationInsights#5463751], MapPartitionsRDD[384005] at createDataFrame at OptimalQuantitiesCacheImpl.java:214, ExistingRDD, UnknownPartitioning(0)
(30) Filter [codegen id : 3]
Input [7]: [shardId#5463745, orderProposalId#5463746L, items#5463747, optimizationGroups#5463748, isOptimal#5463749, lastModified#5463750, optimizationInsights#5463751]
Condition : (isnotnull(shardId#5463745) AND isnotnull(orderProposalId#5463746L))
(31) Project [codegen id : 3]
Output [3]: [shardId#5463745, orderProposalId#5463746L, lastModified#5463750]
Input [7]: [shardId#5463745, orderProposalId#5463746L, items#5463747, optimizationGroups#5463748, isOptimal#5463749, lastModified#5463750, optimizationInsights#5463751]
(32) InMemoryTableScan
Output [2]: [shardId#5463752, orderProposalId#5463754L]
Arguments: [shardId#5463752, orderProposalId#5463754L], [isnotnull(shardId#5463752), isnotnull(orderProposalId#5463754L)]
(33) InMemoryRelation
Arguments: [shardId#5463752, worklistShardItemId#5463753L, orderProposalId#5463754L, orderProposalItemId#5463755, orderProposalItemGroupId#5463756, originalReplenishmentRunId#5463757L, orderProposalHorizonGroupingId#5463758L, splitIndicator#5463759L, previousOrderProposal#5463760L, clusterId#5463761L, sequenceId#5463762L, sourceOfSupplyUuid#5463763, supplierGroup#5463764, supplier#5463765, subrange#5463766, product#5463767, plant#5463768, purchasingOrg#5463769, purchasingGroup#5463770, mrpController#5463771, orderDateTime#5463772, deliveryDateTime#5463773, availabilityDateTime#5463774, nextAvailabilityDateTime#5463775, isFallbackOrderOnly#5463776, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(34) TableCacheQueryStage
Output [2]: [shardId#5463752, orderProposalId#5463754L]
Arguments: 1
(35) Filter [codegen id : 2]
Input [2]: [shardId#5463752, orderProposalId#5463754L]
Condition : (isnotnull(shardId#5463752) AND isnotnull(orderProposalId#5463754L))
(36) HashAggregate [codegen id : 2]
Input [2]: [shardId#5463752, orderProposalId#5463754L]
Keys [2]: [shardId#5463752, orderProposalId#5463754L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#5463752, orderProposalId#5463754L]
(37) Exchange
Input [2]: [shardId#5463752, orderProposalId#5463754L]
Arguments: hashpartitioning(shardId#5463752, orderProposalId#5463754L, 37), ENSURE_REQUIREMENTS, [plan_id=2829599]
(38) ShuffleQueryStage
Output [2]: [shardId#5463752, orderProposalId#5463754L]
Arguments: 3
(39) AQEShuffleRead
Input [2]: [shardId#5463752, orderProposalId#5463754L]
Arguments: coalesced
(40) HashAggregate [codegen id : 4]
Input [2]: [shardId#5463752, orderProposalId#5463754L]
Keys [2]: [shardId#5463752, orderProposalId#5463754L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#5463752, orderProposalId#5463754L, 2026-07-21 20:41:19.887932 AS lastModified#5463849]
(41) Union
(42) HashAggregate [codegen id : 5]
Input [3]: [shardId#5463745, orderProposalId#5463746L, lastModified#5463750]
Keys [2]: [shardId#5463745, orderProposalId#5463746L]
Functions [1]: [partial_max(lastModified#5463750)]
Aggregate Attributes [1]: [max#5465219]
Results [3]: [shardId#5463745, orderProposalId#5463746L, max#5465220]
(43) Exchange
Input [3]: [shardId#5463745, orderProposalId#5463746L, max#5465220]
Arguments: hashpartitioning(shardId#5463745, orderProposalId#5463746L, 37), ENSURE_REQUIREMENTS, [plan_id=2829703]
(44) ShuffleQueryStage
Output [3]: [shardId#5463745, orderProposalId#5463746L, max#5465220]
Arguments: 4
(45) AQEShuffleRead
Input [3]: [shardId#5463745, orderProposalId#5463746L, max#5465220]
Arguments: coalesced
(46) HashAggregate [codegen id : 7]
Input [3]: [shardId#5463745, orderProposalId#5463746L, max#5465220]
Keys [2]: [shardId#5463745, orderProposalId#5463746L]
Functions [1]: [max(lastModified#5463750)]
Aggregate Attributes [1]: [max(lastModified#5463750)#5463744]
Results [3]: [shardId#5463745, orderProposalId#5463746L, max(lastModified#5463750)#5463744 AS lastModified#5463736]
(47) Filter [codegen id : 7]
Input [3]: [shardId#5463745, orderProposalId#5463746L, lastModified#5463736]
Condition : isnotnull(lastModified#5463736)
(48) BroadcastExchange
Input [3]: [shardId#5463745, orderProposalId#5463746L, lastModified#5463736]
Arguments: HashedRelationBroadcastMode(List(input[0, string, true], input[1, bigint, true], input[2, timestamp, false]),false), [plan_id=2830033]
(49) BroadcastQueryStage
Output [3]: [shardId#5463745, orderProposalId#5463746L, lastModified#5463736]
Arguments: 6
(50) BroadcastHashJoin [codegen id : 8]
Left keys [3]: [shardId#5463722, orderProposalId#5463723L, lastModified#5463727]
Right keys [3]: [shardId#5463745, orderProposalId#5463746L, lastModified#5463736]
Join type: Inner
Join condition: None
(51) Project [codegen id : 8]
Output [7]: [shardId#5463722, orderProposalId#5463723L, items#5463724, optimizationGroups#5463725, isOptimal#5463726, lastModified#5463727, optimizationInsights#5463728]
Input [10]: [shardId#5463722, orderProposalId#5463723L, items#5463724, optimizationGroups#5463725, isOptimal#5463726, lastModified#5463727, optimizationInsights#5463728, shardId#5463745, orderProposalId#5463746L, lastModified#5463736]
(52) DeserializeToObject
Input [7]: [shardId#5463722, orderProposalId#5463723L, items#5463724, optimizationGroups#5463725, isOptimal#5463726, lastModified#5463727, optimizationInsights#5463728]
Arguments: createexternalrow(invoke(shardId#5463722.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#5463723L)), 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#5463724, 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#5463725, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#5463726)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#5463727)), 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#5463728, 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#5463866: org.apache.spark.sql.Row
(53) ResultQueryStage
Output [1]: [obj#5463866]
Arguments: 7
(54) Filter
Input [3]: [shardId#5455555, worklistShardItemId#5455556L, orderProposalId#5455557L]
Condition : (isnotnull(shardId#5455555) AND isnotnull(orderProposalId#5455557L))
(55) ObjectHashAggregate
Input [3]: [shardId#5455555, worklistShardItemId#5455556L, orderProposalId#5455557L]
Keys [2]: [shardId#5455555, orderProposalId#5455557L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#5455556L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#5465217]
Results [3]: [shardId#5455555, orderProposalId#5455557L, buf#5465218]
(56) Exchange
Input [3]: [shardId#5455555, orderProposalId#5455557L, buf#5465218]
Arguments: hashpartitioning(shardId#5455555, orderProposalId#5455557L, 37), ENSURE_REQUIREMENTS, [plan_id=2829392]
(57) ObjectHashAggregate
Input [3]: [shardId#5455555, orderProposalId#5455557L, buf#5465218]
Keys [2]: [shardId#5455555, orderProposalId#5455557L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#5455556L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#5455556L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#5463713]
Results [7]: [shardId#5455555, orderProposalId#5455557L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#5455556L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#5463713, lambdafunction(struct(worklistShardItemId, lambda x_10841#5463734.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_10841#5463734.quantityAfterProdPlantOptimization, qty, lambda x_10841#5463734.optimalQuantity), lambda x_10841#5463734, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#5463735, [] AS optimizationGroups#5463729, false AS isOptimal#5463714, 2026-07-21 20:41:19.887932 AS lastModified#5463733, [] AS optimizationInsights#5463730]
(58) Union
(59) Exchange
Input [7]: [shardId#5463722, orderProposalId#5463723L, items#5463724, optimizationGroups#5463725, isOptimal#5463726, lastModified#5463727, optimizationInsights#5463728]
Arguments: hashpartitioning(shardId#5463722, orderProposalId#5463723L, lastModified#5463727, 37), ENSURE_REQUIREMENTS, [plan_id=2829405]
(60) Sort
Input [7]: [shardId#5463722, orderProposalId#5463723L, items#5463724, optimizationGroups#5463725, isOptimal#5463726, lastModified#5463727, optimizationInsights#5463728]
Arguments: [shardId#5463722 ASC NULLS FIRST, orderProposalId#5463723L ASC NULLS FIRST, lastModified#5463727 ASC NULLS FIRST], false, 0
(61) Filter
Input [2]: [shardId#5463752, orderProposalId#5463754L]
Condition : (isnotnull(shardId#5463752) AND isnotnull(orderProposalId#5463754L))
(62) HashAggregate
Input [2]: [shardId#5463752, orderProposalId#5463754L]
Keys [2]: [shardId#5463752, orderProposalId#5463754L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#5463752, orderProposalId#5463754L]
(63) Exchange
Input [2]: [shardId#5463752, orderProposalId#5463754L]
Arguments: hashpartitioning(shardId#5463752, orderProposalId#5463754L, 37), ENSURE_REQUIREMENTS, [plan_id=2829395]
(64) HashAggregate
Input [2]: [shardId#5463752, orderProposalId#5463754L]
Keys [2]: [shardId#5463752, orderProposalId#5463754L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#5463752, orderProposalId#5463754L, 2026-07-21 20:41:19.887932 AS lastModified#5463849]
(65) Union
(66) HashAggregate
Input [3]: [shardId#5463745, orderProposalId#5463746L, lastModified#5463750]
Keys [2]: [shardId#5463745, orderProposalId#5463746L]
Functions [1]: [partial_max(lastModified#5463750)]
Aggregate Attributes [1]: [max#5465219]
Results [3]: [shardId#5463745, orderProposalId#5463746L, max#5465220]
(67) Exchange
Input [3]: [shardId#5463745, orderProposalId#5463746L, max#5465220]
Arguments: hashpartitioning(shardId#5463745, orderProposalId#5463746L, 37), ENSURE_REQUIREMENTS, [plan_id=2829400]
(68) HashAggregate
Input [3]: [shardId#5463745, orderProposalId#5463746L, max#5465220]
Keys [2]: [shardId#5463745, orderProposalId#5463746L]
Functions [1]: [max(lastModified#5463750)]
Aggregate Attributes [1]: [max(lastModified#5463750)#5463744]
Results [3]: [shardId#5463745, orderProposalId#5463746L, max(lastModified#5463750)#5463744 AS lastModified#5463736]
(69) Filter
Input [3]: [shardId#5463745, orderProposalId#5463746L, lastModified#5463736]
Condition : isnotnull(lastModified#5463736)
(70) Exchange
Input [3]: [shardId#5463745, orderProposalId#5463746L, lastModified#5463736]
Arguments: hashpartitioning(shardId#5463745, orderProposalId#5463746L, lastModified#5463736, 37), ENSURE_REQUIREMENTS, [plan_id=2829406]
(71) Sort
Input [3]: [shardId#5463745, orderProposalId#5463746L, lastModified#5463736]
Arguments: [shardId#5463745 ASC NULLS FIRST, orderProposalId#5463746L ASC NULLS FIRST, lastModified#5463736 ASC NULLS FIRST], false, 0
(72) SortMergeJoin
Left keys [3]: [shardId#5463722, orderProposalId#5463723L, lastModified#5463727]
Right keys [3]: [shardId#5463745, orderProposalId#5463746L, lastModified#5463736]
Join type: Inner
Join condition: None
(73) Project
Output [7]: [shardId#5463722, orderProposalId#5463723L, items#5463724, optimizationGroups#5463725, isOptimal#5463726, lastModified#5463727, optimizationInsights#5463728]
Input [10]: [shardId#5463722, orderProposalId#5463723L, items#5463724, optimizationGroups#5463725, isOptimal#5463726, lastModified#5463727, optimizationInsights#5463728, shardId#5463745, orderProposalId#5463746L, lastModified#5463736]
(74) DeserializeToObject
Input [7]: [shardId#5463722, orderProposalId#5463723L, items#5463724, optimizationGroups#5463725, isOptimal#5463726, lastModified#5463727, optimizationInsights#5463728]
Arguments: createexternalrow(invoke(shardId#5463722.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#5463723L)), 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#5463724, 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#5463725, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#5463726)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#5463727)), 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#5463728, 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#5463866: org.apache.spark.sql.Row
(75) AdaptiveSparkPlan
Output [1]: [obj#5463866]
Arguments: isFinalPlan=true