== Physical Plan ==
AdaptiveSparkPlan (75)
+- == Final Plan ==
ResultQueryStage (53), Statistics(sizeInBytes=8.0 EiB)
+- DeserializeToObject (52)
+- * Project (51)
+- * BroadcastHashJoin Inner BuildLeft (50)
:- BroadcastQueryStage (30), Statistics(sizeInBytes=2.0 MiB, rowCount=59)
: +- BroadcastExchange (29)
: +- AQEShuffleRead (28)
: +- ShuffleQueryStage (27), Statistics(sizeInBytes=44.7 KiB, rowCount=59)
: +- Exchange (26)
: +- Union (25)
: :- * Filter (2)
: : +- * Scan ExistingRDD (1)
: +- ObjectHashAggregate (24)
: +- AQEShuffleRead (23)
: +- ShuffleQueryStage (22), Statistics(sizeInBytes=84.7 KiB, rowCount=594)
: +- Exchange (21)
: +- ObjectHashAggregate (20)
: +- * Filter (19)
: +- TableCacheQueryStage (18), Statistics(sizeInBytes=1315.8 KiB, rowCount=980)
: +- InMemoryTableScan (3)
: +- InMemoryRelation (4)
: +- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=1456.9 KiB, rowCount=980)
+- Exchange (9)
+- * Project (8)
+- * Filter (7)
+- * ColumnarToRow (6)
+- Scan parquet (5)
+- == Initial Plan ==
Project (16)
+- Exchange (15)
+- Project (14)
+- Filter (13)
+- Scan parquet (5)
+- * Filter (49)
+- * HashAggregate (48)
+- AQEShuffleRead (47)
+- ShuffleQueryStage (46), Statistics(sizeInBytes=2.8 KiB, rowCount=59)
+- Exchange (45)
+- * HashAggregate (44)
+- Union (43)
:- * Project (33)
: +- * Filter (32)
: +- * Scan ExistingRDD (31)
+- * HashAggregate (42)
+- AQEShuffleRead (41)
+- ShuffleQueryStage (40), Statistics(sizeInBytes=23.2 KiB, rowCount=594)
+- Exchange (39)
+- * HashAggregate (38)
+- * Filter (37)
+- TableCacheQueryStage (36), Statistics(sizeInBytes=1315.8 KiB, rowCount=980)
+- InMemoryTableScan (34)
+- InMemoryRelation (35)
+- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=1456.9 KiB, rowCount=980)
+- 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=1456.9 KiB, rowCount=980)
+- 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 (33)
: +- Filter (32)
: +- Scan ExistingRDD (31)
+- HashAggregate (64)
+- Exchange (63)
+- HashAggregate (62)
+- Filter (61)
+- InMemoryTableScan (34)
+- InMemoryRelation (35)
+- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=1456.9 KiB, rowCount=980)
+- 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#771334, orderProposalId#771335L, items#771336, optimizationGroups#771337, isOptimal#771338, lastModified#771339, optimizationInsights#771340]
Arguments: [shardId#771334, orderProposalId#771335L, items#771336, optimizationGroups#771337, isOptimal#771338, lastModified#771339, optimizationInsights#771340], MapPartitionsRDD[36063] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(2) Filter [codegen id : 3]
Input [7]: [shardId#771334, orderProposalId#771335L, items#771336, optimizationGroups#771337, isOptimal#771338, lastModified#771339, optimizationInsights#771340]
Condition : ((isnotnull(shardId#771334) AND isnotnull(orderProposalId#771335L)) AND isnotnull(lastModified#771339))
(3) InMemoryTableScan
Output [3]: [shardId#766080, worklistShardItemId#766081L, orderProposalId#766082L]
Arguments: [shardId#766080, worklistShardItemId#766081L, orderProposalId#766082L], [isnotnull(shardId#766080), isnotnull(orderProposalId#766082L)]
(4) InMemoryRelation
Arguments: [shardId#766080, worklistShardItemId#766081L, orderProposalId#766082L, orderProposalItemId#766083, orderProposalItemGroupId#766084, originalReplenishmentRunId#766085L, orderProposalHorizonGroupingId#766086L, splitIndicator#766087L, previousOrderProposal#766088L, clusterId#766089L, sequenceId#766090L, sourceOfSupplyUuid#766091, supplierGroup#766092, supplier#766093, subrange#766094, product#766095, plant#766096, purchasingOrg#766097, purchasingGroup#766098, mrpController#766099, orderDateTime#766100, deliveryDateTime#766101, availabilityDateTime#766102, nextAvailabilityDateTime#766103, isFallbackOrderOnly#766104, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(5) Scan parquet
Output [45]: [orderProposalId#766125L, orderProposalItemId#766126, supplierGroup#766127, supplier#766128, plant#766129, deliveryDateTime#766130, subrange#766131, supplyingPlant#766132, productGroup#766133, product#766134, orderDateTime#766135, availabilityDateTime#766136, nextAvailabilityDateTime#766137, mrpController#766138, sourceOfSupplyUuid#766139, purchasingOrg#766140, purchasingGroup#766141, isFallbackOrderOnly#766142, orderProposalHorizonGroupingId#766143L, splitIndicator#766144L, previousOrderProposal#766145L, clusterId#766146L, worklistShardItemId#766148L, orderProposalItemGroupId#766149, externalProductId#766150, externalPlantId#766151, logisticUnits#766152, orderQuantityBaseUom#766153, orderQuantityBaseUomUuid#766154, minimumOrderQuantity#766155, constraintLabels#766156, constraintOperators#766157, constraintValues#766158, constraintRanks#766159, constraintIsActive#766160, netPriceAmount#766161, netPriceCurrencyCode#766162, netPriceQuantity#766163, netPriceQuantityUom#766164, netPriceQuantityUomUuid#766165, measurements#766166, originalReplenishmentRunId#766167L, optimizationGroups#766168, shardId#766169, sequenceId#766147]
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/10000002108]
PartitionFilters: [isnotnull(shardId#766169), isnotnull(sequenceId#766147), (shardId#766169 = 0_1_10000002108), (sequenceId#766147 = 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#766125L, orderProposalItemId#766126, supplierGroup#766127, supplier#766128, plant#766129, deliveryDateTime#766130, subrange#766131, supplyingPlant#766132, productGroup#766133, product#766134, orderDateTime#766135, availabilityDateTime#766136, nextAvailabilityDateTime#766137, mrpController#766138, sourceOfSupplyUuid#766139, purchasingOrg#766140, purchasingGroup#766141, isFallbackOrderOnly#766142, orderProposalHorizonGroupingId#766143L, splitIndicator#766144L, previousOrderProposal#766145L, clusterId#766146L, worklistShardItemId#766148L, orderProposalItemGroupId#766149, externalProductId#766150, externalPlantId#766151, logisticUnits#766152, orderQuantityBaseUom#766153, orderQuantityBaseUomUuid#766154, minimumOrderQuantity#766155, constraintLabels#766156, constraintOperators#766157, constraintValues#766158, constraintRanks#766159, constraintIsActive#766160, netPriceAmount#766161, netPriceCurrencyCode#766162, netPriceQuantity#766163, netPriceQuantityUom#766164, netPriceQuantityUomUuid#766165, measurements#766166, originalReplenishmentRunId#766167L, optimizationGroups#766168, shardId#766169, sequenceId#766147]
(7) Filter [codegen id : 1]
Input [45]: [orderProposalId#766125L, orderProposalItemId#766126, supplierGroup#766127, supplier#766128, plant#766129, deliveryDateTime#766130, subrange#766131, supplyingPlant#766132, productGroup#766133, product#766134, orderDateTime#766135, availabilityDateTime#766136, nextAvailabilityDateTime#766137, mrpController#766138, sourceOfSupplyUuid#766139, purchasingOrg#766140, purchasingGroup#766141, isFallbackOrderOnly#766142, orderProposalHorizonGroupingId#766143L, splitIndicator#766144L, previousOrderProposal#766145L, clusterId#766146L, worklistShardItemId#766148L, orderProposalItemGroupId#766149, externalProductId#766150, externalPlantId#766151, logisticUnits#766152, orderQuantityBaseUom#766153, orderQuantityBaseUomUuid#766154, minimumOrderQuantity#766155, constraintLabels#766156, constraintOperators#766157, constraintValues#766158, constraintRanks#766159, constraintIsActive#766160, netPriceAmount#766161, netPriceCurrencyCode#766162, netPriceQuantity#766163, netPriceQuantityUom#766164, netPriceQuantityUomUuid#766165, measurements#766166, originalReplenishmentRunId#766167L, optimizationGroups#766168, shardId#766169, sequenceId#766147]
Condition : ((isnotnull(availabilityDateTime#766136) AND isnotnull(nextAvailabilityDateTime#766137)) AND (nextAvailabilityDateTime#766137 > availabilityDateTime#766136))
(8) Project [codegen id : 1]
Output [44]: [orderProposalId#766125L, orderProposalItemId#766126, supplierGroup#766127, supplier#766128, plant#766129, deliveryDateTime#766130, subrange#766131, supplyingPlant#766132, productGroup#766133, product#766134, orderDateTime#766135, availabilityDateTime#766136, nextAvailabilityDateTime#766137, mrpController#766138, sourceOfSupplyUuid#766139, purchasingOrg#766140, purchasingGroup#766141, isFallbackOrderOnly#766142, orderProposalHorizonGroupingId#766143L, splitIndicator#766144L, previousOrderProposal#766145L, clusterId#766146L, sequenceId#766147, worklistShardItemId#766148L, orderProposalItemGroupId#766149, externalProductId#766150, externalPlantId#766151, logisticUnits#766152, orderQuantityBaseUom#766153, orderQuantityBaseUomUuid#766154, minimumOrderQuantity#766155, constraintLabels#766156, constraintOperators#766157, constraintValues#766158, constraintRanks#766159, constraintIsActive#766160, netPriceAmount#766161, netPriceCurrencyCode#766162, netPriceQuantity#766163, netPriceQuantityUom#766164, netPriceQuantityUomUuid#766165, measurements#766166, originalReplenishmentRunId#766167L, optimizationGroups#766168]
Input [45]: [orderProposalId#766125L, orderProposalItemId#766126, supplierGroup#766127, supplier#766128, plant#766129, deliveryDateTime#766130, subrange#766131, supplyingPlant#766132, productGroup#766133, product#766134, orderDateTime#766135, availabilityDateTime#766136, nextAvailabilityDateTime#766137, mrpController#766138, sourceOfSupplyUuid#766139, purchasingOrg#766140, purchasingGroup#766141, isFallbackOrderOnly#766142, orderProposalHorizonGroupingId#766143L, splitIndicator#766144L, previousOrderProposal#766145L, clusterId#766146L, worklistShardItemId#766148L, orderProposalItemGroupId#766149, externalProductId#766150, externalPlantId#766151, logisticUnits#766152, orderQuantityBaseUom#766153, orderQuantityBaseUomUuid#766154, minimumOrderQuantity#766155, constraintLabels#766156, constraintOperators#766157, constraintValues#766158, constraintRanks#766159, constraintIsActive#766160, netPriceAmount#766161, netPriceCurrencyCode#766162, netPriceQuantity#766163, netPriceQuantityUom#766164, netPriceQuantityUomUuid#766165, measurements#766166, originalReplenishmentRunId#766167L, optimizationGroups#766168, shardId#766169, sequenceId#766147]
(9) Exchange
Input [44]: [orderProposalId#766125L, orderProposalItemId#766126, supplierGroup#766127, supplier#766128, plant#766129, deliveryDateTime#766130, subrange#766131, supplyingPlant#766132, productGroup#766133, product#766134, orderDateTime#766135, availabilityDateTime#766136, nextAvailabilityDateTime#766137, mrpController#766138, sourceOfSupplyUuid#766139, purchasingOrg#766140, purchasingGroup#766141, isFallbackOrderOnly#766142, orderProposalHorizonGroupingId#766143L, splitIndicator#766144L, previousOrderProposal#766145L, clusterId#766146L, sequenceId#766147, worklistShardItemId#766148L, orderProposalItemGroupId#766149, externalProductId#766150, externalPlantId#766151, logisticUnits#766152, orderQuantityBaseUom#766153, orderQuantityBaseUomUuid#766154, minimumOrderQuantity#766155, constraintLabels#766156, constraintOperators#766157, constraintValues#766158, constraintRanks#766159, constraintIsActive#766160, netPriceAmount#766161, netPriceCurrencyCode#766162, netPriceQuantity#766163, netPriceQuantityUom#766164, netPriceQuantityUomUuid#766165, measurements#766166, originalReplenishmentRunId#766167L, optimizationGroups#766168]
Arguments: hashpartitioning(worklistShardItemId#766148L, 25), REPARTITION_BY_NUM, [plan_id=304383]
(10) ShuffleQueryStage
Output [44]: [orderProposalId#766125L, orderProposalItemId#766126, supplierGroup#766127, supplier#766128, plant#766129, deliveryDateTime#766130, subrange#766131, supplyingPlant#766132, productGroup#766133, product#766134, orderDateTime#766135, availabilityDateTime#766136, nextAvailabilityDateTime#766137, mrpController#766138, sourceOfSupplyUuid#766139, purchasingOrg#766140, purchasingGroup#766141, isFallbackOrderOnly#766142, orderProposalHorizonGroupingId#766143L, splitIndicator#766144L, previousOrderProposal#766145L, clusterId#766146L, sequenceId#766147, worklistShardItemId#766148L, orderProposalItemGroupId#766149, externalProductId#766150, externalPlantId#766151, logisticUnits#766152, orderQuantityBaseUom#766153, orderQuantityBaseUomUuid#766154, minimumOrderQuantity#766155, constraintLabels#766156, constraintOperators#766157, constraintValues#766158, constraintRanks#766159, constraintIsActive#766160, netPriceAmount#766161, netPriceCurrencyCode#766162, netPriceQuantity#766163, netPriceQuantityUom#766164, netPriceQuantityUomUuid#766165, measurements#766166, originalReplenishmentRunId#766167L, optimizationGroups#766168]
Arguments: 0
(11) Project [codegen id : 2]
Output [45]: [0_1_10000002108 AS shardId#766080, worklistShardItemId#766148L, orderProposalId#766125L, orderProposalItemId#766126, orderProposalItemGroupId#766149, originalReplenishmentRunId#766167L, orderProposalHorizonGroupingId#766143L, splitIndicator#766144L, previousOrderProposal#766145L, clusterId#766146L, cast(sequenceId#766147 as bigint) AS sequenceId#766090L, sourceOfSupplyUuid#766139, supplierGroup#766127, supplier#766128, subrange#766131, product#766134, plant#766129, purchasingOrg#766140, purchasingGroup#766141, mrpController#766138, orderDateTime#766135, deliveryDateTime#766130, availabilityDateTime#766136, nextAvailabilityDateTime#766137, isFallbackOrderOnly#766142, orderQuantityBaseUom#766153, orderQuantityBaseUomUuid#766154, netPriceQuantity#766163, netPriceQuantityUom#766164, netPriceQuantityUomUuid#766165, netPriceAmount#766161, netPriceCurrencyCode#766162, measurements#766166, minimumOrderQuantity#766155, constraintLabels#766156, constraintOperators#766157, constraintRanks#766159, constraintValues#766158, constraintIsActive#766160, logisticUnits#766152, optimizationGroups#766168, externalProductId#766150, externalPlantId#766151, supplyingPlant#766132, productGroup#766133]
Input [44]: [orderProposalId#766125L, orderProposalItemId#766126, supplierGroup#766127, supplier#766128, plant#766129, deliveryDateTime#766130, subrange#766131, supplyingPlant#766132, productGroup#766133, product#766134, orderDateTime#766135, availabilityDateTime#766136, nextAvailabilityDateTime#766137, mrpController#766138, sourceOfSupplyUuid#766139, purchasingOrg#766140, purchasingGroup#766141, isFallbackOrderOnly#766142, orderProposalHorizonGroupingId#766143L, splitIndicator#766144L, previousOrderProposal#766145L, clusterId#766146L, sequenceId#766147, worklistShardItemId#766148L, orderProposalItemGroupId#766149, externalProductId#766150, externalPlantId#766151, logisticUnits#766152, orderQuantityBaseUom#766153, orderQuantityBaseUomUuid#766154, minimumOrderQuantity#766155, constraintLabels#766156, constraintOperators#766157, constraintValues#766158, constraintRanks#766159, constraintIsActive#766160, netPriceAmount#766161, netPriceCurrencyCode#766162, netPriceQuantity#766163, netPriceQuantityUom#766164, netPriceQuantityUomUuid#766165, measurements#766166, originalReplenishmentRunId#766167L, optimizationGroups#766168]
(12) ResultQueryStage
Output [45]: [shardId#766080, worklistShardItemId#766148L, orderProposalId#766125L, orderProposalItemId#766126, orderProposalItemGroupId#766149, originalReplenishmentRunId#766167L, orderProposalHorizonGroupingId#766143L, splitIndicator#766144L, previousOrderProposal#766145L, clusterId#766146L, sequenceId#766090L, sourceOfSupplyUuid#766139, supplierGroup#766127, supplier#766128, subrange#766131, product#766134, plant#766129, purchasingOrg#766140, purchasingGroup#766141, mrpController#766138, orderDateTime#766135, deliveryDateTime#766130, availabilityDateTime#766136, nextAvailabilityDateTime#766137, isFallbackOrderOnly#766142, orderQuantityBaseUom#766153, orderQuantityBaseUomUuid#766154, netPriceQuantity#766163, netPriceQuantityUom#766164, netPriceQuantityUomUuid#766165, netPriceAmount#766161, netPriceCurrencyCode#766162, measurements#766166, minimumOrderQuantity#766155, constraintLabels#766156, constraintOperators#766157, constraintRanks#766159, constraintValues#766158, constraintIsActive#766160, logisticUnits#766152, optimizationGroups#766168, externalProductId#766150, externalPlantId#766151, supplyingPlant#766132, productGroup#766133]
Arguments: 1
(13) Filter
Input [45]: [orderProposalId#766125L, orderProposalItemId#766126, supplierGroup#766127, supplier#766128, plant#766129, deliveryDateTime#766130, subrange#766131, supplyingPlant#766132, productGroup#766133, product#766134, orderDateTime#766135, availabilityDateTime#766136, nextAvailabilityDateTime#766137, mrpController#766138, sourceOfSupplyUuid#766139, purchasingOrg#766140, purchasingGroup#766141, isFallbackOrderOnly#766142, orderProposalHorizonGroupingId#766143L, splitIndicator#766144L, previousOrderProposal#766145L, clusterId#766146L, worklistShardItemId#766148L, orderProposalItemGroupId#766149, externalProductId#766150, externalPlantId#766151, logisticUnits#766152, orderQuantityBaseUom#766153, orderQuantityBaseUomUuid#766154, minimumOrderQuantity#766155, constraintLabels#766156, constraintOperators#766157, constraintValues#766158, constraintRanks#766159, constraintIsActive#766160, netPriceAmount#766161, netPriceCurrencyCode#766162, netPriceQuantity#766163, netPriceQuantityUom#766164, netPriceQuantityUomUuid#766165, measurements#766166, originalReplenishmentRunId#766167L, optimizationGroups#766168, shardId#766169, sequenceId#766147]
Condition : ((isnotnull(availabilityDateTime#766136) AND isnotnull(nextAvailabilityDateTime#766137)) AND (nextAvailabilityDateTime#766137 > availabilityDateTime#766136))
(14) Project
Output [44]: [orderProposalId#766125L, orderProposalItemId#766126, supplierGroup#766127, supplier#766128, plant#766129, deliveryDateTime#766130, subrange#766131, supplyingPlant#766132, productGroup#766133, product#766134, orderDateTime#766135, availabilityDateTime#766136, nextAvailabilityDateTime#766137, mrpController#766138, sourceOfSupplyUuid#766139, purchasingOrg#766140, purchasingGroup#766141, isFallbackOrderOnly#766142, orderProposalHorizonGroupingId#766143L, splitIndicator#766144L, previousOrderProposal#766145L, clusterId#766146L, sequenceId#766147, worklistShardItemId#766148L, orderProposalItemGroupId#766149, externalProductId#766150, externalPlantId#766151, logisticUnits#766152, orderQuantityBaseUom#766153, orderQuantityBaseUomUuid#766154, minimumOrderQuantity#766155, constraintLabels#766156, constraintOperators#766157, constraintValues#766158, constraintRanks#766159, constraintIsActive#766160, netPriceAmount#766161, netPriceCurrencyCode#766162, netPriceQuantity#766163, netPriceQuantityUom#766164, netPriceQuantityUomUuid#766165, measurements#766166, originalReplenishmentRunId#766167L, optimizationGroups#766168]
Input [45]: [orderProposalId#766125L, orderProposalItemId#766126, supplierGroup#766127, supplier#766128, plant#766129, deliveryDateTime#766130, subrange#766131, supplyingPlant#766132, productGroup#766133, product#766134, orderDateTime#766135, availabilityDateTime#766136, nextAvailabilityDateTime#766137, mrpController#766138, sourceOfSupplyUuid#766139, purchasingOrg#766140, purchasingGroup#766141, isFallbackOrderOnly#766142, orderProposalHorizonGroupingId#766143L, splitIndicator#766144L, previousOrderProposal#766145L, clusterId#766146L, worklistShardItemId#766148L, orderProposalItemGroupId#766149, externalProductId#766150, externalPlantId#766151, logisticUnits#766152, orderQuantityBaseUom#766153, orderQuantityBaseUomUuid#766154, minimumOrderQuantity#766155, constraintLabels#766156, constraintOperators#766157, constraintValues#766158, constraintRanks#766159, constraintIsActive#766160, netPriceAmount#766161, netPriceCurrencyCode#766162, netPriceQuantity#766163, netPriceQuantityUom#766164, netPriceQuantityUomUuid#766165, measurements#766166, originalReplenishmentRunId#766167L, optimizationGroups#766168, shardId#766169, sequenceId#766147]
(15) Exchange
Input [44]: [orderProposalId#766125L, orderProposalItemId#766126, supplierGroup#766127, supplier#766128, plant#766129, deliveryDateTime#766130, subrange#766131, supplyingPlant#766132, productGroup#766133, product#766134, orderDateTime#766135, availabilityDateTime#766136, nextAvailabilityDateTime#766137, mrpController#766138, sourceOfSupplyUuid#766139, purchasingOrg#766140, purchasingGroup#766141, isFallbackOrderOnly#766142, orderProposalHorizonGroupingId#766143L, splitIndicator#766144L, previousOrderProposal#766145L, clusterId#766146L, sequenceId#766147, worklistShardItemId#766148L, orderProposalItemGroupId#766149, externalProductId#766150, externalPlantId#766151, logisticUnits#766152, orderQuantityBaseUom#766153, orderQuantityBaseUomUuid#766154, minimumOrderQuantity#766155, constraintLabels#766156, constraintOperators#766157, constraintValues#766158, constraintRanks#766159, constraintIsActive#766160, netPriceAmount#766161, netPriceCurrencyCode#766162, netPriceQuantity#766163, netPriceQuantityUom#766164, netPriceQuantityUomUuid#766165, measurements#766166, originalReplenishmentRunId#766167L, optimizationGroups#766168]
Arguments: hashpartitioning(worklistShardItemId#766148L, 25), REPARTITION_BY_NUM, [plan_id=304355]
(16) Project
Output [45]: [0_1_10000002108 AS shardId#766080, worklistShardItemId#766148L, orderProposalId#766125L, orderProposalItemId#766126, orderProposalItemGroupId#766149, originalReplenishmentRunId#766167L, orderProposalHorizonGroupingId#766143L, splitIndicator#766144L, previousOrderProposal#766145L, clusterId#766146L, cast(sequenceId#766147 as bigint) AS sequenceId#766090L, sourceOfSupplyUuid#766139, supplierGroup#766127, supplier#766128, subrange#766131, product#766134, plant#766129, purchasingOrg#766140, purchasingGroup#766141, mrpController#766138, orderDateTime#766135, deliveryDateTime#766130, availabilityDateTime#766136, nextAvailabilityDateTime#766137, isFallbackOrderOnly#766142, orderQuantityBaseUom#766153, orderQuantityBaseUomUuid#766154, netPriceQuantity#766163, netPriceQuantityUom#766164, netPriceQuantityUomUuid#766165, netPriceAmount#766161, netPriceCurrencyCode#766162, measurements#766166, minimumOrderQuantity#766155, constraintLabels#766156, constraintOperators#766157, constraintRanks#766159, constraintValues#766158, constraintIsActive#766160, logisticUnits#766152, optimizationGroups#766168, externalProductId#766150, externalPlantId#766151, supplyingPlant#766132, productGroup#766133]
Input [44]: [orderProposalId#766125L, orderProposalItemId#766126, supplierGroup#766127, supplier#766128, plant#766129, deliveryDateTime#766130, subrange#766131, supplyingPlant#766132, productGroup#766133, product#766134, orderDateTime#766135, availabilityDateTime#766136, nextAvailabilityDateTime#766137, mrpController#766138, sourceOfSupplyUuid#766139, purchasingOrg#766140, purchasingGroup#766141, isFallbackOrderOnly#766142, orderProposalHorizonGroupingId#766143L, splitIndicator#766144L, previousOrderProposal#766145L, clusterId#766146L, sequenceId#766147, worklistShardItemId#766148L, orderProposalItemGroupId#766149, externalProductId#766150, externalPlantId#766151, logisticUnits#766152, orderQuantityBaseUom#766153, orderQuantityBaseUomUuid#766154, minimumOrderQuantity#766155, constraintLabels#766156, constraintOperators#766157, constraintValues#766158, constraintRanks#766159, constraintIsActive#766160, netPriceAmount#766161, netPriceCurrencyCode#766162, netPriceQuantity#766163, netPriceQuantityUom#766164, netPriceQuantityUomUuid#766165, measurements#766166, originalReplenishmentRunId#766167L, optimizationGroups#766168]
(17) AdaptiveSparkPlan
Output [45]: [shardId#766080, worklistShardItemId#766148L, orderProposalId#766125L, orderProposalItemId#766126, orderProposalItemGroupId#766149, originalReplenishmentRunId#766167L, orderProposalHorizonGroupingId#766143L, splitIndicator#766144L, previousOrderProposal#766145L, clusterId#766146L, sequenceId#766090L, sourceOfSupplyUuid#766139, supplierGroup#766127, supplier#766128, subrange#766131, product#766134, plant#766129, purchasingOrg#766140, purchasingGroup#766141, mrpController#766138, orderDateTime#766135, deliveryDateTime#766130, availabilityDateTime#766136, nextAvailabilityDateTime#766137, isFallbackOrderOnly#766142, orderQuantityBaseUom#766153, orderQuantityBaseUomUuid#766154, netPriceQuantity#766163, netPriceQuantityUom#766164, netPriceQuantityUomUuid#766165, netPriceAmount#766161, netPriceCurrencyCode#766162, measurements#766166, minimumOrderQuantity#766155, constraintLabels#766156, constraintOperators#766157, constraintRanks#766159, constraintValues#766158, constraintIsActive#766160, logisticUnits#766152, optimizationGroups#766168, externalProductId#766150, externalPlantId#766151, supplyingPlant#766132, productGroup#766133]
Arguments: isFinalPlan=true
(18) TableCacheQueryStage
Output [3]: [shardId#766080, worklistShardItemId#766081L, orderProposalId#766082L]
Arguments: 0
(19) Filter [codegen id : 1]
Input [3]: [shardId#766080, worklistShardItemId#766081L, orderProposalId#766082L]
Condition : (isnotnull(shardId#766080) AND isnotnull(orderProposalId#766082L))
(20) ObjectHashAggregate
Input [3]: [shardId#766080, worklistShardItemId#766081L, orderProposalId#766082L]
Keys [2]: [shardId#766080, orderProposalId#766082L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#766081L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#772829]
Results [3]: [shardId#766080, orderProposalId#766082L, buf#772830]
(21) Exchange
Input [3]: [shardId#766080, orderProposalId#766082L, buf#772830]
Arguments: hashpartitioning(shardId#766080, orderProposalId#766082L, 25), ENSURE_REQUIREMENTS, [plan_id=304749]
(22) ShuffleQueryStage [codegen id : 3]
Output [3]: [shardId#766080, orderProposalId#766082L, buf#772830]
Arguments: 2
(23) AQEShuffleRead [codegen id : 3]
Input [3]: [shardId#766080, orderProposalId#766082L, buf#772830]
Arguments: coalesced
(24) ObjectHashAggregate [codegen id : 3]
Input [3]: [shardId#766080, orderProposalId#766082L, buf#772830]
Keys [2]: [shardId#766080, orderProposalId#766082L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#766081L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#766081L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#771325]
Results [7]: [shardId#766080, orderProposalId#766082L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#766081L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#771325, lambdafunction(struct(worklistShardItemId, lambda x_2011#771346.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_2011#771346.quantityAfterProdPlantOptimization, qty, lambda x_2011#771346.optimalQuantity), lambda x_2011#771346, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#771347, [] AS optimizationGroups#771341, false AS isOptimal#771326, 2026-08-10 09:39:20.159354 AS lastModified#771345, [] AS optimizationInsights#771342]
(25) Union
(26) Exchange
Input [7]: [shardId#771334, orderProposalId#771335L, items#771336, optimizationGroups#771337, isOptimal#771338, lastModified#771339, optimizationInsights#771340]
Arguments: hashpartitioning(shardId#771334, orderProposalId#771335L, lastModified#771339, 25), ENSURE_REQUIREMENTS, [plan_id=304869]
(27) ShuffleQueryStage
Output [7]: [shardId#771334, orderProposalId#771335L, items#771336, optimizationGroups#771337, isOptimal#771338, lastModified#771339, optimizationInsights#771340]
Arguments: 4
(28) AQEShuffleRead
Input [7]: [shardId#771334, orderProposalId#771335L, items#771336, optimizationGroups#771337, isOptimal#771338, lastModified#771339, optimizationInsights#771340]
Arguments: local
(29) BroadcastExchange
Input [7]: [shardId#771334, orderProposalId#771335L, items#771336, optimizationGroups#771337, isOptimal#771338, lastModified#771339, optimizationInsights#771340]
Arguments: HashedRelationBroadcastMode(List(input[0, string, true], input[1, bigint, true], input[5, timestamp, false]),false), [plan_id=304995]
(30) BroadcastQueryStage
Output [7]: [shardId#771334, orderProposalId#771335L, items#771336, optimizationGroups#771337, isOptimal#771338, lastModified#771339, optimizationInsights#771340]
Arguments: 6
(31) Scan ExistingRDD [codegen id : 4]
Output [7]: [shardId#771357, orderProposalId#771358L, items#771359, optimizationGroups#771360, isOptimal#771361, lastModified#771362, optimizationInsights#771363]
Arguments: [shardId#771357, orderProposalId#771358L, items#771359, optimizationGroups#771360, isOptimal#771361, lastModified#771362, optimizationInsights#771363], MapPartitionsRDD[36063] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(32) Filter [codegen id : 4]
Input [7]: [shardId#771357, orderProposalId#771358L, items#771359, optimizationGroups#771360, isOptimal#771361, lastModified#771362, optimizationInsights#771363]
Condition : (isnotnull(shardId#771357) AND isnotnull(orderProposalId#771358L))
(33) Project [codegen id : 4]
Output [3]: [shardId#771357, orderProposalId#771358L, lastModified#771362]
Input [7]: [shardId#771357, orderProposalId#771358L, items#771359, optimizationGroups#771360, isOptimal#771361, lastModified#771362, optimizationInsights#771363]
(34) InMemoryTableScan
Output [2]: [shardId#771364, orderProposalId#771366L]
Arguments: [shardId#771364, orderProposalId#771366L], [isnotnull(shardId#771364), isnotnull(orderProposalId#771366L)]
(35) InMemoryRelation
Arguments: [shardId#771364, worklistShardItemId#771365L, orderProposalId#771366L, orderProposalItemId#771367, orderProposalItemGroupId#771368, originalReplenishmentRunId#771369L, orderProposalHorizonGroupingId#771370L, splitIndicator#771371L, previousOrderProposal#771372L, clusterId#771373L, sequenceId#771374L, sourceOfSupplyUuid#771375, supplierGroup#771376, supplier#771377, subrange#771378, product#771379, plant#771380, purchasingOrg#771381, purchasingGroup#771382, mrpController#771383, orderDateTime#771384, deliveryDateTime#771385, availabilityDateTime#771386, nextAvailabilityDateTime#771387, isFallbackOrderOnly#771388, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(36) TableCacheQueryStage
Output [2]: [shardId#771364, orderProposalId#771366L]
Arguments: 1
(37) Filter [codegen id : 2]
Input [2]: [shardId#771364, orderProposalId#771366L]
Condition : (isnotnull(shardId#771364) AND isnotnull(orderProposalId#771366L))
(38) HashAggregate [codegen id : 2]
Input [2]: [shardId#771364, orderProposalId#771366L]
Keys [2]: [shardId#771364, orderProposalId#771366L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#771364, orderProposalId#771366L]
(39) Exchange
Input [2]: [shardId#771364, orderProposalId#771366L]
Arguments: hashpartitioning(shardId#771364, orderProposalId#771366L, 25), ENSURE_REQUIREMENTS, [plan_id=304785]
(40) ShuffleQueryStage
Output [2]: [shardId#771364, orderProposalId#771366L]
Arguments: 3
(41) AQEShuffleRead
Input [2]: [shardId#771364, orderProposalId#771366L]
Arguments: coalesced
(42) HashAggregate [codegen id : 5]
Input [2]: [shardId#771364, orderProposalId#771366L]
Keys [2]: [shardId#771364, orderProposalId#771366L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#771364, orderProposalId#771366L, 2026-08-10 09:39:20.159354 AS lastModified#771461]
(43) Union
(44) HashAggregate [codegen id : 6]
Input [3]: [shardId#771357, orderProposalId#771358L, lastModified#771362]
Keys [2]: [shardId#771357, orderProposalId#771358L]
Functions [1]: [partial_max(lastModified#771362)]
Aggregate Attributes [1]: [max#772831]
Results [3]: [shardId#771357, orderProposalId#771358L, max#772832]
(45) Exchange
Input [3]: [shardId#771357, orderProposalId#771358L, max#772832]
Arguments: hashpartitioning(shardId#771357, orderProposalId#771358L, 25), ENSURE_REQUIREMENTS, [plan_id=304951]
(46) ShuffleQueryStage
Output [3]: [shardId#771357, orderProposalId#771358L, max#772832]
Arguments: 5
(47) AQEShuffleRead
Input [3]: [shardId#771357, orderProposalId#771358L, max#772832]
Arguments: coalesced
(48) HashAggregate
Input [3]: [shardId#771357, orderProposalId#771358L, max#772832]
Keys [2]: [shardId#771357, orderProposalId#771358L]
Functions [1]: [max(lastModified#771362)]
Aggregate Attributes [1]: [max(lastModified#771362)#771356]
Results [3]: [shardId#771357, orderProposalId#771358L, max(lastModified#771362)#771356 AS lastModified#771348]
(49) Filter
Input [3]: [shardId#771357, orderProposalId#771358L, lastModified#771348]
Condition : isnotnull(lastModified#771348)
(50) BroadcastHashJoin [codegen id : 7]
Left keys [3]: [shardId#771334, orderProposalId#771335L, lastModified#771339]
Right keys [3]: [shardId#771357, orderProposalId#771358L, lastModified#771348]
Join type: Inner
Join condition: None
(51) Project [codegen id : 7]
Output [7]: [shardId#771334, orderProposalId#771335L, items#771336, optimizationGroups#771337, isOptimal#771338, lastModified#771339, optimizationInsights#771340]
Input [10]: [shardId#771334, orderProposalId#771335L, items#771336, optimizationGroups#771337, isOptimal#771338, lastModified#771339, optimizationInsights#771340, shardId#771357, orderProposalId#771358L, lastModified#771348]
(52) DeserializeToObject
Input [7]: [shardId#771334, orderProposalId#771335L, items#771336, optimizationGroups#771337, isOptimal#771338, lastModified#771339, optimizationInsights#771340]
Arguments: createexternalrow(invoke(shardId#771334.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#771335L)), 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#771336, 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#771337, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#771338)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#771339)), 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#771340, 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#771478: org.apache.spark.sql.Row
(53) ResultQueryStage
Output [1]: [obj#771478]
Arguments: 7
(54) Filter
Input [3]: [shardId#766080, worklistShardItemId#766081L, orderProposalId#766082L]
Condition : (isnotnull(shardId#766080) AND isnotnull(orderProposalId#766082L))
(55) ObjectHashAggregate
Input [3]: [shardId#766080, worklistShardItemId#766081L, orderProposalId#766082L]
Keys [2]: [shardId#766080, orderProposalId#766082L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#766081L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#772829]
Results [3]: [shardId#766080, orderProposalId#766082L, buf#772830]
(56) Exchange
Input [3]: [shardId#766080, orderProposalId#766082L, buf#772830]
Arguments: hashpartitioning(shardId#766080, orderProposalId#766082L, 25), ENSURE_REQUIREMENTS, [plan_id=304578]
(57) ObjectHashAggregate
Input [3]: [shardId#766080, orderProposalId#766082L, buf#772830]
Keys [2]: [shardId#766080, orderProposalId#766082L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#766081L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#766081L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#771325]
Results [7]: [shardId#766080, orderProposalId#766082L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#766081L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#771325, lambdafunction(struct(worklistShardItemId, lambda x_2011#771346.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_2011#771346.quantityAfterProdPlantOptimization, qty, lambda x_2011#771346.optimalQuantity), lambda x_2011#771346, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#771347, [] AS optimizationGroups#771341, false AS isOptimal#771326, 2026-08-10 09:39:20.159354 AS lastModified#771345, [] AS optimizationInsights#771342]
(58) Union
(59) Exchange
Input [7]: [shardId#771334, orderProposalId#771335L, items#771336, optimizationGroups#771337, isOptimal#771338, lastModified#771339, optimizationInsights#771340]
Arguments: hashpartitioning(shardId#771334, orderProposalId#771335L, lastModified#771339, 25), ENSURE_REQUIREMENTS, [plan_id=304591]
(60) Sort
Input [7]: [shardId#771334, orderProposalId#771335L, items#771336, optimizationGroups#771337, isOptimal#771338, lastModified#771339, optimizationInsights#771340]
Arguments: [shardId#771334 ASC NULLS FIRST, orderProposalId#771335L ASC NULLS FIRST, lastModified#771339 ASC NULLS FIRST], false, 0
(61) Filter
Input [2]: [shardId#771364, orderProposalId#771366L]
Condition : (isnotnull(shardId#771364) AND isnotnull(orderProposalId#771366L))
(62) HashAggregate
Input [2]: [shardId#771364, orderProposalId#771366L]
Keys [2]: [shardId#771364, orderProposalId#771366L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#771364, orderProposalId#771366L]
(63) Exchange
Input [2]: [shardId#771364, orderProposalId#771366L]
Arguments: hashpartitioning(shardId#771364, orderProposalId#771366L, 25), ENSURE_REQUIREMENTS, [plan_id=304581]
(64) HashAggregate
Input [2]: [shardId#771364, orderProposalId#771366L]
Keys [2]: [shardId#771364, orderProposalId#771366L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#771364, orderProposalId#771366L, 2026-08-10 09:39:20.159354 AS lastModified#771461]
(65) Union
(66) HashAggregate
Input [3]: [shardId#771357, orderProposalId#771358L, lastModified#771362]
Keys [2]: [shardId#771357, orderProposalId#771358L]
Functions [1]: [partial_max(lastModified#771362)]
Aggregate Attributes [1]: [max#772831]
Results [3]: [shardId#771357, orderProposalId#771358L, max#772832]
(67) Exchange
Input [3]: [shardId#771357, orderProposalId#771358L, max#772832]
Arguments: hashpartitioning(shardId#771357, orderProposalId#771358L, 25), ENSURE_REQUIREMENTS, [plan_id=304586]
(68) HashAggregate
Input [3]: [shardId#771357, orderProposalId#771358L, max#772832]
Keys [2]: [shardId#771357, orderProposalId#771358L]
Functions [1]: [max(lastModified#771362)]
Aggregate Attributes [1]: [max(lastModified#771362)#771356]
Results [3]: [shardId#771357, orderProposalId#771358L, max(lastModified#771362)#771356 AS lastModified#771348]
(69) Filter
Input [3]: [shardId#771357, orderProposalId#771358L, lastModified#771348]
Condition : isnotnull(lastModified#771348)
(70) Exchange
Input [3]: [shardId#771357, orderProposalId#771358L, lastModified#771348]
Arguments: hashpartitioning(shardId#771357, orderProposalId#771358L, lastModified#771348, 25), ENSURE_REQUIREMENTS, [plan_id=304592]
(71) Sort
Input [3]: [shardId#771357, orderProposalId#771358L, lastModified#771348]
Arguments: [shardId#771357 ASC NULLS FIRST, orderProposalId#771358L ASC NULLS FIRST, lastModified#771348 ASC NULLS FIRST], false, 0
(72) SortMergeJoin
Left keys [3]: [shardId#771334, orderProposalId#771335L, lastModified#771339]
Right keys [3]: [shardId#771357, orderProposalId#771358L, lastModified#771348]
Join type: Inner
Join condition: None
(73) Project
Output [7]: [shardId#771334, orderProposalId#771335L, items#771336, optimizationGroups#771337, isOptimal#771338, lastModified#771339, optimizationInsights#771340]
Input [10]: [shardId#771334, orderProposalId#771335L, items#771336, optimizationGroups#771337, isOptimal#771338, lastModified#771339, optimizationInsights#771340, shardId#771357, orderProposalId#771358L, lastModified#771348]
(74) DeserializeToObject
Input [7]: [shardId#771334, orderProposalId#771335L, items#771336, optimizationGroups#771337, isOptimal#771338, lastModified#771339, optimizationInsights#771340]
Arguments: createexternalrow(invoke(shardId#771334.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#771335L)), 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#771336, 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#771337, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#771338)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#771339)), 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#771340, 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#771478: org.apache.spark.sql.Row
(75) AdaptiveSparkPlan
Output [1]: [obj#771478]
Arguments: isFinalPlan=true