== Physical Plan ==
AdaptiveSparkPlan (74)
+- == Final Plan ==
ResultQueryStage (50), Statistics(sizeInBytes=8.0 EiB)
+- DeserializeToObject (49)
+- * Project (48)
+- * BroadcastHashJoin Inner BuildRight (47)
:- 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 (46), Statistics(sizeInBytes=2.0 MiB, rowCount=2)
+- BroadcastExchange (45)
+- * Filter (44)
+- * HashAggregate (43)
+- AQEShuffleRead (42)
+- ShuffleQueryStage (41), Statistics(sizeInBytes=96.0 B, rowCount=2)
+- Exchange (40)
+- * HashAggregate (39)
+- Union (38)
:- * Project (28)
: +- * Filter (27)
: +- * Scan ExistingRDD (26)
+- * HashAggregate (37)
+- AQEShuffleRead (36)
+- ShuffleQueryStage (35), Statistics(sizeInBytes=880.0 B, rowCount=22)
+- Exchange (34)
+- * HashAggregate (33)
+- * Filter (32)
+- TableCacheQueryStage (31), Statistics(sizeInBytes=36.7 KiB, rowCount=29)
+- InMemoryTableScan (29)
+- InMemoryRelation (30)
+- 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 (73)
+- Project (72)
+- SortMergeJoin Inner (71)
:- Sort (59)
: +- Exchange (58)
: +- Union (57)
: :- Filter (52)
: : +- Scan ExistingRDD (51)
: +- ObjectHashAggregate (56)
: +- Exchange (55)
: +- ObjectHashAggregate (54)
: +- Filter (53)
: +- 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 (70)
+- Exchange (69)
+- Filter (68)
+- HashAggregate (67)
+- Exchange (66)
+- HashAggregate (65)
+- Union (64)
:- Project (28)
: +- Filter (27)
: +- Scan ExistingRDD (26)
+- HashAggregate (63)
+- Exchange (62)
+- HashAggregate (61)
+- Filter (60)
+- InMemoryTableScan (29)
+- InMemoryRelation (30)
+- 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 : 7]
Output [7]: [shardId#5561033, orderProposalId#5561034L, items#5561035, optimizationGroups#5561036, isOptimal#5561037, lastModified#5561038, optimizationInsights#5561039]
Arguments: [shardId#5561033, orderProposalId#5561034L, items#5561035, optimizationGroups#5561036, isOptimal#5561037, lastModified#5561038, optimizationInsights#5561039], MapPartitionsRDD[391409] at createDataFrame at OptimalQuantitiesCacheImpl.java:214, ExistingRDD, UnknownPartitioning(0)
(2) Filter [codegen id : 7]
Input [7]: [shardId#5561033, orderProposalId#5561034L, items#5561035, optimizationGroups#5561036, isOptimal#5561037, lastModified#5561038, optimizationInsights#5561039]
Condition : ((isnotnull(shardId#5561033) AND isnotnull(orderProposalId#5561034L)) AND isnotnull(lastModified#5561038))
(3) InMemoryTableScan
Output [3]: [shardId#5555445, worklistShardItemId#5555446L, orderProposalId#5555447L]
Arguments: [shardId#5555445, worklistShardItemId#5555446L, orderProposalId#5555447L], [isnotnull(shardId#5555445), isnotnull(orderProposalId#5555447L)]
(4) InMemoryRelation
Arguments: [shardId#5555445, worklistShardItemId#5555446L, orderProposalId#5555447L, orderProposalItemId#5555448, orderProposalItemGroupId#5555449, originalReplenishmentRunId#5555450L, orderProposalHorizonGroupingId#5555451L, splitIndicator#5555452L, previousOrderProposal#5555453L, clusterId#5555454L, sequenceId#5555455L, sourceOfSupplyUuid#5555456, supplierGroup#5555457, supplier#5555458, subrange#5555459, product#5555460, plant#5555461, purchasingOrg#5555462, purchasingGroup#5555463, mrpController#5555464, orderDateTime#5555465, deliveryDateTime#5555466, availabilityDateTime#5555467, nextAvailabilityDateTime#5555468, isFallbackOrderOnly#5555469, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(5) Scan parquet
Output [45]: [orderProposalId#5555490L, orderProposalItemId#5555491, supplierGroup#5555492, supplier#5555493, plant#5555494, deliveryDateTime#5555495, subrange#5555496, supplyingPlant#5555497, productGroup#5555498, product#5555499, orderDateTime#5555500, availabilityDateTime#5555501, nextAvailabilityDateTime#5555502, mrpController#5555503, sourceOfSupplyUuid#5555504, purchasingOrg#5555505, purchasingGroup#5555506, isFallbackOrderOnly#5555507, orderProposalHorizonGroupingId#5555508L, splitIndicator#5555509L, previousOrderProposal#5555510L, clusterId#5555511L, worklistShardItemId#5555513L, orderProposalItemGroupId#5555514, externalProductId#5555515, externalPlantId#5555516, logisticUnits#5555517, orderQuantityBaseUom#5555518, orderQuantityBaseUomUuid#5555519, minimumOrderQuantity#5555520, constraintLabels#5555521, constraintOperators#5555522, constraintValues#5555523, constraintRanks#5555524, constraintIsActive#5555525, netPriceAmount#5555526, netPriceCurrencyCode#5555527, netPriceQuantity#5555528, netPriceQuantityUom#5555529, netPriceQuantityUomUuid#5555530, measurements#5555531, originalReplenishmentRunId#5555532L, optimizationGroups#5555533, shardId#5555534, sequenceId#5555512]
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#5555534), isnotnull(sequenceId#5555512), (shardId#5555534 = 0_1_10000001445), (sequenceId#5555512 = 8)]
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#5555490L, orderProposalItemId#5555491, supplierGroup#5555492, supplier#5555493, plant#5555494, deliveryDateTime#5555495, subrange#5555496, supplyingPlant#5555497, productGroup#5555498, product#5555499, orderDateTime#5555500, availabilityDateTime#5555501, nextAvailabilityDateTime#5555502, mrpController#5555503, sourceOfSupplyUuid#5555504, purchasingOrg#5555505, purchasingGroup#5555506, isFallbackOrderOnly#5555507, orderProposalHorizonGroupingId#5555508L, splitIndicator#5555509L, previousOrderProposal#5555510L, clusterId#5555511L, worklistShardItemId#5555513L, orderProposalItemGroupId#5555514, externalProductId#5555515, externalPlantId#5555516, logisticUnits#5555517, orderQuantityBaseUom#5555518, orderQuantityBaseUomUuid#5555519, minimumOrderQuantity#5555520, constraintLabels#5555521, constraintOperators#5555522, constraintValues#5555523, constraintRanks#5555524, constraintIsActive#5555525, netPriceAmount#5555526, netPriceCurrencyCode#5555527, netPriceQuantity#5555528, netPriceQuantityUom#5555529, netPriceQuantityUomUuid#5555530, measurements#5555531, originalReplenishmentRunId#5555532L, optimizationGroups#5555533, shardId#5555534, sequenceId#5555512]
(7) Filter [codegen id : 1]
Input [45]: [orderProposalId#5555490L, orderProposalItemId#5555491, supplierGroup#5555492, supplier#5555493, plant#5555494, deliveryDateTime#5555495, subrange#5555496, supplyingPlant#5555497, productGroup#5555498, product#5555499, orderDateTime#5555500, availabilityDateTime#5555501, nextAvailabilityDateTime#5555502, mrpController#5555503, sourceOfSupplyUuid#5555504, purchasingOrg#5555505, purchasingGroup#5555506, isFallbackOrderOnly#5555507, orderProposalHorizonGroupingId#5555508L, splitIndicator#5555509L, previousOrderProposal#5555510L, clusterId#5555511L, worklistShardItemId#5555513L, orderProposalItemGroupId#5555514, externalProductId#5555515, externalPlantId#5555516, logisticUnits#5555517, orderQuantityBaseUom#5555518, orderQuantityBaseUomUuid#5555519, minimumOrderQuantity#5555520, constraintLabels#5555521, constraintOperators#5555522, constraintValues#5555523, constraintRanks#5555524, constraintIsActive#5555525, netPriceAmount#5555526, netPriceCurrencyCode#5555527, netPriceQuantity#5555528, netPriceQuantityUom#5555529, netPriceQuantityUomUuid#5555530, measurements#5555531, originalReplenishmentRunId#5555532L, optimizationGroups#5555533, shardId#5555534, sequenceId#5555512]
Condition : ((isnotnull(availabilityDateTime#5555501) AND isnotnull(nextAvailabilityDateTime#5555502)) AND (nextAvailabilityDateTime#5555502 > availabilityDateTime#5555501))
(8) Project [codegen id : 1]
Output [44]: [orderProposalId#5555490L, orderProposalItemId#5555491, supplierGroup#5555492, supplier#5555493, plant#5555494, deliveryDateTime#5555495, subrange#5555496, supplyingPlant#5555497, productGroup#5555498, product#5555499, orderDateTime#5555500, availabilityDateTime#5555501, nextAvailabilityDateTime#5555502, mrpController#5555503, sourceOfSupplyUuid#5555504, purchasingOrg#5555505, purchasingGroup#5555506, isFallbackOrderOnly#5555507, orderProposalHorizonGroupingId#5555508L, splitIndicator#5555509L, previousOrderProposal#5555510L, clusterId#5555511L, sequenceId#5555512, worklistShardItemId#5555513L, orderProposalItemGroupId#5555514, externalProductId#5555515, externalPlantId#5555516, logisticUnits#5555517, orderQuantityBaseUom#5555518, orderQuantityBaseUomUuid#5555519, minimumOrderQuantity#5555520, constraintLabels#5555521, constraintOperators#5555522, constraintValues#5555523, constraintRanks#5555524, constraintIsActive#5555525, netPriceAmount#5555526, netPriceCurrencyCode#5555527, netPriceQuantity#5555528, netPriceQuantityUom#5555529, netPriceQuantityUomUuid#5555530, measurements#5555531, originalReplenishmentRunId#5555532L, optimizationGroups#5555533]
Input [45]: [orderProposalId#5555490L, orderProposalItemId#5555491, supplierGroup#5555492, supplier#5555493, plant#5555494, deliveryDateTime#5555495, subrange#5555496, supplyingPlant#5555497, productGroup#5555498, product#5555499, orderDateTime#5555500, availabilityDateTime#5555501, nextAvailabilityDateTime#5555502, mrpController#5555503, sourceOfSupplyUuid#5555504, purchasingOrg#5555505, purchasingGroup#5555506, isFallbackOrderOnly#5555507, orderProposalHorizonGroupingId#5555508L, splitIndicator#5555509L, previousOrderProposal#5555510L, clusterId#5555511L, worklistShardItemId#5555513L, orderProposalItemGroupId#5555514, externalProductId#5555515, externalPlantId#5555516, logisticUnits#5555517, orderQuantityBaseUom#5555518, orderQuantityBaseUomUuid#5555519, minimumOrderQuantity#5555520, constraintLabels#5555521, constraintOperators#5555522, constraintValues#5555523, constraintRanks#5555524, constraintIsActive#5555525, netPriceAmount#5555526, netPriceCurrencyCode#5555527, netPriceQuantity#5555528, netPriceQuantityUom#5555529, netPriceQuantityUomUuid#5555530, measurements#5555531, originalReplenishmentRunId#5555532L, optimizationGroups#5555533, shardId#5555534, sequenceId#5555512]
(9) Exchange
Input [44]: [orderProposalId#5555490L, orderProposalItemId#5555491, supplierGroup#5555492, supplier#5555493, plant#5555494, deliveryDateTime#5555495, subrange#5555496, supplyingPlant#5555497, productGroup#5555498, product#5555499, orderDateTime#5555500, availabilityDateTime#5555501, nextAvailabilityDateTime#5555502, mrpController#5555503, sourceOfSupplyUuid#5555504, purchasingOrg#5555505, purchasingGroup#5555506, isFallbackOrderOnly#5555507, orderProposalHorizonGroupingId#5555508L, splitIndicator#5555509L, previousOrderProposal#5555510L, clusterId#5555511L, sequenceId#5555512, worklistShardItemId#5555513L, orderProposalItemGroupId#5555514, externalProductId#5555515, externalPlantId#5555516, logisticUnits#5555517, orderQuantityBaseUom#5555518, orderQuantityBaseUomUuid#5555519, minimumOrderQuantity#5555520, constraintLabels#5555521, constraintOperators#5555522, constraintValues#5555523, constraintRanks#5555524, constraintIsActive#5555525, netPriceAmount#5555526, netPriceCurrencyCode#5555527, netPriceQuantity#5555528, netPriceQuantityUom#5555529, netPriceQuantityUomUuid#5555530, measurements#5555531, originalReplenishmentRunId#5555532L, optimizationGroups#5555533]
Arguments: hashpartitioning(worklistShardItemId#5555513L, 37), REPARTITION_BY_NUM, [plan_id=2879355]
(10) ShuffleQueryStage
Output [44]: [orderProposalId#5555490L, orderProposalItemId#5555491, supplierGroup#5555492, supplier#5555493, plant#5555494, deliveryDateTime#5555495, subrange#5555496, supplyingPlant#5555497, productGroup#5555498, product#5555499, orderDateTime#5555500, availabilityDateTime#5555501, nextAvailabilityDateTime#5555502, mrpController#5555503, sourceOfSupplyUuid#5555504, purchasingOrg#5555505, purchasingGroup#5555506, isFallbackOrderOnly#5555507, orderProposalHorizonGroupingId#5555508L, splitIndicator#5555509L, previousOrderProposal#5555510L, clusterId#5555511L, sequenceId#5555512, worklistShardItemId#5555513L, orderProposalItemGroupId#5555514, externalProductId#5555515, externalPlantId#5555516, logisticUnits#5555517, orderQuantityBaseUom#5555518, orderQuantityBaseUomUuid#5555519, minimumOrderQuantity#5555520, constraintLabels#5555521, constraintOperators#5555522, constraintValues#5555523, constraintRanks#5555524, constraintIsActive#5555525, netPriceAmount#5555526, netPriceCurrencyCode#5555527, netPriceQuantity#5555528, netPriceQuantityUom#5555529, netPriceQuantityUomUuid#5555530, measurements#5555531, originalReplenishmentRunId#5555532L, optimizationGroups#5555533]
Arguments: 0
(11) Project [codegen id : 2]
Output [45]: [0_1_10000001445 AS shardId#5555445, worklistShardItemId#5555513L, orderProposalId#5555490L, orderProposalItemId#5555491, orderProposalItemGroupId#5555514, originalReplenishmentRunId#5555532L, orderProposalHorizonGroupingId#5555508L, splitIndicator#5555509L, previousOrderProposal#5555510L, clusterId#5555511L, cast(sequenceId#5555512 as bigint) AS sequenceId#5555455L, sourceOfSupplyUuid#5555504, supplierGroup#5555492, supplier#5555493, subrange#5555496, product#5555499, plant#5555494, purchasingOrg#5555505, purchasingGroup#5555506, mrpController#5555503, orderDateTime#5555500, deliveryDateTime#5555495, availabilityDateTime#5555501, nextAvailabilityDateTime#5555502, isFallbackOrderOnly#5555507, orderQuantityBaseUom#5555518, orderQuantityBaseUomUuid#5555519, netPriceQuantity#5555528, netPriceQuantityUom#5555529, netPriceQuantityUomUuid#5555530, netPriceAmount#5555526, netPriceCurrencyCode#5555527, measurements#5555531, minimumOrderQuantity#5555520, constraintLabels#5555521, constraintOperators#5555522, constraintRanks#5555524, constraintValues#5555523, constraintIsActive#5555525, logisticUnits#5555517, optimizationGroups#5555533, externalProductId#5555515, externalPlantId#5555516, supplyingPlant#5555497, productGroup#5555498]
Input [44]: [orderProposalId#5555490L, orderProposalItemId#5555491, supplierGroup#5555492, supplier#5555493, plant#5555494, deliveryDateTime#5555495, subrange#5555496, supplyingPlant#5555497, productGroup#5555498, product#5555499, orderDateTime#5555500, availabilityDateTime#5555501, nextAvailabilityDateTime#5555502, mrpController#5555503, sourceOfSupplyUuid#5555504, purchasingOrg#5555505, purchasingGroup#5555506, isFallbackOrderOnly#5555507, orderProposalHorizonGroupingId#5555508L, splitIndicator#5555509L, previousOrderProposal#5555510L, clusterId#5555511L, sequenceId#5555512, worklistShardItemId#5555513L, orderProposalItemGroupId#5555514, externalProductId#5555515, externalPlantId#5555516, logisticUnits#5555517, orderQuantityBaseUom#5555518, orderQuantityBaseUomUuid#5555519, minimumOrderQuantity#5555520, constraintLabels#5555521, constraintOperators#5555522, constraintValues#5555523, constraintRanks#5555524, constraintIsActive#5555525, netPriceAmount#5555526, netPriceCurrencyCode#5555527, netPriceQuantity#5555528, netPriceQuantityUom#5555529, netPriceQuantityUomUuid#5555530, measurements#5555531, originalReplenishmentRunId#5555532L, optimizationGroups#5555533]
(12) ResultQueryStage
Output [45]: [shardId#5555445, worklistShardItemId#5555513L, orderProposalId#5555490L, orderProposalItemId#5555491, orderProposalItemGroupId#5555514, originalReplenishmentRunId#5555532L, orderProposalHorizonGroupingId#5555508L, splitIndicator#5555509L, previousOrderProposal#5555510L, clusterId#5555511L, sequenceId#5555455L, sourceOfSupplyUuid#5555504, supplierGroup#5555492, supplier#5555493, subrange#5555496, product#5555499, plant#5555494, purchasingOrg#5555505, purchasingGroup#5555506, mrpController#5555503, orderDateTime#5555500, deliveryDateTime#5555495, availabilityDateTime#5555501, nextAvailabilityDateTime#5555502, isFallbackOrderOnly#5555507, orderQuantityBaseUom#5555518, orderQuantityBaseUomUuid#5555519, netPriceQuantity#5555528, netPriceQuantityUom#5555529, netPriceQuantityUomUuid#5555530, netPriceAmount#5555526, netPriceCurrencyCode#5555527, measurements#5555531, minimumOrderQuantity#5555520, constraintLabels#5555521, constraintOperators#5555522, constraintRanks#5555524, constraintValues#5555523, constraintIsActive#5555525, logisticUnits#5555517, optimizationGroups#5555533, externalProductId#5555515, externalPlantId#5555516, supplyingPlant#5555497, productGroup#5555498]
Arguments: 1
(13) Filter
Input [45]: [orderProposalId#5555490L, orderProposalItemId#5555491, supplierGroup#5555492, supplier#5555493, plant#5555494, deliveryDateTime#5555495, subrange#5555496, supplyingPlant#5555497, productGroup#5555498, product#5555499, orderDateTime#5555500, availabilityDateTime#5555501, nextAvailabilityDateTime#5555502, mrpController#5555503, sourceOfSupplyUuid#5555504, purchasingOrg#5555505, purchasingGroup#5555506, isFallbackOrderOnly#5555507, orderProposalHorizonGroupingId#5555508L, splitIndicator#5555509L, previousOrderProposal#5555510L, clusterId#5555511L, worklistShardItemId#5555513L, orderProposalItemGroupId#5555514, externalProductId#5555515, externalPlantId#5555516, logisticUnits#5555517, orderQuantityBaseUom#5555518, orderQuantityBaseUomUuid#5555519, minimumOrderQuantity#5555520, constraintLabels#5555521, constraintOperators#5555522, constraintValues#5555523, constraintRanks#5555524, constraintIsActive#5555525, netPriceAmount#5555526, netPriceCurrencyCode#5555527, netPriceQuantity#5555528, netPriceQuantityUom#5555529, netPriceQuantityUomUuid#5555530, measurements#5555531, originalReplenishmentRunId#5555532L, optimizationGroups#5555533, shardId#5555534, sequenceId#5555512]
Condition : ((isnotnull(availabilityDateTime#5555501) AND isnotnull(nextAvailabilityDateTime#5555502)) AND (nextAvailabilityDateTime#5555502 > availabilityDateTime#5555501))
(14) Project
Output [44]: [orderProposalId#5555490L, orderProposalItemId#5555491, supplierGroup#5555492, supplier#5555493, plant#5555494, deliveryDateTime#5555495, subrange#5555496, supplyingPlant#5555497, productGroup#5555498, product#5555499, orderDateTime#5555500, availabilityDateTime#5555501, nextAvailabilityDateTime#5555502, mrpController#5555503, sourceOfSupplyUuid#5555504, purchasingOrg#5555505, purchasingGroup#5555506, isFallbackOrderOnly#5555507, orderProposalHorizonGroupingId#5555508L, splitIndicator#5555509L, previousOrderProposal#5555510L, clusterId#5555511L, sequenceId#5555512, worklistShardItemId#5555513L, orderProposalItemGroupId#5555514, externalProductId#5555515, externalPlantId#5555516, logisticUnits#5555517, orderQuantityBaseUom#5555518, orderQuantityBaseUomUuid#5555519, minimumOrderQuantity#5555520, constraintLabels#5555521, constraintOperators#5555522, constraintValues#5555523, constraintRanks#5555524, constraintIsActive#5555525, netPriceAmount#5555526, netPriceCurrencyCode#5555527, netPriceQuantity#5555528, netPriceQuantityUom#5555529, netPriceQuantityUomUuid#5555530, measurements#5555531, originalReplenishmentRunId#5555532L, optimizationGroups#5555533]
Input [45]: [orderProposalId#5555490L, orderProposalItemId#5555491, supplierGroup#5555492, supplier#5555493, plant#5555494, deliveryDateTime#5555495, subrange#5555496, supplyingPlant#5555497, productGroup#5555498, product#5555499, orderDateTime#5555500, availabilityDateTime#5555501, nextAvailabilityDateTime#5555502, mrpController#5555503, sourceOfSupplyUuid#5555504, purchasingOrg#5555505, purchasingGroup#5555506, isFallbackOrderOnly#5555507, orderProposalHorizonGroupingId#5555508L, splitIndicator#5555509L, previousOrderProposal#5555510L, clusterId#5555511L, worklistShardItemId#5555513L, orderProposalItemGroupId#5555514, externalProductId#5555515, externalPlantId#5555516, logisticUnits#5555517, orderQuantityBaseUom#5555518, orderQuantityBaseUomUuid#5555519, minimumOrderQuantity#5555520, constraintLabels#5555521, constraintOperators#5555522, constraintValues#5555523, constraintRanks#5555524, constraintIsActive#5555525, netPriceAmount#5555526, netPriceCurrencyCode#5555527, netPriceQuantity#5555528, netPriceQuantityUom#5555529, netPriceQuantityUomUuid#5555530, measurements#5555531, originalReplenishmentRunId#5555532L, optimizationGroups#5555533, shardId#5555534, sequenceId#5555512]
(15) Exchange
Input [44]: [orderProposalId#5555490L, orderProposalItemId#5555491, supplierGroup#5555492, supplier#5555493, plant#5555494, deliveryDateTime#5555495, subrange#5555496, supplyingPlant#5555497, productGroup#5555498, product#5555499, orderDateTime#5555500, availabilityDateTime#5555501, nextAvailabilityDateTime#5555502, mrpController#5555503, sourceOfSupplyUuid#5555504, purchasingOrg#5555505, purchasingGroup#5555506, isFallbackOrderOnly#5555507, orderProposalHorizonGroupingId#5555508L, splitIndicator#5555509L, previousOrderProposal#5555510L, clusterId#5555511L, sequenceId#5555512, worklistShardItemId#5555513L, orderProposalItemGroupId#5555514, externalProductId#5555515, externalPlantId#5555516, logisticUnits#5555517, orderQuantityBaseUom#5555518, orderQuantityBaseUomUuid#5555519, minimumOrderQuantity#5555520, constraintLabels#5555521, constraintOperators#5555522, constraintValues#5555523, constraintRanks#5555524, constraintIsActive#5555525, netPriceAmount#5555526, netPriceCurrencyCode#5555527, netPriceQuantity#5555528, netPriceQuantityUom#5555529, netPriceQuantityUomUuid#5555530, measurements#5555531, originalReplenishmentRunId#5555532L, optimizationGroups#5555533]
Arguments: hashpartitioning(worklistShardItemId#5555513L, 37), REPARTITION_BY_NUM, [plan_id=2879327]
(16) Project
Output [45]: [0_1_10000001445 AS shardId#5555445, worklistShardItemId#5555513L, orderProposalId#5555490L, orderProposalItemId#5555491, orderProposalItemGroupId#5555514, originalReplenishmentRunId#5555532L, orderProposalHorizonGroupingId#5555508L, splitIndicator#5555509L, previousOrderProposal#5555510L, clusterId#5555511L, cast(sequenceId#5555512 as bigint) AS sequenceId#5555455L, sourceOfSupplyUuid#5555504, supplierGroup#5555492, supplier#5555493, subrange#5555496, product#5555499, plant#5555494, purchasingOrg#5555505, purchasingGroup#5555506, mrpController#5555503, orderDateTime#5555500, deliveryDateTime#5555495, availabilityDateTime#5555501, nextAvailabilityDateTime#5555502, isFallbackOrderOnly#5555507, orderQuantityBaseUom#5555518, orderQuantityBaseUomUuid#5555519, netPriceQuantity#5555528, netPriceQuantityUom#5555529, netPriceQuantityUomUuid#5555530, netPriceAmount#5555526, netPriceCurrencyCode#5555527, measurements#5555531, minimumOrderQuantity#5555520, constraintLabels#5555521, constraintOperators#5555522, constraintRanks#5555524, constraintValues#5555523, constraintIsActive#5555525, logisticUnits#5555517, optimizationGroups#5555533, externalProductId#5555515, externalPlantId#5555516, supplyingPlant#5555497, productGroup#5555498]
Input [44]: [orderProposalId#5555490L, orderProposalItemId#5555491, supplierGroup#5555492, supplier#5555493, plant#5555494, deliveryDateTime#5555495, subrange#5555496, supplyingPlant#5555497, productGroup#5555498, product#5555499, orderDateTime#5555500, availabilityDateTime#5555501, nextAvailabilityDateTime#5555502, mrpController#5555503, sourceOfSupplyUuid#5555504, purchasingOrg#5555505, purchasingGroup#5555506, isFallbackOrderOnly#5555507, orderProposalHorizonGroupingId#5555508L, splitIndicator#5555509L, previousOrderProposal#5555510L, clusterId#5555511L, sequenceId#5555512, worklistShardItemId#5555513L, orderProposalItemGroupId#5555514, externalProductId#5555515, externalPlantId#5555516, logisticUnits#5555517, orderQuantityBaseUom#5555518, orderQuantityBaseUomUuid#5555519, minimumOrderQuantity#5555520, constraintLabels#5555521, constraintOperators#5555522, constraintValues#5555523, constraintRanks#5555524, constraintIsActive#5555525, netPriceAmount#5555526, netPriceCurrencyCode#5555527, netPriceQuantity#5555528, netPriceQuantityUom#5555529, netPriceQuantityUomUuid#5555530, measurements#5555531, originalReplenishmentRunId#5555532L, optimizationGroups#5555533]
(17) AdaptiveSparkPlan
Output [45]: [shardId#5555445, worklistShardItemId#5555513L, orderProposalId#5555490L, orderProposalItemId#5555491, orderProposalItemGroupId#5555514, originalReplenishmentRunId#5555532L, orderProposalHorizonGroupingId#5555508L, splitIndicator#5555509L, previousOrderProposal#5555510L, clusterId#5555511L, sequenceId#5555455L, sourceOfSupplyUuid#5555504, supplierGroup#5555492, supplier#5555493, subrange#5555496, product#5555499, plant#5555494, purchasingOrg#5555505, purchasingGroup#5555506, mrpController#5555503, orderDateTime#5555500, deliveryDateTime#5555495, availabilityDateTime#5555501, nextAvailabilityDateTime#5555502, isFallbackOrderOnly#5555507, orderQuantityBaseUom#5555518, orderQuantityBaseUomUuid#5555519, netPriceQuantity#5555528, netPriceQuantityUom#5555529, netPriceQuantityUomUuid#5555530, netPriceAmount#5555526, netPriceCurrencyCode#5555527, measurements#5555531, minimumOrderQuantity#5555520, constraintLabels#5555521, constraintOperators#5555522, constraintRanks#5555524, constraintValues#5555523, constraintIsActive#5555525, logisticUnits#5555517, optimizationGroups#5555533, externalProductId#5555515, externalPlantId#5555516, supplyingPlant#5555497, productGroup#5555498]
Arguments: isFinalPlan=true
(18) TableCacheQueryStage
Output [3]: [shardId#5555445, worklistShardItemId#5555446L, orderProposalId#5555447L]
Arguments: 0
(19) Filter [codegen id : 1]
Input [3]: [shardId#5555445, worklistShardItemId#5555446L, orderProposalId#5555447L]
Condition : (isnotnull(shardId#5555445) AND isnotnull(orderProposalId#5555447L))
(20) ObjectHashAggregate
Input [3]: [shardId#5555445, worklistShardItemId#5555446L, orderProposalId#5555447L]
Keys [2]: [shardId#5555445, orderProposalId#5555447L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#5555446L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#5562528]
Results [3]: [shardId#5555445, orderProposalId#5555447L, buf#5562529]
(21) Exchange
Input [3]: [shardId#5555445, orderProposalId#5555447L, buf#5562529]
Arguments: hashpartitioning(shardId#5555445, orderProposalId#5555447L, 37), ENSURE_REQUIREMENTS, [plan_id=2879918]
(22) ShuffleQueryStage [codegen id : 7]
Output [3]: [shardId#5555445, orderProposalId#5555447L, buf#5562529]
Arguments: 2
(23) AQEShuffleRead [codegen id : 7]
Input [3]: [shardId#5555445, orderProposalId#5555447L, buf#5562529]
Arguments: coalesced
(24) ObjectHashAggregate [codegen id : 7]
Input [3]: [shardId#5555445, orderProposalId#5555447L, buf#5562529]
Keys [2]: [shardId#5555445, orderProposalId#5555447L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#5555446L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#5555446L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#5561024]
Results [7]: [shardId#5555445, orderProposalId#5555447L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#5555446L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#5561024, lambdafunction(struct(worklistShardItemId, lambda x_10994#5561045.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_10994#5561045.quantityAfterProdPlantOptimization, qty, lambda x_10994#5561045.optimalQuantity), lambda x_10994#5561045, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#5561046, [] AS optimizationGroups#5561040, false AS isOptimal#5561025, 2026-07-21 20:53:18.826414 AS lastModified#5561044, [] AS optimizationInsights#5561041]
(25) Union
(26) Scan ExistingRDD [codegen id : 3]
Output [7]: [shardId#5561056, orderProposalId#5561057L, items#5561058, optimizationGroups#5561059, isOptimal#5561060, lastModified#5561061, optimizationInsights#5561062]
Arguments: [shardId#5561056, orderProposalId#5561057L, items#5561058, optimizationGroups#5561059, isOptimal#5561060, lastModified#5561061, optimizationInsights#5561062], MapPartitionsRDD[391409] at createDataFrame at OptimalQuantitiesCacheImpl.java:214, ExistingRDD, UnknownPartitioning(0)
(27) Filter [codegen id : 3]
Input [7]: [shardId#5561056, orderProposalId#5561057L, items#5561058, optimizationGroups#5561059, isOptimal#5561060, lastModified#5561061, optimizationInsights#5561062]
Condition : (isnotnull(shardId#5561056) AND isnotnull(orderProposalId#5561057L))
(28) Project [codegen id : 3]
Output [3]: [shardId#5561056, orderProposalId#5561057L, lastModified#5561061]
Input [7]: [shardId#5561056, orderProposalId#5561057L, items#5561058, optimizationGroups#5561059, isOptimal#5561060, lastModified#5561061, optimizationInsights#5561062]
(29) InMemoryTableScan
Output [2]: [shardId#5561063, orderProposalId#5561065L]
Arguments: [shardId#5561063, orderProposalId#5561065L], [isnotnull(shardId#5561063), isnotnull(orderProposalId#5561065L)]
(30) InMemoryRelation
Arguments: [shardId#5561063, worklistShardItemId#5561064L, orderProposalId#5561065L, orderProposalItemId#5561066, orderProposalItemGroupId#5561067, originalReplenishmentRunId#5561068L, orderProposalHorizonGroupingId#5561069L, splitIndicator#5561070L, previousOrderProposal#5561071L, clusterId#5561072L, sequenceId#5561073L, sourceOfSupplyUuid#5561074, supplierGroup#5561075, supplier#5561076, subrange#5561077, product#5561078, plant#5561079, purchasingOrg#5561080, purchasingGroup#5561081, mrpController#5561082, orderDateTime#5561083, deliveryDateTime#5561084, availabilityDateTime#5561085, nextAvailabilityDateTime#5561086, isFallbackOrderOnly#5561087, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(31) TableCacheQueryStage
Output [2]: [shardId#5561063, orderProposalId#5561065L]
Arguments: 1
(32) Filter [codegen id : 2]
Input [2]: [shardId#5561063, orderProposalId#5561065L]
Condition : (isnotnull(shardId#5561063) AND isnotnull(orderProposalId#5561065L))
(33) HashAggregate [codegen id : 2]
Input [2]: [shardId#5561063, orderProposalId#5561065L]
Keys [2]: [shardId#5561063, orderProposalId#5561065L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#5561063, orderProposalId#5561065L]
(34) Exchange
Input [2]: [shardId#5561063, orderProposalId#5561065L]
Arguments: hashpartitioning(shardId#5561063, orderProposalId#5561065L, 37), ENSURE_REQUIREMENTS, [plan_id=2879954]
(35) ShuffleQueryStage
Output [2]: [shardId#5561063, orderProposalId#5561065L]
Arguments: 3
(36) AQEShuffleRead
Input [2]: [shardId#5561063, orderProposalId#5561065L]
Arguments: coalesced
(37) HashAggregate [codegen id : 4]
Input [2]: [shardId#5561063, orderProposalId#5561065L]
Keys [2]: [shardId#5561063, orderProposalId#5561065L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#5561063, orderProposalId#5561065L, 2026-07-21 20:53:18.826414 AS lastModified#5561160]
(38) Union
(39) HashAggregate [codegen id : 5]
Input [3]: [shardId#5561056, orderProposalId#5561057L, lastModified#5561061]
Keys [2]: [shardId#5561056, orderProposalId#5561057L]
Functions [1]: [partial_max(lastModified#5561061)]
Aggregate Attributes [1]: [max#5562530]
Results [3]: [shardId#5561056, orderProposalId#5561057L, max#5562531]
(40) Exchange
Input [3]: [shardId#5561056, orderProposalId#5561057L, max#5562531]
Arguments: hashpartitioning(shardId#5561056, orderProposalId#5561057L, 37), ENSURE_REQUIREMENTS, [plan_id=2880058]
(41) ShuffleQueryStage
Output [3]: [shardId#5561056, orderProposalId#5561057L, max#5562531]
Arguments: 4
(42) AQEShuffleRead
Input [3]: [shardId#5561056, orderProposalId#5561057L, max#5562531]
Arguments: coalesced
(43) HashAggregate [codegen id : 6]
Input [3]: [shardId#5561056, orderProposalId#5561057L, max#5562531]
Keys [2]: [shardId#5561056, orderProposalId#5561057L]
Functions [1]: [max(lastModified#5561061)]
Aggregate Attributes [1]: [max(lastModified#5561061)#5561055]
Results [3]: [shardId#5561056, orderProposalId#5561057L, max(lastModified#5561061)#5561055 AS lastModified#5561047]
(44) Filter [codegen id : 6]
Input [3]: [shardId#5561056, orderProposalId#5561057L, lastModified#5561047]
Condition : isnotnull(lastModified#5561047)
(45) BroadcastExchange
Input [3]: [shardId#5561056, orderProposalId#5561057L, lastModified#5561047]
Arguments: HashedRelationBroadcastMode(List(input[0, string, true], input[1, bigint, true], input[2, timestamp, false]),false), [plan_id=2880121]
(46) BroadcastQueryStage
Output [3]: [shardId#5561056, orderProposalId#5561057L, lastModified#5561047]
Arguments: 5
(47) BroadcastHashJoin [codegen id : 8]
Left keys [3]: [shardId#5561033, orderProposalId#5561034L, lastModified#5561038]
Right keys [3]: [shardId#5561056, orderProposalId#5561057L, lastModified#5561047]
Join type: Inner
Join condition: None
(48) Project [codegen id : 8]
Output [7]: [shardId#5561033, orderProposalId#5561034L, items#5561035, optimizationGroups#5561036, isOptimal#5561037, lastModified#5561038, optimizationInsights#5561039]
Input [10]: [shardId#5561033, orderProposalId#5561034L, items#5561035, optimizationGroups#5561036, isOptimal#5561037, lastModified#5561038, optimizationInsights#5561039, shardId#5561056, orderProposalId#5561057L, lastModified#5561047]
(49) DeserializeToObject
Input [7]: [shardId#5561033, orderProposalId#5561034L, items#5561035, optimizationGroups#5561036, isOptimal#5561037, lastModified#5561038, optimizationInsights#5561039]
Arguments: createexternalrow(invoke(shardId#5561033.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#5561034L)), 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#5561035, 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#5561036, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#5561037)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#5561038)), 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#5561039, 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#5561177: org.apache.spark.sql.Row
(50) ResultQueryStage
Output [1]: [obj#5561177]
Arguments: 6
(51) Scan ExistingRDD
Output [7]: [shardId#5561033, orderProposalId#5561034L, items#5561035, optimizationGroups#5561036, isOptimal#5561037, lastModified#5561038, optimizationInsights#5561039]
Arguments: [shardId#5561033, orderProposalId#5561034L, items#5561035, optimizationGroups#5561036, isOptimal#5561037, lastModified#5561038, optimizationInsights#5561039], MapPartitionsRDD[391409] at createDataFrame at OptimalQuantitiesCacheImpl.java:214, ExistingRDD, UnknownPartitioning(0)
(52) Filter
Input [7]: [shardId#5561033, orderProposalId#5561034L, items#5561035, optimizationGroups#5561036, isOptimal#5561037, lastModified#5561038, optimizationInsights#5561039]
Condition : ((isnotnull(shardId#5561033) AND isnotnull(orderProposalId#5561034L)) AND isnotnull(lastModified#5561038))
(53) Filter
Input [3]: [shardId#5555445, worklistShardItemId#5555446L, orderProposalId#5555447L]
Condition : (isnotnull(shardId#5555445) AND isnotnull(orderProposalId#5555447L))
(54) ObjectHashAggregate
Input [3]: [shardId#5555445, worklistShardItemId#5555446L, orderProposalId#5555447L]
Keys [2]: [shardId#5555445, orderProposalId#5555447L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#5555446L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#5562528]
Results [3]: [shardId#5555445, orderProposalId#5555447L, buf#5562529]
(55) Exchange
Input [3]: [shardId#5555445, orderProposalId#5555447L, buf#5562529]
Arguments: hashpartitioning(shardId#5555445, orderProposalId#5555447L, 37), ENSURE_REQUIREMENTS, [plan_id=2879747]
(56) ObjectHashAggregate
Input [3]: [shardId#5555445, orderProposalId#5555447L, buf#5562529]
Keys [2]: [shardId#5555445, orderProposalId#5555447L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#5555446L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#5555446L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#5561024]
Results [7]: [shardId#5555445, orderProposalId#5555447L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#5555446L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#5561024, lambdafunction(struct(worklistShardItemId, lambda x_10994#5561045.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_10994#5561045.quantityAfterProdPlantOptimization, qty, lambda x_10994#5561045.optimalQuantity), lambda x_10994#5561045, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#5561046, [] AS optimizationGroups#5561040, false AS isOptimal#5561025, 2026-07-21 20:53:18.826414 AS lastModified#5561044, [] AS optimizationInsights#5561041]
(57) Union
(58) Exchange
Input [7]: [shardId#5561033, orderProposalId#5561034L, items#5561035, optimizationGroups#5561036, isOptimal#5561037, lastModified#5561038, optimizationInsights#5561039]
Arguments: hashpartitioning(shardId#5561033, orderProposalId#5561034L, lastModified#5561038, 37), ENSURE_REQUIREMENTS, [plan_id=2879760]
(59) Sort
Input [7]: [shardId#5561033, orderProposalId#5561034L, items#5561035, optimizationGroups#5561036, isOptimal#5561037, lastModified#5561038, optimizationInsights#5561039]
Arguments: [shardId#5561033 ASC NULLS FIRST, orderProposalId#5561034L ASC NULLS FIRST, lastModified#5561038 ASC NULLS FIRST], false, 0
(60) Filter
Input [2]: [shardId#5561063, orderProposalId#5561065L]
Condition : (isnotnull(shardId#5561063) AND isnotnull(orderProposalId#5561065L))
(61) HashAggregate
Input [2]: [shardId#5561063, orderProposalId#5561065L]
Keys [2]: [shardId#5561063, orderProposalId#5561065L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#5561063, orderProposalId#5561065L]
(62) Exchange
Input [2]: [shardId#5561063, orderProposalId#5561065L]
Arguments: hashpartitioning(shardId#5561063, orderProposalId#5561065L, 37), ENSURE_REQUIREMENTS, [plan_id=2879750]
(63) HashAggregate
Input [2]: [shardId#5561063, orderProposalId#5561065L]
Keys [2]: [shardId#5561063, orderProposalId#5561065L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#5561063, orderProposalId#5561065L, 2026-07-21 20:53:18.826414 AS lastModified#5561160]
(64) Union
(65) HashAggregate
Input [3]: [shardId#5561056, orderProposalId#5561057L, lastModified#5561061]
Keys [2]: [shardId#5561056, orderProposalId#5561057L]
Functions [1]: [partial_max(lastModified#5561061)]
Aggregate Attributes [1]: [max#5562530]
Results [3]: [shardId#5561056, orderProposalId#5561057L, max#5562531]
(66) Exchange
Input [3]: [shardId#5561056, orderProposalId#5561057L, max#5562531]
Arguments: hashpartitioning(shardId#5561056, orderProposalId#5561057L, 37), ENSURE_REQUIREMENTS, [plan_id=2879755]
(67) HashAggregate
Input [3]: [shardId#5561056, orderProposalId#5561057L, max#5562531]
Keys [2]: [shardId#5561056, orderProposalId#5561057L]
Functions [1]: [max(lastModified#5561061)]
Aggregate Attributes [1]: [max(lastModified#5561061)#5561055]
Results [3]: [shardId#5561056, orderProposalId#5561057L, max(lastModified#5561061)#5561055 AS lastModified#5561047]
(68) Filter
Input [3]: [shardId#5561056, orderProposalId#5561057L, lastModified#5561047]
Condition : isnotnull(lastModified#5561047)
(69) Exchange
Input [3]: [shardId#5561056, orderProposalId#5561057L, lastModified#5561047]
Arguments: hashpartitioning(shardId#5561056, orderProposalId#5561057L, lastModified#5561047, 37), ENSURE_REQUIREMENTS, [plan_id=2879761]
(70) Sort
Input [3]: [shardId#5561056, orderProposalId#5561057L, lastModified#5561047]
Arguments: [shardId#5561056 ASC NULLS FIRST, orderProposalId#5561057L ASC NULLS FIRST, lastModified#5561047 ASC NULLS FIRST], false, 0
(71) SortMergeJoin
Left keys [3]: [shardId#5561033, orderProposalId#5561034L, lastModified#5561038]
Right keys [3]: [shardId#5561056, orderProposalId#5561057L, lastModified#5561047]
Join type: Inner
Join condition: None
(72) Project
Output [7]: [shardId#5561033, orderProposalId#5561034L, items#5561035, optimizationGroups#5561036, isOptimal#5561037, lastModified#5561038, optimizationInsights#5561039]
Input [10]: [shardId#5561033, orderProposalId#5561034L, items#5561035, optimizationGroups#5561036, isOptimal#5561037, lastModified#5561038, optimizationInsights#5561039, shardId#5561056, orderProposalId#5561057L, lastModified#5561047]
(73) DeserializeToObject
Input [7]: [shardId#5561033, orderProposalId#5561034L, items#5561035, optimizationGroups#5561036, isOptimal#5561037, lastModified#5561038, optimizationInsights#5561039]
Arguments: createexternalrow(invoke(shardId#5561033.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#5561034L)), 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#5561035, 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#5561036, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#5561037)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#5561038)), 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#5561039, 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#5561177: org.apache.spark.sql.Row
(74) AdaptiveSparkPlan
Output [1]: [obj#5561177]
Arguments: isFinalPlan=true