== 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#887461, orderProposalId#887462L, items#887463, optimizationGroups#887464, isOptimal#887465, lastModified#887466, optimizationInsights#887467]
Arguments: [shardId#887461, orderProposalId#887462L, items#887463, optimizationGroups#887464, isOptimal#887465, lastModified#887466, optimizationInsights#887467], MapPartitionsRDD[41446] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(2) Filter [codegen id : 3]
Input [7]: [shardId#887461, orderProposalId#887462L, items#887463, optimizationGroups#887464, isOptimal#887465, lastModified#887466, optimizationInsights#887467]
Condition : ((isnotnull(shardId#887461) AND isnotnull(orderProposalId#887462L)) AND isnotnull(lastModified#887466))
(3) InMemoryTableScan
Output [3]: [shardId#882207, worklistShardItemId#882208L, orderProposalId#882209L]
Arguments: [shardId#882207, worklistShardItemId#882208L, orderProposalId#882209L], [isnotnull(shardId#882207), isnotnull(orderProposalId#882209L)]
(4) InMemoryRelation
Arguments: [shardId#882207, worklistShardItemId#882208L, orderProposalId#882209L, orderProposalItemId#882210, orderProposalItemGroupId#882211, originalReplenishmentRunId#882212L, orderProposalHorizonGroupingId#882213L, splitIndicator#882214L, previousOrderProposal#882215L, clusterId#882216L, sequenceId#882217L, sourceOfSupplyUuid#882218, supplierGroup#882219, supplier#882220, subrange#882221, product#882222, plant#882223, purchasingOrg#882224, purchasingGroup#882225, mrpController#882226, orderDateTime#882227, deliveryDateTime#882228, availabilityDateTime#882229, nextAvailabilityDateTime#882230, isFallbackOrderOnly#882231, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(5) Scan parquet
Output [45]: [orderProposalId#882252L, orderProposalItemId#882253, supplierGroup#882254, supplier#882255, plant#882256, deliveryDateTime#882257, subrange#882258, supplyingPlant#882259, productGroup#882260, product#882261, orderDateTime#882262, availabilityDateTime#882263, nextAvailabilityDateTime#882264, mrpController#882265, sourceOfSupplyUuid#882266, purchasingOrg#882267, purchasingGroup#882268, isFallbackOrderOnly#882269, orderProposalHorizonGroupingId#882270L, splitIndicator#882271L, previousOrderProposal#882272L, clusterId#882273L, worklistShardItemId#882275L, orderProposalItemGroupId#882276, externalProductId#882277, externalPlantId#882278, logisticUnits#882279, orderQuantityBaseUom#882280, orderQuantityBaseUomUuid#882281, minimumOrderQuantity#882282, constraintLabels#882283, constraintOperators#882284, constraintValues#882285, constraintRanks#882286, constraintIsActive#882287, netPriceAmount#882288, netPriceCurrencyCode#882289, netPriceQuantity#882290, netPriceQuantityUom#882291, netPriceQuantityUomUuid#882292, measurements#882293, originalReplenishmentRunId#882294L, optimizationGroups#882295, shardId#882296, sequenceId#882274]
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#882296), isnotnull(sequenceId#882274), (shardId#882296 = 0_1_10000002109), (sequenceId#882274 = 2)]
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#882252L, orderProposalItemId#882253, supplierGroup#882254, supplier#882255, plant#882256, deliveryDateTime#882257, subrange#882258, supplyingPlant#882259, productGroup#882260, product#882261, orderDateTime#882262, availabilityDateTime#882263, nextAvailabilityDateTime#882264, mrpController#882265, sourceOfSupplyUuid#882266, purchasingOrg#882267, purchasingGroup#882268, isFallbackOrderOnly#882269, orderProposalHorizonGroupingId#882270L, splitIndicator#882271L, previousOrderProposal#882272L, clusterId#882273L, worklistShardItemId#882275L, orderProposalItemGroupId#882276, externalProductId#882277, externalPlantId#882278, logisticUnits#882279, orderQuantityBaseUom#882280, orderQuantityBaseUomUuid#882281, minimumOrderQuantity#882282, constraintLabels#882283, constraintOperators#882284, constraintValues#882285, constraintRanks#882286, constraintIsActive#882287, netPriceAmount#882288, netPriceCurrencyCode#882289, netPriceQuantity#882290, netPriceQuantityUom#882291, netPriceQuantityUomUuid#882292, measurements#882293, originalReplenishmentRunId#882294L, optimizationGroups#882295, shardId#882296, sequenceId#882274]
(7) Filter [codegen id : 1]
Input [45]: [orderProposalId#882252L, orderProposalItemId#882253, supplierGroup#882254, supplier#882255, plant#882256, deliveryDateTime#882257, subrange#882258, supplyingPlant#882259, productGroup#882260, product#882261, orderDateTime#882262, availabilityDateTime#882263, nextAvailabilityDateTime#882264, mrpController#882265, sourceOfSupplyUuid#882266, purchasingOrg#882267, purchasingGroup#882268, isFallbackOrderOnly#882269, orderProposalHorizonGroupingId#882270L, splitIndicator#882271L, previousOrderProposal#882272L, clusterId#882273L, worklistShardItemId#882275L, orderProposalItemGroupId#882276, externalProductId#882277, externalPlantId#882278, logisticUnits#882279, orderQuantityBaseUom#882280, orderQuantityBaseUomUuid#882281, minimumOrderQuantity#882282, constraintLabels#882283, constraintOperators#882284, constraintValues#882285, constraintRanks#882286, constraintIsActive#882287, netPriceAmount#882288, netPriceCurrencyCode#882289, netPriceQuantity#882290, netPriceQuantityUom#882291, netPriceQuantityUomUuid#882292, measurements#882293, originalReplenishmentRunId#882294L, optimizationGroups#882295, shardId#882296, sequenceId#882274]
Condition : ((isnotnull(availabilityDateTime#882263) AND isnotnull(nextAvailabilityDateTime#882264)) AND (nextAvailabilityDateTime#882264 > availabilityDateTime#882263))
(8) Project [codegen id : 1]
Output [44]: [orderProposalId#882252L, orderProposalItemId#882253, supplierGroup#882254, supplier#882255, plant#882256, deliveryDateTime#882257, subrange#882258, supplyingPlant#882259, productGroup#882260, product#882261, orderDateTime#882262, availabilityDateTime#882263, nextAvailabilityDateTime#882264, mrpController#882265, sourceOfSupplyUuid#882266, purchasingOrg#882267, purchasingGroup#882268, isFallbackOrderOnly#882269, orderProposalHorizonGroupingId#882270L, splitIndicator#882271L, previousOrderProposal#882272L, clusterId#882273L, sequenceId#882274, worklistShardItemId#882275L, orderProposalItemGroupId#882276, externalProductId#882277, externalPlantId#882278, logisticUnits#882279, orderQuantityBaseUom#882280, orderQuantityBaseUomUuid#882281, minimumOrderQuantity#882282, constraintLabels#882283, constraintOperators#882284, constraintValues#882285, constraintRanks#882286, constraintIsActive#882287, netPriceAmount#882288, netPriceCurrencyCode#882289, netPriceQuantity#882290, netPriceQuantityUom#882291, netPriceQuantityUomUuid#882292, measurements#882293, originalReplenishmentRunId#882294L, optimizationGroups#882295]
Input [45]: [orderProposalId#882252L, orderProposalItemId#882253, supplierGroup#882254, supplier#882255, plant#882256, deliveryDateTime#882257, subrange#882258, supplyingPlant#882259, productGroup#882260, product#882261, orderDateTime#882262, availabilityDateTime#882263, nextAvailabilityDateTime#882264, mrpController#882265, sourceOfSupplyUuid#882266, purchasingOrg#882267, purchasingGroup#882268, isFallbackOrderOnly#882269, orderProposalHorizonGroupingId#882270L, splitIndicator#882271L, previousOrderProposal#882272L, clusterId#882273L, worklistShardItemId#882275L, orderProposalItemGroupId#882276, externalProductId#882277, externalPlantId#882278, logisticUnits#882279, orderQuantityBaseUom#882280, orderQuantityBaseUomUuid#882281, minimumOrderQuantity#882282, constraintLabels#882283, constraintOperators#882284, constraintValues#882285, constraintRanks#882286, constraintIsActive#882287, netPriceAmount#882288, netPriceCurrencyCode#882289, netPriceQuantity#882290, netPriceQuantityUom#882291, netPriceQuantityUomUuid#882292, measurements#882293, originalReplenishmentRunId#882294L, optimizationGroups#882295, shardId#882296, sequenceId#882274]
(9) Exchange
Input [44]: [orderProposalId#882252L, orderProposalItemId#882253, supplierGroup#882254, supplier#882255, plant#882256, deliveryDateTime#882257, subrange#882258, supplyingPlant#882259, productGroup#882260, product#882261, orderDateTime#882262, availabilityDateTime#882263, nextAvailabilityDateTime#882264, mrpController#882265, sourceOfSupplyUuid#882266, purchasingOrg#882267, purchasingGroup#882268, isFallbackOrderOnly#882269, orderProposalHorizonGroupingId#882270L, splitIndicator#882271L, previousOrderProposal#882272L, clusterId#882273L, sequenceId#882274, worklistShardItemId#882275L, orderProposalItemGroupId#882276, externalProductId#882277, externalPlantId#882278, logisticUnits#882279, orderQuantityBaseUom#882280, orderQuantityBaseUomUuid#882281, minimumOrderQuantity#882282, constraintLabels#882283, constraintOperators#882284, constraintValues#882285, constraintRanks#882286, constraintIsActive#882287, netPriceAmount#882288, netPriceCurrencyCode#882289, netPriceQuantity#882290, netPriceQuantityUom#882291, netPriceQuantityUomUuid#882292, measurements#882293, originalReplenishmentRunId#882294L, optimizationGroups#882295]
Arguments: hashpartitioning(worklistShardItemId#882275L, 25), REPARTITION_BY_NUM, [plan_id=345153]
(10) ShuffleQueryStage
Output [44]: [orderProposalId#882252L, orderProposalItemId#882253, supplierGroup#882254, supplier#882255, plant#882256, deliveryDateTime#882257, subrange#882258, supplyingPlant#882259, productGroup#882260, product#882261, orderDateTime#882262, availabilityDateTime#882263, nextAvailabilityDateTime#882264, mrpController#882265, sourceOfSupplyUuid#882266, purchasingOrg#882267, purchasingGroup#882268, isFallbackOrderOnly#882269, orderProposalHorizonGroupingId#882270L, splitIndicator#882271L, previousOrderProposal#882272L, clusterId#882273L, sequenceId#882274, worklistShardItemId#882275L, orderProposalItemGroupId#882276, externalProductId#882277, externalPlantId#882278, logisticUnits#882279, orderQuantityBaseUom#882280, orderQuantityBaseUomUuid#882281, minimumOrderQuantity#882282, constraintLabels#882283, constraintOperators#882284, constraintValues#882285, constraintRanks#882286, constraintIsActive#882287, netPriceAmount#882288, netPriceCurrencyCode#882289, netPriceQuantity#882290, netPriceQuantityUom#882291, netPriceQuantityUomUuid#882292, measurements#882293, originalReplenishmentRunId#882294L, optimizationGroups#882295]
Arguments: 0
(11) Project [codegen id : 2]
Output [45]: [0_1_10000002109 AS shardId#882207, worklistShardItemId#882275L, orderProposalId#882252L, orderProposalItemId#882253, orderProposalItemGroupId#882276, originalReplenishmentRunId#882294L, orderProposalHorizonGroupingId#882270L, splitIndicator#882271L, previousOrderProposal#882272L, clusterId#882273L, cast(sequenceId#882274 as bigint) AS sequenceId#882217L, sourceOfSupplyUuid#882266, supplierGroup#882254, supplier#882255, subrange#882258, product#882261, plant#882256, purchasingOrg#882267, purchasingGroup#882268, mrpController#882265, orderDateTime#882262, deliveryDateTime#882257, availabilityDateTime#882263, nextAvailabilityDateTime#882264, isFallbackOrderOnly#882269, orderQuantityBaseUom#882280, orderQuantityBaseUomUuid#882281, netPriceQuantity#882290, netPriceQuantityUom#882291, netPriceQuantityUomUuid#882292, netPriceAmount#882288, netPriceCurrencyCode#882289, measurements#882293, minimumOrderQuantity#882282, constraintLabels#882283, constraintOperators#882284, constraintRanks#882286, constraintValues#882285, constraintIsActive#882287, logisticUnits#882279, optimizationGroups#882295, externalProductId#882277, externalPlantId#882278, supplyingPlant#882259, productGroup#882260]
Input [44]: [orderProposalId#882252L, orderProposalItemId#882253, supplierGroup#882254, supplier#882255, plant#882256, deliveryDateTime#882257, subrange#882258, supplyingPlant#882259, productGroup#882260, product#882261, orderDateTime#882262, availabilityDateTime#882263, nextAvailabilityDateTime#882264, mrpController#882265, sourceOfSupplyUuid#882266, purchasingOrg#882267, purchasingGroup#882268, isFallbackOrderOnly#882269, orderProposalHorizonGroupingId#882270L, splitIndicator#882271L, previousOrderProposal#882272L, clusterId#882273L, sequenceId#882274, worklistShardItemId#882275L, orderProposalItemGroupId#882276, externalProductId#882277, externalPlantId#882278, logisticUnits#882279, orderQuantityBaseUom#882280, orderQuantityBaseUomUuid#882281, minimumOrderQuantity#882282, constraintLabels#882283, constraintOperators#882284, constraintValues#882285, constraintRanks#882286, constraintIsActive#882287, netPriceAmount#882288, netPriceCurrencyCode#882289, netPriceQuantity#882290, netPriceQuantityUom#882291, netPriceQuantityUomUuid#882292, measurements#882293, originalReplenishmentRunId#882294L, optimizationGroups#882295]
(12) ResultQueryStage
Output [45]: [shardId#882207, worklistShardItemId#882275L, orderProposalId#882252L, orderProposalItemId#882253, orderProposalItemGroupId#882276, originalReplenishmentRunId#882294L, orderProposalHorizonGroupingId#882270L, splitIndicator#882271L, previousOrderProposal#882272L, clusterId#882273L, sequenceId#882217L, sourceOfSupplyUuid#882266, supplierGroup#882254, supplier#882255, subrange#882258, product#882261, plant#882256, purchasingOrg#882267, purchasingGroup#882268, mrpController#882265, orderDateTime#882262, deliveryDateTime#882257, availabilityDateTime#882263, nextAvailabilityDateTime#882264, isFallbackOrderOnly#882269, orderQuantityBaseUom#882280, orderQuantityBaseUomUuid#882281, netPriceQuantity#882290, netPriceQuantityUom#882291, netPriceQuantityUomUuid#882292, netPriceAmount#882288, netPriceCurrencyCode#882289, measurements#882293, minimumOrderQuantity#882282, constraintLabels#882283, constraintOperators#882284, constraintRanks#882286, constraintValues#882285, constraintIsActive#882287, logisticUnits#882279, optimizationGroups#882295, externalProductId#882277, externalPlantId#882278, supplyingPlant#882259, productGroup#882260]
Arguments: 1
(13) Filter
Input [45]: [orderProposalId#882252L, orderProposalItemId#882253, supplierGroup#882254, supplier#882255, plant#882256, deliveryDateTime#882257, subrange#882258, supplyingPlant#882259, productGroup#882260, product#882261, orderDateTime#882262, availabilityDateTime#882263, nextAvailabilityDateTime#882264, mrpController#882265, sourceOfSupplyUuid#882266, purchasingOrg#882267, purchasingGroup#882268, isFallbackOrderOnly#882269, orderProposalHorizonGroupingId#882270L, splitIndicator#882271L, previousOrderProposal#882272L, clusterId#882273L, worklistShardItemId#882275L, orderProposalItemGroupId#882276, externalProductId#882277, externalPlantId#882278, logisticUnits#882279, orderQuantityBaseUom#882280, orderQuantityBaseUomUuid#882281, minimumOrderQuantity#882282, constraintLabels#882283, constraintOperators#882284, constraintValues#882285, constraintRanks#882286, constraintIsActive#882287, netPriceAmount#882288, netPriceCurrencyCode#882289, netPriceQuantity#882290, netPriceQuantityUom#882291, netPriceQuantityUomUuid#882292, measurements#882293, originalReplenishmentRunId#882294L, optimizationGroups#882295, shardId#882296, sequenceId#882274]
Condition : ((isnotnull(availabilityDateTime#882263) AND isnotnull(nextAvailabilityDateTime#882264)) AND (nextAvailabilityDateTime#882264 > availabilityDateTime#882263))
(14) Project
Output [44]: [orderProposalId#882252L, orderProposalItemId#882253, supplierGroup#882254, supplier#882255, plant#882256, deliveryDateTime#882257, subrange#882258, supplyingPlant#882259, productGroup#882260, product#882261, orderDateTime#882262, availabilityDateTime#882263, nextAvailabilityDateTime#882264, mrpController#882265, sourceOfSupplyUuid#882266, purchasingOrg#882267, purchasingGroup#882268, isFallbackOrderOnly#882269, orderProposalHorizonGroupingId#882270L, splitIndicator#882271L, previousOrderProposal#882272L, clusterId#882273L, sequenceId#882274, worklistShardItemId#882275L, orderProposalItemGroupId#882276, externalProductId#882277, externalPlantId#882278, logisticUnits#882279, orderQuantityBaseUom#882280, orderQuantityBaseUomUuid#882281, minimumOrderQuantity#882282, constraintLabels#882283, constraintOperators#882284, constraintValues#882285, constraintRanks#882286, constraintIsActive#882287, netPriceAmount#882288, netPriceCurrencyCode#882289, netPriceQuantity#882290, netPriceQuantityUom#882291, netPriceQuantityUomUuid#882292, measurements#882293, originalReplenishmentRunId#882294L, optimizationGroups#882295]
Input [45]: [orderProposalId#882252L, orderProposalItemId#882253, supplierGroup#882254, supplier#882255, plant#882256, deliveryDateTime#882257, subrange#882258, supplyingPlant#882259, productGroup#882260, product#882261, orderDateTime#882262, availabilityDateTime#882263, nextAvailabilityDateTime#882264, mrpController#882265, sourceOfSupplyUuid#882266, purchasingOrg#882267, purchasingGroup#882268, isFallbackOrderOnly#882269, orderProposalHorizonGroupingId#882270L, splitIndicator#882271L, previousOrderProposal#882272L, clusterId#882273L, worklistShardItemId#882275L, orderProposalItemGroupId#882276, externalProductId#882277, externalPlantId#882278, logisticUnits#882279, orderQuantityBaseUom#882280, orderQuantityBaseUomUuid#882281, minimumOrderQuantity#882282, constraintLabels#882283, constraintOperators#882284, constraintValues#882285, constraintRanks#882286, constraintIsActive#882287, netPriceAmount#882288, netPriceCurrencyCode#882289, netPriceQuantity#882290, netPriceQuantityUom#882291, netPriceQuantityUomUuid#882292, measurements#882293, originalReplenishmentRunId#882294L, optimizationGroups#882295, shardId#882296, sequenceId#882274]
(15) Exchange
Input [44]: [orderProposalId#882252L, orderProposalItemId#882253, supplierGroup#882254, supplier#882255, plant#882256, deliveryDateTime#882257, subrange#882258, supplyingPlant#882259, productGroup#882260, product#882261, orderDateTime#882262, availabilityDateTime#882263, nextAvailabilityDateTime#882264, mrpController#882265, sourceOfSupplyUuid#882266, purchasingOrg#882267, purchasingGroup#882268, isFallbackOrderOnly#882269, orderProposalHorizonGroupingId#882270L, splitIndicator#882271L, previousOrderProposal#882272L, clusterId#882273L, sequenceId#882274, worklistShardItemId#882275L, orderProposalItemGroupId#882276, externalProductId#882277, externalPlantId#882278, logisticUnits#882279, orderQuantityBaseUom#882280, orderQuantityBaseUomUuid#882281, minimumOrderQuantity#882282, constraintLabels#882283, constraintOperators#882284, constraintValues#882285, constraintRanks#882286, constraintIsActive#882287, netPriceAmount#882288, netPriceCurrencyCode#882289, netPriceQuantity#882290, netPriceQuantityUom#882291, netPriceQuantityUomUuid#882292, measurements#882293, originalReplenishmentRunId#882294L, optimizationGroups#882295]
Arguments: hashpartitioning(worklistShardItemId#882275L, 25), REPARTITION_BY_NUM, [plan_id=345125]
(16) Project
Output [45]: [0_1_10000002109 AS shardId#882207, worklistShardItemId#882275L, orderProposalId#882252L, orderProposalItemId#882253, orderProposalItemGroupId#882276, originalReplenishmentRunId#882294L, orderProposalHorizonGroupingId#882270L, splitIndicator#882271L, previousOrderProposal#882272L, clusterId#882273L, cast(sequenceId#882274 as bigint) AS sequenceId#882217L, sourceOfSupplyUuid#882266, supplierGroup#882254, supplier#882255, subrange#882258, product#882261, plant#882256, purchasingOrg#882267, purchasingGroup#882268, mrpController#882265, orderDateTime#882262, deliveryDateTime#882257, availabilityDateTime#882263, nextAvailabilityDateTime#882264, isFallbackOrderOnly#882269, orderQuantityBaseUom#882280, orderQuantityBaseUomUuid#882281, netPriceQuantity#882290, netPriceQuantityUom#882291, netPriceQuantityUomUuid#882292, netPriceAmount#882288, netPriceCurrencyCode#882289, measurements#882293, minimumOrderQuantity#882282, constraintLabels#882283, constraintOperators#882284, constraintRanks#882286, constraintValues#882285, constraintIsActive#882287, logisticUnits#882279, optimizationGroups#882295, externalProductId#882277, externalPlantId#882278, supplyingPlant#882259, productGroup#882260]
Input [44]: [orderProposalId#882252L, orderProposalItemId#882253, supplierGroup#882254, supplier#882255, plant#882256, deliveryDateTime#882257, subrange#882258, supplyingPlant#882259, productGroup#882260, product#882261, orderDateTime#882262, availabilityDateTime#882263, nextAvailabilityDateTime#882264, mrpController#882265, sourceOfSupplyUuid#882266, purchasingOrg#882267, purchasingGroup#882268, isFallbackOrderOnly#882269, orderProposalHorizonGroupingId#882270L, splitIndicator#882271L, previousOrderProposal#882272L, clusterId#882273L, sequenceId#882274, worklistShardItemId#882275L, orderProposalItemGroupId#882276, externalProductId#882277, externalPlantId#882278, logisticUnits#882279, orderQuantityBaseUom#882280, orderQuantityBaseUomUuid#882281, minimumOrderQuantity#882282, constraintLabels#882283, constraintOperators#882284, constraintValues#882285, constraintRanks#882286, constraintIsActive#882287, netPriceAmount#882288, netPriceCurrencyCode#882289, netPriceQuantity#882290, netPriceQuantityUom#882291, netPriceQuantityUomUuid#882292, measurements#882293, originalReplenishmentRunId#882294L, optimizationGroups#882295]
(17) AdaptiveSparkPlan
Output [45]: [shardId#882207, worklistShardItemId#882275L, orderProposalId#882252L, orderProposalItemId#882253, orderProposalItemGroupId#882276, originalReplenishmentRunId#882294L, orderProposalHorizonGroupingId#882270L, splitIndicator#882271L, previousOrderProposal#882272L, clusterId#882273L, sequenceId#882217L, sourceOfSupplyUuid#882266, supplierGroup#882254, supplier#882255, subrange#882258, product#882261, plant#882256, purchasingOrg#882267, purchasingGroup#882268, mrpController#882265, orderDateTime#882262, deliveryDateTime#882257, availabilityDateTime#882263, nextAvailabilityDateTime#882264, isFallbackOrderOnly#882269, orderQuantityBaseUom#882280, orderQuantityBaseUomUuid#882281, netPriceQuantity#882290, netPriceQuantityUom#882291, netPriceQuantityUomUuid#882292, netPriceAmount#882288, netPriceCurrencyCode#882289, measurements#882293, minimumOrderQuantity#882282, constraintLabels#882283, constraintOperators#882284, constraintRanks#882286, constraintValues#882285, constraintIsActive#882287, logisticUnits#882279, optimizationGroups#882295, externalProductId#882277, externalPlantId#882278, supplyingPlant#882259, productGroup#882260]
Arguments: isFinalPlan=true
(18) TableCacheQueryStage
Output [3]: [shardId#882207, worklistShardItemId#882208L, orderProposalId#882209L]
Arguments: 0
(19) Filter [codegen id : 1]
Input [3]: [shardId#882207, worklistShardItemId#882208L, orderProposalId#882209L]
Condition : (isnotnull(shardId#882207) AND isnotnull(orderProposalId#882209L))
(20) ObjectHashAggregate
Input [3]: [shardId#882207, worklistShardItemId#882208L, orderProposalId#882209L]
Keys [2]: [shardId#882207, orderProposalId#882209L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#882208L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#888956]
Results [3]: [shardId#882207, orderProposalId#882209L, buf#888957]
(21) Exchange
Input [3]: [shardId#882207, orderProposalId#882209L, buf#888957]
Arguments: hashpartitioning(shardId#882207, orderProposalId#882209L, 25), ENSURE_REQUIREMENTS, [plan_id=345519]
(22) ShuffleQueryStage [codegen id : 3]
Output [3]: [shardId#882207, orderProposalId#882209L, buf#888957]
Arguments: 2
(23) AQEShuffleRead [codegen id : 3]
Input [3]: [shardId#882207, orderProposalId#882209L, buf#888957]
Arguments: coalesced
(24) ObjectHashAggregate [codegen id : 3]
Input [3]: [shardId#882207, orderProposalId#882209L, buf#888957]
Keys [2]: [shardId#882207, orderProposalId#882209L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#882208L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#882208L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#887452]
Results [7]: [shardId#882207, orderProposalId#882209L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#882208L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#887452, lambdafunction(struct(worklistShardItemId, lambda x_2305#887473.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_2305#887473.quantityAfterProdPlantOptimization, qty, lambda x_2305#887473.optimalQuantity), lambda x_2305#887473, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#887474, [] AS optimizationGroups#887468, false AS isOptimal#887453, 2026-08-10 11:32:55.741479 AS lastModified#887472, [] AS optimizationInsights#887469]
(25) Union
(26) Exchange
Input [7]: [shardId#887461, orderProposalId#887462L, items#887463, optimizationGroups#887464, isOptimal#887465, lastModified#887466, optimizationInsights#887467]
Arguments: hashpartitioning(shardId#887461, orderProposalId#887462L, lastModified#887466, 25), ENSURE_REQUIREMENTS, [plan_id=345639]
(27) ShuffleQueryStage
Output [7]: [shardId#887461, orderProposalId#887462L, items#887463, optimizationGroups#887464, isOptimal#887465, lastModified#887466, optimizationInsights#887467]
Arguments: 4
(28) AQEShuffleRead
Input [7]: [shardId#887461, orderProposalId#887462L, items#887463, optimizationGroups#887464, isOptimal#887465, lastModified#887466, optimizationInsights#887467]
Arguments: local
(29) Scan ExistingRDD [codegen id : 4]
Output [7]: [shardId#887484, orderProposalId#887485L, items#887486, optimizationGroups#887487, isOptimal#887488, lastModified#887489, optimizationInsights#887490]
Arguments: [shardId#887484, orderProposalId#887485L, items#887486, optimizationGroups#887487, isOptimal#887488, lastModified#887489, optimizationInsights#887490], MapPartitionsRDD[41446] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(30) Filter [codegen id : 4]
Input [7]: [shardId#887484, orderProposalId#887485L, items#887486, optimizationGroups#887487, isOptimal#887488, lastModified#887489, optimizationInsights#887490]
Condition : (isnotnull(shardId#887484) AND isnotnull(orderProposalId#887485L))
(31) Project [codegen id : 4]
Output [3]: [shardId#887484, orderProposalId#887485L, lastModified#887489]
Input [7]: [shardId#887484, orderProposalId#887485L, items#887486, optimizationGroups#887487, isOptimal#887488, lastModified#887489, optimizationInsights#887490]
(32) InMemoryTableScan
Output [2]: [shardId#887491, orderProposalId#887493L]
Arguments: [shardId#887491, orderProposalId#887493L], [isnotnull(shardId#887491), isnotnull(orderProposalId#887493L)]
(33) InMemoryRelation
Arguments: [shardId#887491, worklistShardItemId#887492L, orderProposalId#887493L, orderProposalItemId#887494, orderProposalItemGroupId#887495, originalReplenishmentRunId#887496L, orderProposalHorizonGroupingId#887497L, splitIndicator#887498L, previousOrderProposal#887499L, clusterId#887500L, sequenceId#887501L, sourceOfSupplyUuid#887502, supplierGroup#887503, supplier#887504, subrange#887505, product#887506, plant#887507, purchasingOrg#887508, purchasingGroup#887509, mrpController#887510, orderDateTime#887511, deliveryDateTime#887512, availabilityDateTime#887513, nextAvailabilityDateTime#887514, isFallbackOrderOnly#887515, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(34) TableCacheQueryStage
Output [2]: [shardId#887491, orderProposalId#887493L]
Arguments: 1
(35) Filter [codegen id : 2]
Input [2]: [shardId#887491, orderProposalId#887493L]
Condition : (isnotnull(shardId#887491) AND isnotnull(orderProposalId#887493L))
(36) HashAggregate [codegen id : 2]
Input [2]: [shardId#887491, orderProposalId#887493L]
Keys [2]: [shardId#887491, orderProposalId#887493L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#887491, orderProposalId#887493L]
(37) Exchange
Input [2]: [shardId#887491, orderProposalId#887493L]
Arguments: hashpartitioning(shardId#887491, orderProposalId#887493L, 25), ENSURE_REQUIREMENTS, [plan_id=345555]
(38) ShuffleQueryStage
Output [2]: [shardId#887491, orderProposalId#887493L]
Arguments: 3
(39) AQEShuffleRead
Input [2]: [shardId#887491, orderProposalId#887493L]
Arguments: coalesced
(40) HashAggregate [codegen id : 5]
Input [2]: [shardId#887491, orderProposalId#887493L]
Keys [2]: [shardId#887491, orderProposalId#887493L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#887491, orderProposalId#887493L, 2026-08-10 11:32:55.741479 AS lastModified#887588]
(41) Union
(42) HashAggregate [codegen id : 6]
Input [3]: [shardId#887484, orderProposalId#887485L, lastModified#887489]
Keys [2]: [shardId#887484, orderProposalId#887485L]
Functions [1]: [partial_max(lastModified#887489)]
Aggregate Attributes [1]: [max#888958]
Results [3]: [shardId#887484, orderProposalId#887485L, max#888959]
(43) Exchange
Input [3]: [shardId#887484, orderProposalId#887485L, max#888959]
Arguments: hashpartitioning(shardId#887484, orderProposalId#887485L, 25), ENSURE_REQUIREMENTS, [plan_id=345721]
(44) ShuffleQueryStage
Output [3]: [shardId#887484, orderProposalId#887485L, max#888959]
Arguments: 5
(45) AQEShuffleRead
Input [3]: [shardId#887484, orderProposalId#887485L, max#888959]
Arguments: coalesced
(46) HashAggregate [codegen id : 7]
Input [3]: [shardId#887484, orderProposalId#887485L, max#888959]
Keys [2]: [shardId#887484, orderProposalId#887485L]
Functions [1]: [max(lastModified#887489)]
Aggregate Attributes [1]: [max(lastModified#887489)#887483]
Results [3]: [shardId#887484, orderProposalId#887485L, max(lastModified#887489)#887483 AS lastModified#887475]
(47) Filter [codegen id : 7]
Input [3]: [shardId#887484, orderProposalId#887485L, lastModified#887475]
Condition : isnotnull(lastModified#887475)
(48) BroadcastExchange
Input [3]: [shardId#887484, orderProposalId#887485L, lastModified#887475]
Arguments: HashedRelationBroadcastMode(List(input[0, string, true], input[1, bigint, true], input[2, timestamp, false]),false), [plan_id=345801]
(49) BroadcastQueryStage
Output [3]: [shardId#887484, orderProposalId#887485L, lastModified#887475]
Arguments: 6
(50) BroadcastHashJoin [codegen id : 8]
Left keys [3]: [shardId#887461, orderProposalId#887462L, lastModified#887466]
Right keys [3]: [shardId#887484, orderProposalId#887485L, lastModified#887475]
Join type: Inner
Join condition: None
(51) Project [codegen id : 8]
Output [7]: [shardId#887461, orderProposalId#887462L, items#887463, optimizationGroups#887464, isOptimal#887465, lastModified#887466, optimizationInsights#887467]
Input [10]: [shardId#887461, orderProposalId#887462L, items#887463, optimizationGroups#887464, isOptimal#887465, lastModified#887466, optimizationInsights#887467, shardId#887484, orderProposalId#887485L, lastModified#887475]
(52) DeserializeToObject
Input [7]: [shardId#887461, orderProposalId#887462L, items#887463, optimizationGroups#887464, isOptimal#887465, lastModified#887466, optimizationInsights#887467]
Arguments: createexternalrow(invoke(shardId#887461.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#887462L)), 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#887463, 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#887464, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#887465)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#887466)), 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#887467, 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#887605: org.apache.spark.sql.Row
(53) ResultQueryStage
Output [1]: [obj#887605]
Arguments: 7
(54) Filter
Input [3]: [shardId#882207, worklistShardItemId#882208L, orderProposalId#882209L]
Condition : (isnotnull(shardId#882207) AND isnotnull(orderProposalId#882209L))
(55) ObjectHashAggregate
Input [3]: [shardId#882207, worklistShardItemId#882208L, orderProposalId#882209L]
Keys [2]: [shardId#882207, orderProposalId#882209L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#882208L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#888956]
Results [3]: [shardId#882207, orderProposalId#882209L, buf#888957]
(56) Exchange
Input [3]: [shardId#882207, orderProposalId#882209L, buf#888957]
Arguments: hashpartitioning(shardId#882207, orderProposalId#882209L, 25), ENSURE_REQUIREMENTS, [plan_id=345348]
(57) ObjectHashAggregate
Input [3]: [shardId#882207, orderProposalId#882209L, buf#888957]
Keys [2]: [shardId#882207, orderProposalId#882209L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#882208L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#882208L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#887452]
Results [7]: [shardId#882207, orderProposalId#882209L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#882208L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#887452, lambdafunction(struct(worklistShardItemId, lambda x_2305#887473.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_2305#887473.quantityAfterProdPlantOptimization, qty, lambda x_2305#887473.optimalQuantity), lambda x_2305#887473, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#887474, [] AS optimizationGroups#887468, false AS isOptimal#887453, 2026-08-10 11:32:55.741479 AS lastModified#887472, [] AS optimizationInsights#887469]
(58) Union
(59) Exchange
Input [7]: [shardId#887461, orderProposalId#887462L, items#887463, optimizationGroups#887464, isOptimal#887465, lastModified#887466, optimizationInsights#887467]
Arguments: hashpartitioning(shardId#887461, orderProposalId#887462L, lastModified#887466, 25), ENSURE_REQUIREMENTS, [plan_id=345361]
(60) Sort
Input [7]: [shardId#887461, orderProposalId#887462L, items#887463, optimizationGroups#887464, isOptimal#887465, lastModified#887466, optimizationInsights#887467]
Arguments: [shardId#887461 ASC NULLS FIRST, orderProposalId#887462L ASC NULLS FIRST, lastModified#887466 ASC NULLS FIRST], false, 0
(61) Filter
Input [2]: [shardId#887491, orderProposalId#887493L]
Condition : (isnotnull(shardId#887491) AND isnotnull(orderProposalId#887493L))
(62) HashAggregate
Input [2]: [shardId#887491, orderProposalId#887493L]
Keys [2]: [shardId#887491, orderProposalId#887493L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#887491, orderProposalId#887493L]
(63) Exchange
Input [2]: [shardId#887491, orderProposalId#887493L]
Arguments: hashpartitioning(shardId#887491, orderProposalId#887493L, 25), ENSURE_REQUIREMENTS, [plan_id=345351]
(64) HashAggregate
Input [2]: [shardId#887491, orderProposalId#887493L]
Keys [2]: [shardId#887491, orderProposalId#887493L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#887491, orderProposalId#887493L, 2026-08-10 11:32:55.741479 AS lastModified#887588]
(65) Union
(66) HashAggregate
Input [3]: [shardId#887484, orderProposalId#887485L, lastModified#887489]
Keys [2]: [shardId#887484, orderProposalId#887485L]
Functions [1]: [partial_max(lastModified#887489)]
Aggregate Attributes [1]: [max#888958]
Results [3]: [shardId#887484, orderProposalId#887485L, max#888959]
(67) Exchange
Input [3]: [shardId#887484, orderProposalId#887485L, max#888959]
Arguments: hashpartitioning(shardId#887484, orderProposalId#887485L, 25), ENSURE_REQUIREMENTS, [plan_id=345356]
(68) HashAggregate
Input [3]: [shardId#887484, orderProposalId#887485L, max#888959]
Keys [2]: [shardId#887484, orderProposalId#887485L]
Functions [1]: [max(lastModified#887489)]
Aggregate Attributes [1]: [max(lastModified#887489)#887483]
Results [3]: [shardId#887484, orderProposalId#887485L, max(lastModified#887489)#887483 AS lastModified#887475]
(69) Filter
Input [3]: [shardId#887484, orderProposalId#887485L, lastModified#887475]
Condition : isnotnull(lastModified#887475)
(70) Exchange
Input [3]: [shardId#887484, orderProposalId#887485L, lastModified#887475]
Arguments: hashpartitioning(shardId#887484, orderProposalId#887485L, lastModified#887475, 25), ENSURE_REQUIREMENTS, [plan_id=345362]
(71) Sort
Input [3]: [shardId#887484, orderProposalId#887485L, lastModified#887475]
Arguments: [shardId#887484 ASC NULLS FIRST, orderProposalId#887485L ASC NULLS FIRST, lastModified#887475 ASC NULLS FIRST], false, 0
(72) SortMergeJoin
Left keys [3]: [shardId#887461, orderProposalId#887462L, lastModified#887466]
Right keys [3]: [shardId#887484, orderProposalId#887485L, lastModified#887475]
Join type: Inner
Join condition: None
(73) Project
Output [7]: [shardId#887461, orderProposalId#887462L, items#887463, optimizationGroups#887464, isOptimal#887465, lastModified#887466, optimizationInsights#887467]
Input [10]: [shardId#887461, orderProposalId#887462L, items#887463, optimizationGroups#887464, isOptimal#887465, lastModified#887466, optimizationInsights#887467, shardId#887484, orderProposalId#887485L, lastModified#887475]
(74) DeserializeToObject
Input [7]: [shardId#887461, orderProposalId#887462L, items#887463, optimizationGroups#887464, isOptimal#887465, lastModified#887466, optimizationInsights#887467]
Arguments: createexternalrow(invoke(shardId#887461.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#887462L)), 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#887463, 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#887464, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#887465)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#887466)), 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#887467, 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#887605: org.apache.spark.sql.Row
(75) AdaptiveSparkPlan
Output [1]: [obj#887605]
Arguments: isFinalPlan=true