== Physical Plan ==
AdaptiveSparkPlan (75)
+- == Final Plan ==
ResultQueryStage (53), Statistics(sizeInBytes=8.0 EiB)
+- DeserializeToObject (52)
+- * Project (51)
+- * BroadcastHashJoin Inner BuildRight (50)
:- AQEShuffleRead (28)
: +- ShuffleQueryStage (27), Statistics(sizeInBytes=688.0 B, rowCount=4)
: +- Exchange (26)
: +- Union (25)
: :- * Filter (2)
: : +- * Scan ExistingRDD (1)
: +- ObjectHashAggregate (24)
: +- AQEShuffleRead (23)
: +- ShuffleQueryStage (22), Statistics(sizeInBytes=720.0 B, rowCount=6)
: +- Exchange (21)
: +- ObjectHashAggregate (20)
: +- * Filter (19)
: +- TableCacheQueryStage (18), Statistics(sizeInBytes=9.5 KiB, rowCount=6)
: +- InMemoryTableScan (3)
: +- InMemoryRelation (4)
: +- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=10.4 KiB, rowCount=6)
+- Exchange (9)
+- * Project (8)
+- * Filter (7)
+- * ColumnarToRow (6)
+- Scan parquet (5)
+- == Initial Plan ==
Project (16)
+- Exchange (15)
+- Project (14)
+- Filter (13)
+- Scan parquet (5)
+- BroadcastQueryStage (49), Statistics(sizeInBytes=2.0 MiB, rowCount=4)
+- BroadcastExchange (48)
+- * Filter (47)
+- * HashAggregate (46)
+- AQEShuffleRead (45)
+- ShuffleQueryStage (44), Statistics(sizeInBytes=192.0 B, rowCount=4)
+- Exchange (43)
+- * HashAggregate (42)
+- Union (41)
:- * Project (31)
: +- * Filter (30)
: +- * Scan ExistingRDD (29)
+- * HashAggregate (40)
+- AQEShuffleRead (39)
+- ShuffleQueryStage (38), Statistics(sizeInBytes=240.0 B, rowCount=6)
+- Exchange (37)
+- * HashAggregate (36)
+- * Filter (35)
+- TableCacheQueryStage (34), Statistics(sizeInBytes=9.5 KiB, rowCount=6)
+- InMemoryTableScan (32)
+- InMemoryRelation (33)
+- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=10.4 KiB, rowCount=6)
+- Exchange (9)
+- * Project (8)
+- * Filter (7)
+- * ColumnarToRow (6)
+- Scan parquet (5)
+- == Initial Plan ==
Project (16)
+- Exchange (15)
+- Project (14)
+- Filter (13)
+- Scan parquet (5)
+- == Initial Plan ==
DeserializeToObject (74)
+- Project (73)
+- SortMergeJoin Inner (72)
:- Sort (60)
: +- Exchange (59)
: +- Union (58)
: :- Filter (2)
: : +- Scan ExistingRDD (1)
: +- ObjectHashAggregate (57)
: +- Exchange (56)
: +- ObjectHashAggregate (55)
: +- Filter (54)
: +- InMemoryTableScan (3)
: +- InMemoryRelation (4)
: +- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=10.4 KiB, rowCount=6)
+- Exchange (9)
+- * Project (8)
+- * Filter (7)
+- * ColumnarToRow (6)
+- Scan parquet (5)
+- == Initial Plan ==
Project (16)
+- Exchange (15)
+- Project (14)
+- Filter (13)
+- Scan parquet (5)
+- Sort (71)
+- Exchange (70)
+- Filter (69)
+- HashAggregate (68)
+- Exchange (67)
+- HashAggregate (66)
+- Union (65)
:- Project (31)
: +- Filter (30)
: +- Scan ExistingRDD (29)
+- HashAggregate (64)
+- Exchange (63)
+- HashAggregate (62)
+- Filter (61)
+- InMemoryTableScan (32)
+- InMemoryRelation (33)
+- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=10.4 KiB, rowCount=6)
+- Exchange (9)
+- * Project (8)
+- * Filter (7)
+- * ColumnarToRow (6)
+- Scan parquet (5)
+- == Initial Plan ==
Project (16)
+- Exchange (15)
+- Project (14)
+- Filter (13)
+- Scan parquet (5)
(1) Scan ExistingRDD [codegen id : 3]
Output [7]: [shardId#864292, orderProposalId#864293L, items#864294, optimizationGroups#864295, isOptimal#864296, lastModified#864297, optimizationInsights#864298]
Arguments: [shardId#864292, orderProposalId#864293L, items#864294, optimizationGroups#864295, isOptimal#864296, lastModified#864297, optimizationInsights#864298], MapPartitionsRDD[40383] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(2) Filter [codegen id : 3]
Input [7]: [shardId#864292, orderProposalId#864293L, items#864294, optimizationGroups#864295, isOptimal#864296, lastModified#864297, optimizationInsights#864298]
Condition : ((isnotnull(shardId#864292) AND isnotnull(orderProposalId#864293L)) AND isnotnull(lastModified#864297))
(3) InMemoryTableScan
Output [3]: [shardId#859038, worklistShardItemId#859039L, orderProposalId#859040L]
Arguments: [shardId#859038, worklistShardItemId#859039L, orderProposalId#859040L], [isnotnull(shardId#859038), isnotnull(orderProposalId#859040L)]
(4) InMemoryRelation
Arguments: [shardId#859038, worklistShardItemId#859039L, orderProposalId#859040L, orderProposalItemId#859041, orderProposalItemGroupId#859042, originalReplenishmentRunId#859043L, orderProposalHorizonGroupingId#859044L, splitIndicator#859045L, previousOrderProposal#859046L, clusterId#859047L, sequenceId#859048L, sourceOfSupplyUuid#859049, supplierGroup#859050, supplier#859051, subrange#859052, product#859053, plant#859054, purchasingOrg#859055, purchasingGroup#859056, mrpController#859057, orderDateTime#859058, deliveryDateTime#859059, availabilityDateTime#859060, nextAvailabilityDateTime#859061, isFallbackOrderOnly#859062, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(5) Scan parquet
Output [45]: [orderProposalId#859083L, orderProposalItemId#859084, supplierGroup#859085, supplier#859086, plant#859087, deliveryDateTime#859088, subrange#859089, supplyingPlant#859090, productGroup#859091, product#859092, orderDateTime#859093, availabilityDateTime#859094, nextAvailabilityDateTime#859095, mrpController#859096, sourceOfSupplyUuid#859097, purchasingOrg#859098, purchasingGroup#859099, isFallbackOrderOnly#859100, orderProposalHorizonGroupingId#859101L, splitIndicator#859102L, previousOrderProposal#859103L, clusterId#859104L, worklistShardItemId#859106L, orderProposalItemGroupId#859107, externalProductId#859108, externalPlantId#859109, logisticUnits#859110, orderQuantityBaseUom#859111, orderQuantityBaseUomUuid#859112, minimumOrderQuantity#859113, constraintLabels#859114, constraintOperators#859115, constraintValues#859116, constraintRanks#859117, constraintIsActive#859118, netPriceAmount#859119, netPriceCurrencyCode#859120, netPriceQuantity#859121, netPriceQuantityUom#859122, netPriceQuantityUomUuid#859123, measurements#859124, originalReplenishmentRunId#859125L, optimizationGroups#859126, shardId#859127, sequenceId#859105]
Batched: true
Location: PreparedDeltaFileIndex [hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20.hanacloud.ondemand.com:443/crp-order-qty-opt-service/internal/prod-plant-snapshot/10000002109]
PartitionFilters: [isnotnull(shardId#859127), isnotnull(sequenceId#859105), (shardId#859127 = 0_1_10000002109), (sequenceId#859105 = 1)]
PushedFilters: [IsNotNull(availabilityDateTime), IsNotNull(nextAvailabilityDateTime)]
ReadSchema: struct<orderProposalId:bigint,orderProposalItemId:string,supplierGroup:string,supplier:string,plant:string,deliveryDateTime:timestamp,subrange:string,supplyingPlant:string,productGroup:string,product:string,orderDateTime:timestamp,availabilityDateTime:timestamp,nextAvailabilityDateTime:timestamp,mrpController:string,sourceOfSupplyUuid:string,purchasingOrg:string,purchasingGroup:string,isFallbackOrderOnly:boolean,orderProposalHorizonGroupingId:bigint,splitIndicator:bigint,previousOrderProposal:bigint,clusterId:bigint,worklistShardItemId:bigint,orderProposalItemGroupId:string,externalProductId:string,externalPlantId:string,logisticUnits:array<struct<uom:string,uomUuid:string,numerator:int,denominator:int,isOrderUnit:boolean,isPreferred:boolean>>,orderQuantityBaseUom:string,orderQuantityBaseUomUuid:string,minimumOrderQuantity:double,constraintLabels:array<string>,constraintOperators:array<string>,constraintValues:array<double>,constraintRanks:array<int>,constraintIsActive:array<boolean>,netPriceAmount:double,netPriceCurrencyCode:string,netPriceQuantity:double,netPriceQuantityUom:string,netPriceQuantityUomUuid:string,measurements:array<struct<value:double,dimensionType:int,dimensionCode:string,dimensionCodeUuid:string,isoCode:string>>,originalReplenishmentRunId:bigint,optimizationGroups:array<string>>
(6) ColumnarToRow [codegen id : 1]
Input [45]: [orderProposalId#859083L, orderProposalItemId#859084, supplierGroup#859085, supplier#859086, plant#859087, deliveryDateTime#859088, subrange#859089, supplyingPlant#859090, productGroup#859091, product#859092, orderDateTime#859093, availabilityDateTime#859094, nextAvailabilityDateTime#859095, mrpController#859096, sourceOfSupplyUuid#859097, purchasingOrg#859098, purchasingGroup#859099, isFallbackOrderOnly#859100, orderProposalHorizonGroupingId#859101L, splitIndicator#859102L, previousOrderProposal#859103L, clusterId#859104L, worklistShardItemId#859106L, orderProposalItemGroupId#859107, externalProductId#859108, externalPlantId#859109, logisticUnits#859110, orderQuantityBaseUom#859111, orderQuantityBaseUomUuid#859112, minimumOrderQuantity#859113, constraintLabels#859114, constraintOperators#859115, constraintValues#859116, constraintRanks#859117, constraintIsActive#859118, netPriceAmount#859119, netPriceCurrencyCode#859120, netPriceQuantity#859121, netPriceQuantityUom#859122, netPriceQuantityUomUuid#859123, measurements#859124, originalReplenishmentRunId#859125L, optimizationGroups#859126, shardId#859127, sequenceId#859105]
(7) Filter [codegen id : 1]
Input [45]: [orderProposalId#859083L, orderProposalItemId#859084, supplierGroup#859085, supplier#859086, plant#859087, deliveryDateTime#859088, subrange#859089, supplyingPlant#859090, productGroup#859091, product#859092, orderDateTime#859093, availabilityDateTime#859094, nextAvailabilityDateTime#859095, mrpController#859096, sourceOfSupplyUuid#859097, purchasingOrg#859098, purchasingGroup#859099, isFallbackOrderOnly#859100, orderProposalHorizonGroupingId#859101L, splitIndicator#859102L, previousOrderProposal#859103L, clusterId#859104L, worklistShardItemId#859106L, orderProposalItemGroupId#859107, externalProductId#859108, externalPlantId#859109, logisticUnits#859110, orderQuantityBaseUom#859111, orderQuantityBaseUomUuid#859112, minimumOrderQuantity#859113, constraintLabels#859114, constraintOperators#859115, constraintValues#859116, constraintRanks#859117, constraintIsActive#859118, netPriceAmount#859119, netPriceCurrencyCode#859120, netPriceQuantity#859121, netPriceQuantityUom#859122, netPriceQuantityUomUuid#859123, measurements#859124, originalReplenishmentRunId#859125L, optimizationGroups#859126, shardId#859127, sequenceId#859105]
Condition : ((isnotnull(availabilityDateTime#859094) AND isnotnull(nextAvailabilityDateTime#859095)) AND (nextAvailabilityDateTime#859095 > availabilityDateTime#859094))
(8) Project [codegen id : 1]
Output [44]: [orderProposalId#859083L, orderProposalItemId#859084, supplierGroup#859085, supplier#859086, plant#859087, deliveryDateTime#859088, subrange#859089, supplyingPlant#859090, productGroup#859091, product#859092, orderDateTime#859093, availabilityDateTime#859094, nextAvailabilityDateTime#859095, mrpController#859096, sourceOfSupplyUuid#859097, purchasingOrg#859098, purchasingGroup#859099, isFallbackOrderOnly#859100, orderProposalHorizonGroupingId#859101L, splitIndicator#859102L, previousOrderProposal#859103L, clusterId#859104L, sequenceId#859105, worklistShardItemId#859106L, orderProposalItemGroupId#859107, externalProductId#859108, externalPlantId#859109, logisticUnits#859110, orderQuantityBaseUom#859111, orderQuantityBaseUomUuid#859112, minimumOrderQuantity#859113, constraintLabels#859114, constraintOperators#859115, constraintValues#859116, constraintRanks#859117, constraintIsActive#859118, netPriceAmount#859119, netPriceCurrencyCode#859120, netPriceQuantity#859121, netPriceQuantityUom#859122, netPriceQuantityUomUuid#859123, measurements#859124, originalReplenishmentRunId#859125L, optimizationGroups#859126]
Input [45]: [orderProposalId#859083L, orderProposalItemId#859084, supplierGroup#859085, supplier#859086, plant#859087, deliveryDateTime#859088, subrange#859089, supplyingPlant#859090, productGroup#859091, product#859092, orderDateTime#859093, availabilityDateTime#859094, nextAvailabilityDateTime#859095, mrpController#859096, sourceOfSupplyUuid#859097, purchasingOrg#859098, purchasingGroup#859099, isFallbackOrderOnly#859100, orderProposalHorizonGroupingId#859101L, splitIndicator#859102L, previousOrderProposal#859103L, clusterId#859104L, worklistShardItemId#859106L, orderProposalItemGroupId#859107, externalProductId#859108, externalPlantId#859109, logisticUnits#859110, orderQuantityBaseUom#859111, orderQuantityBaseUomUuid#859112, minimumOrderQuantity#859113, constraintLabels#859114, constraintOperators#859115, constraintValues#859116, constraintRanks#859117, constraintIsActive#859118, netPriceAmount#859119, netPriceCurrencyCode#859120, netPriceQuantity#859121, netPriceQuantityUom#859122, netPriceQuantityUomUuid#859123, measurements#859124, originalReplenishmentRunId#859125L, optimizationGroups#859126, shardId#859127, sequenceId#859105]
(9) Exchange
Input [44]: [orderProposalId#859083L, orderProposalItemId#859084, supplierGroup#859085, supplier#859086, plant#859087, deliveryDateTime#859088, subrange#859089, supplyingPlant#859090, productGroup#859091, product#859092, orderDateTime#859093, availabilityDateTime#859094, nextAvailabilityDateTime#859095, mrpController#859096, sourceOfSupplyUuid#859097, purchasingOrg#859098, purchasingGroup#859099, isFallbackOrderOnly#859100, orderProposalHorizonGroupingId#859101L, splitIndicator#859102L, previousOrderProposal#859103L, clusterId#859104L, sequenceId#859105, worklistShardItemId#859106L, orderProposalItemGroupId#859107, externalProductId#859108, externalPlantId#859109, logisticUnits#859110, orderQuantityBaseUom#859111, orderQuantityBaseUomUuid#859112, minimumOrderQuantity#859113, constraintLabels#859114, constraintOperators#859115, constraintValues#859116, constraintRanks#859117, constraintIsActive#859118, netPriceAmount#859119, netPriceCurrencyCode#859120, netPriceQuantity#859121, netPriceQuantityUom#859122, netPriceQuantityUomUuid#859123, measurements#859124, originalReplenishmentRunId#859125L, optimizationGroups#859126]
Arguments: hashpartitioning(worklistShardItemId#859106L, 25), REPARTITION_BY_NUM, [plan_id=338361]
(10) ShuffleQueryStage
Output [44]: [orderProposalId#859083L, orderProposalItemId#859084, supplierGroup#859085, supplier#859086, plant#859087, deliveryDateTime#859088, subrange#859089, supplyingPlant#859090, productGroup#859091, product#859092, orderDateTime#859093, availabilityDateTime#859094, nextAvailabilityDateTime#859095, mrpController#859096, sourceOfSupplyUuid#859097, purchasingOrg#859098, purchasingGroup#859099, isFallbackOrderOnly#859100, orderProposalHorizonGroupingId#859101L, splitIndicator#859102L, previousOrderProposal#859103L, clusterId#859104L, sequenceId#859105, worklistShardItemId#859106L, orderProposalItemGroupId#859107, externalProductId#859108, externalPlantId#859109, logisticUnits#859110, orderQuantityBaseUom#859111, orderQuantityBaseUomUuid#859112, minimumOrderQuantity#859113, constraintLabels#859114, constraintOperators#859115, constraintValues#859116, constraintRanks#859117, constraintIsActive#859118, netPriceAmount#859119, netPriceCurrencyCode#859120, netPriceQuantity#859121, netPriceQuantityUom#859122, netPriceQuantityUomUuid#859123, measurements#859124, originalReplenishmentRunId#859125L, optimizationGroups#859126]
Arguments: 0
(11) Project [codegen id : 2]
Output [45]: [0_1_10000002109 AS shardId#859038, worklistShardItemId#859106L, orderProposalId#859083L, orderProposalItemId#859084, orderProposalItemGroupId#859107, originalReplenishmentRunId#859125L, orderProposalHorizonGroupingId#859101L, splitIndicator#859102L, previousOrderProposal#859103L, clusterId#859104L, cast(sequenceId#859105 as bigint) AS sequenceId#859048L, sourceOfSupplyUuid#859097, supplierGroup#859085, supplier#859086, subrange#859089, product#859092, plant#859087, purchasingOrg#859098, purchasingGroup#859099, mrpController#859096, orderDateTime#859093, deliveryDateTime#859088, availabilityDateTime#859094, nextAvailabilityDateTime#859095, isFallbackOrderOnly#859100, orderQuantityBaseUom#859111, orderQuantityBaseUomUuid#859112, netPriceQuantity#859121, netPriceQuantityUom#859122, netPriceQuantityUomUuid#859123, netPriceAmount#859119, netPriceCurrencyCode#859120, measurements#859124, minimumOrderQuantity#859113, constraintLabels#859114, constraintOperators#859115, constraintRanks#859117, constraintValues#859116, constraintIsActive#859118, logisticUnits#859110, optimizationGroups#859126, externalProductId#859108, externalPlantId#859109, supplyingPlant#859090, productGroup#859091]
Input [44]: [orderProposalId#859083L, orderProposalItemId#859084, supplierGroup#859085, supplier#859086, plant#859087, deliveryDateTime#859088, subrange#859089, supplyingPlant#859090, productGroup#859091, product#859092, orderDateTime#859093, availabilityDateTime#859094, nextAvailabilityDateTime#859095, mrpController#859096, sourceOfSupplyUuid#859097, purchasingOrg#859098, purchasingGroup#859099, isFallbackOrderOnly#859100, orderProposalHorizonGroupingId#859101L, splitIndicator#859102L, previousOrderProposal#859103L, clusterId#859104L, sequenceId#859105, worklistShardItemId#859106L, orderProposalItemGroupId#859107, externalProductId#859108, externalPlantId#859109, logisticUnits#859110, orderQuantityBaseUom#859111, orderQuantityBaseUomUuid#859112, minimumOrderQuantity#859113, constraintLabels#859114, constraintOperators#859115, constraintValues#859116, constraintRanks#859117, constraintIsActive#859118, netPriceAmount#859119, netPriceCurrencyCode#859120, netPriceQuantity#859121, netPriceQuantityUom#859122, netPriceQuantityUomUuid#859123, measurements#859124, originalReplenishmentRunId#859125L, optimizationGroups#859126]
(12) ResultQueryStage
Output [45]: [shardId#859038, worklistShardItemId#859106L, orderProposalId#859083L, orderProposalItemId#859084, orderProposalItemGroupId#859107, originalReplenishmentRunId#859125L, orderProposalHorizonGroupingId#859101L, splitIndicator#859102L, previousOrderProposal#859103L, clusterId#859104L, sequenceId#859048L, sourceOfSupplyUuid#859097, supplierGroup#859085, supplier#859086, subrange#859089, product#859092, plant#859087, purchasingOrg#859098, purchasingGroup#859099, mrpController#859096, orderDateTime#859093, deliveryDateTime#859088, availabilityDateTime#859094, nextAvailabilityDateTime#859095, isFallbackOrderOnly#859100, orderQuantityBaseUom#859111, orderQuantityBaseUomUuid#859112, netPriceQuantity#859121, netPriceQuantityUom#859122, netPriceQuantityUomUuid#859123, netPriceAmount#859119, netPriceCurrencyCode#859120, measurements#859124, minimumOrderQuantity#859113, constraintLabels#859114, constraintOperators#859115, constraintRanks#859117, constraintValues#859116, constraintIsActive#859118, logisticUnits#859110, optimizationGroups#859126, externalProductId#859108, externalPlantId#859109, supplyingPlant#859090, productGroup#859091]
Arguments: 1
(13) Filter
Input [45]: [orderProposalId#859083L, orderProposalItemId#859084, supplierGroup#859085, supplier#859086, plant#859087, deliveryDateTime#859088, subrange#859089, supplyingPlant#859090, productGroup#859091, product#859092, orderDateTime#859093, availabilityDateTime#859094, nextAvailabilityDateTime#859095, mrpController#859096, sourceOfSupplyUuid#859097, purchasingOrg#859098, purchasingGroup#859099, isFallbackOrderOnly#859100, orderProposalHorizonGroupingId#859101L, splitIndicator#859102L, previousOrderProposal#859103L, clusterId#859104L, worklistShardItemId#859106L, orderProposalItemGroupId#859107, externalProductId#859108, externalPlantId#859109, logisticUnits#859110, orderQuantityBaseUom#859111, orderQuantityBaseUomUuid#859112, minimumOrderQuantity#859113, constraintLabels#859114, constraintOperators#859115, constraintValues#859116, constraintRanks#859117, constraintIsActive#859118, netPriceAmount#859119, netPriceCurrencyCode#859120, netPriceQuantity#859121, netPriceQuantityUom#859122, netPriceQuantityUomUuid#859123, measurements#859124, originalReplenishmentRunId#859125L, optimizationGroups#859126, shardId#859127, sequenceId#859105]
Condition : ((isnotnull(availabilityDateTime#859094) AND isnotnull(nextAvailabilityDateTime#859095)) AND (nextAvailabilityDateTime#859095 > availabilityDateTime#859094))
(14) Project
Output [44]: [orderProposalId#859083L, orderProposalItemId#859084, supplierGroup#859085, supplier#859086, plant#859087, deliveryDateTime#859088, subrange#859089, supplyingPlant#859090, productGroup#859091, product#859092, orderDateTime#859093, availabilityDateTime#859094, nextAvailabilityDateTime#859095, mrpController#859096, sourceOfSupplyUuid#859097, purchasingOrg#859098, purchasingGroup#859099, isFallbackOrderOnly#859100, orderProposalHorizonGroupingId#859101L, splitIndicator#859102L, previousOrderProposal#859103L, clusterId#859104L, sequenceId#859105, worklistShardItemId#859106L, orderProposalItemGroupId#859107, externalProductId#859108, externalPlantId#859109, logisticUnits#859110, orderQuantityBaseUom#859111, orderQuantityBaseUomUuid#859112, minimumOrderQuantity#859113, constraintLabels#859114, constraintOperators#859115, constraintValues#859116, constraintRanks#859117, constraintIsActive#859118, netPriceAmount#859119, netPriceCurrencyCode#859120, netPriceQuantity#859121, netPriceQuantityUom#859122, netPriceQuantityUomUuid#859123, measurements#859124, originalReplenishmentRunId#859125L, optimizationGroups#859126]
Input [45]: [orderProposalId#859083L, orderProposalItemId#859084, supplierGroup#859085, supplier#859086, plant#859087, deliveryDateTime#859088, subrange#859089, supplyingPlant#859090, productGroup#859091, product#859092, orderDateTime#859093, availabilityDateTime#859094, nextAvailabilityDateTime#859095, mrpController#859096, sourceOfSupplyUuid#859097, purchasingOrg#859098, purchasingGroup#859099, isFallbackOrderOnly#859100, orderProposalHorizonGroupingId#859101L, splitIndicator#859102L, previousOrderProposal#859103L, clusterId#859104L, worklistShardItemId#859106L, orderProposalItemGroupId#859107, externalProductId#859108, externalPlantId#859109, logisticUnits#859110, orderQuantityBaseUom#859111, orderQuantityBaseUomUuid#859112, minimumOrderQuantity#859113, constraintLabels#859114, constraintOperators#859115, constraintValues#859116, constraintRanks#859117, constraintIsActive#859118, netPriceAmount#859119, netPriceCurrencyCode#859120, netPriceQuantity#859121, netPriceQuantityUom#859122, netPriceQuantityUomUuid#859123, measurements#859124, originalReplenishmentRunId#859125L, optimizationGroups#859126, shardId#859127, sequenceId#859105]
(15) Exchange
Input [44]: [orderProposalId#859083L, orderProposalItemId#859084, supplierGroup#859085, supplier#859086, plant#859087, deliveryDateTime#859088, subrange#859089, supplyingPlant#859090, productGroup#859091, product#859092, orderDateTime#859093, availabilityDateTime#859094, nextAvailabilityDateTime#859095, mrpController#859096, sourceOfSupplyUuid#859097, purchasingOrg#859098, purchasingGroup#859099, isFallbackOrderOnly#859100, orderProposalHorizonGroupingId#859101L, splitIndicator#859102L, previousOrderProposal#859103L, clusterId#859104L, sequenceId#859105, worklistShardItemId#859106L, orderProposalItemGroupId#859107, externalProductId#859108, externalPlantId#859109, logisticUnits#859110, orderQuantityBaseUom#859111, orderQuantityBaseUomUuid#859112, minimumOrderQuantity#859113, constraintLabels#859114, constraintOperators#859115, constraintValues#859116, constraintRanks#859117, constraintIsActive#859118, netPriceAmount#859119, netPriceCurrencyCode#859120, netPriceQuantity#859121, netPriceQuantityUom#859122, netPriceQuantityUomUuid#859123, measurements#859124, originalReplenishmentRunId#859125L, optimizationGroups#859126]
Arguments: hashpartitioning(worklistShardItemId#859106L, 25), REPARTITION_BY_NUM, [plan_id=338333]
(16) Project
Output [45]: [0_1_10000002109 AS shardId#859038, worklistShardItemId#859106L, orderProposalId#859083L, orderProposalItemId#859084, orderProposalItemGroupId#859107, originalReplenishmentRunId#859125L, orderProposalHorizonGroupingId#859101L, splitIndicator#859102L, previousOrderProposal#859103L, clusterId#859104L, cast(sequenceId#859105 as bigint) AS sequenceId#859048L, sourceOfSupplyUuid#859097, supplierGroup#859085, supplier#859086, subrange#859089, product#859092, plant#859087, purchasingOrg#859098, purchasingGroup#859099, mrpController#859096, orderDateTime#859093, deliveryDateTime#859088, availabilityDateTime#859094, nextAvailabilityDateTime#859095, isFallbackOrderOnly#859100, orderQuantityBaseUom#859111, orderQuantityBaseUomUuid#859112, netPriceQuantity#859121, netPriceQuantityUom#859122, netPriceQuantityUomUuid#859123, netPriceAmount#859119, netPriceCurrencyCode#859120, measurements#859124, minimumOrderQuantity#859113, constraintLabels#859114, constraintOperators#859115, constraintRanks#859117, constraintValues#859116, constraintIsActive#859118, logisticUnits#859110, optimizationGroups#859126, externalProductId#859108, externalPlantId#859109, supplyingPlant#859090, productGroup#859091]
Input [44]: [orderProposalId#859083L, orderProposalItemId#859084, supplierGroup#859085, supplier#859086, plant#859087, deliveryDateTime#859088, subrange#859089, supplyingPlant#859090, productGroup#859091, product#859092, orderDateTime#859093, availabilityDateTime#859094, nextAvailabilityDateTime#859095, mrpController#859096, sourceOfSupplyUuid#859097, purchasingOrg#859098, purchasingGroup#859099, isFallbackOrderOnly#859100, orderProposalHorizonGroupingId#859101L, splitIndicator#859102L, previousOrderProposal#859103L, clusterId#859104L, sequenceId#859105, worklistShardItemId#859106L, orderProposalItemGroupId#859107, externalProductId#859108, externalPlantId#859109, logisticUnits#859110, orderQuantityBaseUom#859111, orderQuantityBaseUomUuid#859112, minimumOrderQuantity#859113, constraintLabels#859114, constraintOperators#859115, constraintValues#859116, constraintRanks#859117, constraintIsActive#859118, netPriceAmount#859119, netPriceCurrencyCode#859120, netPriceQuantity#859121, netPriceQuantityUom#859122, netPriceQuantityUomUuid#859123, measurements#859124, originalReplenishmentRunId#859125L, optimizationGroups#859126]
(17) AdaptiveSparkPlan
Output [45]: [shardId#859038, worklistShardItemId#859106L, orderProposalId#859083L, orderProposalItemId#859084, orderProposalItemGroupId#859107, originalReplenishmentRunId#859125L, orderProposalHorizonGroupingId#859101L, splitIndicator#859102L, previousOrderProposal#859103L, clusterId#859104L, sequenceId#859048L, sourceOfSupplyUuid#859097, supplierGroup#859085, supplier#859086, subrange#859089, product#859092, plant#859087, purchasingOrg#859098, purchasingGroup#859099, mrpController#859096, orderDateTime#859093, deliveryDateTime#859088, availabilityDateTime#859094, nextAvailabilityDateTime#859095, isFallbackOrderOnly#859100, orderQuantityBaseUom#859111, orderQuantityBaseUomUuid#859112, netPriceQuantity#859121, netPriceQuantityUom#859122, netPriceQuantityUomUuid#859123, netPriceAmount#859119, netPriceCurrencyCode#859120, measurements#859124, minimumOrderQuantity#859113, constraintLabels#859114, constraintOperators#859115, constraintRanks#859117, constraintValues#859116, constraintIsActive#859118, logisticUnits#859110, optimizationGroups#859126, externalProductId#859108, externalPlantId#859109, supplyingPlant#859090, productGroup#859091]
Arguments: isFinalPlan=true
(18) TableCacheQueryStage
Output [3]: [shardId#859038, worklistShardItemId#859039L, orderProposalId#859040L]
Arguments: 0
(19) Filter [codegen id : 1]
Input [3]: [shardId#859038, worklistShardItemId#859039L, orderProposalId#859040L]
Condition : (isnotnull(shardId#859038) AND isnotnull(orderProposalId#859040L))
(20) ObjectHashAggregate
Input [3]: [shardId#859038, worklistShardItemId#859039L, orderProposalId#859040L]
Keys [2]: [shardId#859038, orderProposalId#859040L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#859039L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#865787]
Results [3]: [shardId#859038, orderProposalId#859040L, buf#865788]
(21) Exchange
Input [3]: [shardId#859038, orderProposalId#859040L, buf#865788]
Arguments: hashpartitioning(shardId#859038, orderProposalId#859040L, 25), ENSURE_REQUIREMENTS, [plan_id=338727]
(22) ShuffleQueryStage [codegen id : 3]
Output [3]: [shardId#859038, orderProposalId#859040L, buf#865788]
Arguments: 2
(23) AQEShuffleRead [codegen id : 3]
Input [3]: [shardId#859038, orderProposalId#859040L, buf#865788]
Arguments: coalesced
(24) ObjectHashAggregate [codegen id : 3]
Input [3]: [shardId#859038, orderProposalId#859040L, buf#865788]
Keys [2]: [shardId#859038, orderProposalId#859040L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#859039L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#859039L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#864283]
Results [7]: [shardId#859038, orderProposalId#859040L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#859039L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#864283, lambdafunction(struct(worklistShardItemId, lambda x_2238#864304.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_2238#864304.quantityAfterProdPlantOptimization, qty, lambda x_2238#864304.optimalQuantity), lambda x_2238#864304, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#864305, [] AS optimizationGroups#864299, false AS isOptimal#864284, 2026-08-10 11:31:55.516064 AS lastModified#864303, [] AS optimizationInsights#864300]
(25) Union
(26) Exchange
Input [7]: [shardId#864292, orderProposalId#864293L, items#864294, optimizationGroups#864295, isOptimal#864296, lastModified#864297, optimizationInsights#864298]
Arguments: hashpartitioning(shardId#864292, orderProposalId#864293L, lastModified#864297, 25), ENSURE_REQUIREMENTS, [plan_id=338847]
(27) ShuffleQueryStage
Output [7]: [shardId#864292, orderProposalId#864293L, items#864294, optimizationGroups#864295, isOptimal#864296, lastModified#864297, optimizationInsights#864298]
Arguments: 4
(28) AQEShuffleRead
Input [7]: [shardId#864292, orderProposalId#864293L, items#864294, optimizationGroups#864295, isOptimal#864296, lastModified#864297, optimizationInsights#864298]
Arguments: local
(29) Scan ExistingRDD [codegen id : 4]
Output [7]: [shardId#864315, orderProposalId#864316L, items#864317, optimizationGroups#864318, isOptimal#864319, lastModified#864320, optimizationInsights#864321]
Arguments: [shardId#864315, orderProposalId#864316L, items#864317, optimizationGroups#864318, isOptimal#864319, lastModified#864320, optimizationInsights#864321], MapPartitionsRDD[40383] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(30) Filter [codegen id : 4]
Input [7]: [shardId#864315, orderProposalId#864316L, items#864317, optimizationGroups#864318, isOptimal#864319, lastModified#864320, optimizationInsights#864321]
Condition : (isnotnull(shardId#864315) AND isnotnull(orderProposalId#864316L))
(31) Project [codegen id : 4]
Output [3]: [shardId#864315, orderProposalId#864316L, lastModified#864320]
Input [7]: [shardId#864315, orderProposalId#864316L, items#864317, optimizationGroups#864318, isOptimal#864319, lastModified#864320, optimizationInsights#864321]
(32) InMemoryTableScan
Output [2]: [shardId#864322, orderProposalId#864324L]
Arguments: [shardId#864322, orderProposalId#864324L], [isnotnull(shardId#864322), isnotnull(orderProposalId#864324L)]
(33) InMemoryRelation
Arguments: [shardId#864322, worklistShardItemId#864323L, orderProposalId#864324L, orderProposalItemId#864325, orderProposalItemGroupId#864326, originalReplenishmentRunId#864327L, orderProposalHorizonGroupingId#864328L, splitIndicator#864329L, previousOrderProposal#864330L, clusterId#864331L, sequenceId#864332L, sourceOfSupplyUuid#864333, supplierGroup#864334, supplier#864335, subrange#864336, product#864337, plant#864338, purchasingOrg#864339, purchasingGroup#864340, mrpController#864341, orderDateTime#864342, deliveryDateTime#864343, availabilityDateTime#864344, nextAvailabilityDateTime#864345, isFallbackOrderOnly#864346, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(34) TableCacheQueryStage
Output [2]: [shardId#864322, orderProposalId#864324L]
Arguments: 1
(35) Filter [codegen id : 2]
Input [2]: [shardId#864322, orderProposalId#864324L]
Condition : (isnotnull(shardId#864322) AND isnotnull(orderProposalId#864324L))
(36) HashAggregate [codegen id : 2]
Input [2]: [shardId#864322, orderProposalId#864324L]
Keys [2]: [shardId#864322, orderProposalId#864324L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#864322, orderProposalId#864324L]
(37) Exchange
Input [2]: [shardId#864322, orderProposalId#864324L]
Arguments: hashpartitioning(shardId#864322, orderProposalId#864324L, 25), ENSURE_REQUIREMENTS, [plan_id=338763]
(38) ShuffleQueryStage
Output [2]: [shardId#864322, orderProposalId#864324L]
Arguments: 3
(39) AQEShuffleRead
Input [2]: [shardId#864322, orderProposalId#864324L]
Arguments: coalesced
(40) HashAggregate [codegen id : 5]
Input [2]: [shardId#864322, orderProposalId#864324L]
Keys [2]: [shardId#864322, orderProposalId#864324L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#864322, orderProposalId#864324L, 2026-08-10 11:31:55.516064 AS lastModified#864419]
(41) Union
(42) HashAggregate [codegen id : 6]
Input [3]: [shardId#864315, orderProposalId#864316L, lastModified#864320]
Keys [2]: [shardId#864315, orderProposalId#864316L]
Functions [1]: [partial_max(lastModified#864320)]
Aggregate Attributes [1]: [max#865789]
Results [3]: [shardId#864315, orderProposalId#864316L, max#865790]
(43) Exchange
Input [3]: [shardId#864315, orderProposalId#864316L, max#865790]
Arguments: hashpartitioning(shardId#864315, orderProposalId#864316L, 25), ENSURE_REQUIREMENTS, [plan_id=338929]
(44) ShuffleQueryStage
Output [3]: [shardId#864315, orderProposalId#864316L, max#865790]
Arguments: 5
(45) AQEShuffleRead
Input [3]: [shardId#864315, orderProposalId#864316L, max#865790]
Arguments: coalesced
(46) HashAggregate [codegen id : 7]
Input [3]: [shardId#864315, orderProposalId#864316L, max#865790]
Keys [2]: [shardId#864315, orderProposalId#864316L]
Functions [1]: [max(lastModified#864320)]
Aggregate Attributes [1]: [max(lastModified#864320)#864314]
Results [3]: [shardId#864315, orderProposalId#864316L, max(lastModified#864320)#864314 AS lastModified#864306]
(47) Filter [codegen id : 7]
Input [3]: [shardId#864315, orderProposalId#864316L, lastModified#864306]
Condition : isnotnull(lastModified#864306)
(48) BroadcastExchange
Input [3]: [shardId#864315, orderProposalId#864316L, lastModified#864306]
Arguments: HashedRelationBroadcastMode(List(input[0, string, true], input[1, bigint, true], input[2, timestamp, false]),false), [plan_id=339009]
(49) BroadcastQueryStage
Output [3]: [shardId#864315, orderProposalId#864316L, lastModified#864306]
Arguments: 6
(50) BroadcastHashJoin [codegen id : 8]
Left keys [3]: [shardId#864292, orderProposalId#864293L, lastModified#864297]
Right keys [3]: [shardId#864315, orderProposalId#864316L, lastModified#864306]
Join type: Inner
Join condition: None
(51) Project [codegen id : 8]
Output [7]: [shardId#864292, orderProposalId#864293L, items#864294, optimizationGroups#864295, isOptimal#864296, lastModified#864297, optimizationInsights#864298]
Input [10]: [shardId#864292, orderProposalId#864293L, items#864294, optimizationGroups#864295, isOptimal#864296, lastModified#864297, optimizationInsights#864298, shardId#864315, orderProposalId#864316L, lastModified#864306]
(52) DeserializeToObject
Input [7]: [shardId#864292, orderProposalId#864293L, items#864294, optimizationGroups#864295, isOptimal#864296, lastModified#864297, optimizationInsights#864298]
Arguments: createexternalrow(invoke(shardId#864292.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#864293L)), 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#864294, 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#864295, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#864296)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#864297)), 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#864298, 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#864436: org.apache.spark.sql.Row
(53) ResultQueryStage
Output [1]: [obj#864436]
Arguments: 7
(54) Filter
Input [3]: [shardId#859038, worklistShardItemId#859039L, orderProposalId#859040L]
Condition : (isnotnull(shardId#859038) AND isnotnull(orderProposalId#859040L))
(55) ObjectHashAggregate
Input [3]: [shardId#859038, worklistShardItemId#859039L, orderProposalId#859040L]
Keys [2]: [shardId#859038, orderProposalId#859040L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#859039L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#865787]
Results [3]: [shardId#859038, orderProposalId#859040L, buf#865788]
(56) Exchange
Input [3]: [shardId#859038, orderProposalId#859040L, buf#865788]
Arguments: hashpartitioning(shardId#859038, orderProposalId#859040L, 25), ENSURE_REQUIREMENTS, [plan_id=338556]
(57) ObjectHashAggregate
Input [3]: [shardId#859038, orderProposalId#859040L, buf#865788]
Keys [2]: [shardId#859038, orderProposalId#859040L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#859039L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#859039L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#864283]
Results [7]: [shardId#859038, orderProposalId#859040L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#859039L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#864283, lambdafunction(struct(worklistShardItemId, lambda x_2238#864304.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_2238#864304.quantityAfterProdPlantOptimization, qty, lambda x_2238#864304.optimalQuantity), lambda x_2238#864304, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#864305, [] AS optimizationGroups#864299, false AS isOptimal#864284, 2026-08-10 11:31:55.516064 AS lastModified#864303, [] AS optimizationInsights#864300]
(58) Union
(59) Exchange
Input [7]: [shardId#864292, orderProposalId#864293L, items#864294, optimizationGroups#864295, isOptimal#864296, lastModified#864297, optimizationInsights#864298]
Arguments: hashpartitioning(shardId#864292, orderProposalId#864293L, lastModified#864297, 25), ENSURE_REQUIREMENTS, [plan_id=338569]
(60) Sort
Input [7]: [shardId#864292, orderProposalId#864293L, items#864294, optimizationGroups#864295, isOptimal#864296, lastModified#864297, optimizationInsights#864298]
Arguments: [shardId#864292 ASC NULLS FIRST, orderProposalId#864293L ASC NULLS FIRST, lastModified#864297 ASC NULLS FIRST], false, 0
(61) Filter
Input [2]: [shardId#864322, orderProposalId#864324L]
Condition : (isnotnull(shardId#864322) AND isnotnull(orderProposalId#864324L))
(62) HashAggregate
Input [2]: [shardId#864322, orderProposalId#864324L]
Keys [2]: [shardId#864322, orderProposalId#864324L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#864322, orderProposalId#864324L]
(63) Exchange
Input [2]: [shardId#864322, orderProposalId#864324L]
Arguments: hashpartitioning(shardId#864322, orderProposalId#864324L, 25), ENSURE_REQUIREMENTS, [plan_id=338559]
(64) HashAggregate
Input [2]: [shardId#864322, orderProposalId#864324L]
Keys [2]: [shardId#864322, orderProposalId#864324L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#864322, orderProposalId#864324L, 2026-08-10 11:31:55.516064 AS lastModified#864419]
(65) Union
(66) HashAggregate
Input [3]: [shardId#864315, orderProposalId#864316L, lastModified#864320]
Keys [2]: [shardId#864315, orderProposalId#864316L]
Functions [1]: [partial_max(lastModified#864320)]
Aggregate Attributes [1]: [max#865789]
Results [3]: [shardId#864315, orderProposalId#864316L, max#865790]
(67) Exchange
Input [3]: [shardId#864315, orderProposalId#864316L, max#865790]
Arguments: hashpartitioning(shardId#864315, orderProposalId#864316L, 25), ENSURE_REQUIREMENTS, [plan_id=338564]
(68) HashAggregate
Input [3]: [shardId#864315, orderProposalId#864316L, max#865790]
Keys [2]: [shardId#864315, orderProposalId#864316L]
Functions [1]: [max(lastModified#864320)]
Aggregate Attributes [1]: [max(lastModified#864320)#864314]
Results [3]: [shardId#864315, orderProposalId#864316L, max(lastModified#864320)#864314 AS lastModified#864306]
(69) Filter
Input [3]: [shardId#864315, orderProposalId#864316L, lastModified#864306]
Condition : isnotnull(lastModified#864306)
(70) Exchange
Input [3]: [shardId#864315, orderProposalId#864316L, lastModified#864306]
Arguments: hashpartitioning(shardId#864315, orderProposalId#864316L, lastModified#864306, 25), ENSURE_REQUIREMENTS, [plan_id=338570]
(71) Sort
Input [3]: [shardId#864315, orderProposalId#864316L, lastModified#864306]
Arguments: [shardId#864315 ASC NULLS FIRST, orderProposalId#864316L ASC NULLS FIRST, lastModified#864306 ASC NULLS FIRST], false, 0
(72) SortMergeJoin
Left keys [3]: [shardId#864292, orderProposalId#864293L, lastModified#864297]
Right keys [3]: [shardId#864315, orderProposalId#864316L, lastModified#864306]
Join type: Inner
Join condition: None
(73) Project
Output [7]: [shardId#864292, orderProposalId#864293L, items#864294, optimizationGroups#864295, isOptimal#864296, lastModified#864297, optimizationInsights#864298]
Input [10]: [shardId#864292, orderProposalId#864293L, items#864294, optimizationGroups#864295, isOptimal#864296, lastModified#864297, optimizationInsights#864298, shardId#864315, orderProposalId#864316L, lastModified#864306]
(74) DeserializeToObject
Input [7]: [shardId#864292, orderProposalId#864293L, items#864294, optimizationGroups#864295, isOptimal#864296, lastModified#864297, optimizationInsights#864298]
Arguments: createexternalrow(invoke(shardId#864292.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#864293L)), 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#864294, 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#864295, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#864296)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#864297)), 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#864298, 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#864436: org.apache.spark.sql.Row
(75) AdaptiveSparkPlan
Output [1]: [obj#864436]
Arguments: isFinalPlan=true