== 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=85.2 KiB, rowCount=600)
: +- 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.4 KiB, rowCount=600)
+- 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#796735, orderProposalId#796736L, items#796737, optimizationGroups#796738, isOptimal#796739, lastModified#796740, optimizationInsights#796741]
Arguments: [shardId#796735, orderProposalId#796736L, items#796737, optimizationGroups#796738, isOptimal#796739, lastModified#796740, optimizationInsights#796741], MapPartitionsRDD[37213] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(2) Filter [codegen id : 3]
Input [7]: [shardId#796735, orderProposalId#796736L, items#796737, optimizationGroups#796738, isOptimal#796739, lastModified#796740, optimizationInsights#796741]
Condition : ((isnotnull(shardId#796735) AND isnotnull(orderProposalId#796736L)) AND isnotnull(lastModified#796740))
(3) InMemoryTableScan
Output [3]: [shardId#791481, worklistShardItemId#791482L, orderProposalId#791483L]
Arguments: [shardId#791481, worklistShardItemId#791482L, orderProposalId#791483L], [isnotnull(shardId#791481), isnotnull(orderProposalId#791483L)]
(4) InMemoryRelation
Arguments: [shardId#791481, worklistShardItemId#791482L, orderProposalId#791483L, orderProposalItemId#791484, orderProposalItemGroupId#791485, originalReplenishmentRunId#791486L, orderProposalHorizonGroupingId#791487L, splitIndicator#791488L, previousOrderProposal#791489L, clusterId#791490L, sequenceId#791491L, sourceOfSupplyUuid#791492, supplierGroup#791493, supplier#791494, subrange#791495, product#791496, plant#791497, purchasingOrg#791498, purchasingGroup#791499, mrpController#791500, orderDateTime#791501, deliveryDateTime#791502, availabilityDateTime#791503, nextAvailabilityDateTime#791504, isFallbackOrderOnly#791505, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(5) Scan parquet
Output [45]: [orderProposalId#791526L, orderProposalItemId#791527, supplierGroup#791528, supplier#791529, plant#791530, deliveryDateTime#791531, subrange#791532, supplyingPlant#791533, productGroup#791534, product#791535, orderDateTime#791536, availabilityDateTime#791537, nextAvailabilityDateTime#791538, mrpController#791539, sourceOfSupplyUuid#791540, purchasingOrg#791541, purchasingGroup#791542, isFallbackOrderOnly#791543, orderProposalHorizonGroupingId#791544L, splitIndicator#791545L, previousOrderProposal#791546L, clusterId#791547L, worklistShardItemId#791549L, orderProposalItemGroupId#791550, externalProductId#791551, externalPlantId#791552, logisticUnits#791553, orderQuantityBaseUom#791554, orderQuantityBaseUomUuid#791555, minimumOrderQuantity#791556, constraintLabels#791557, constraintOperators#791558, constraintValues#791559, constraintRanks#791560, constraintIsActive#791561, netPriceAmount#791562, netPriceCurrencyCode#791563, netPriceQuantity#791564, netPriceQuantityUom#791565, netPriceQuantityUomUuid#791566, measurements#791567, originalReplenishmentRunId#791568L, optimizationGroups#791569, shardId#791570, sequenceId#791548]
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#791570), isnotnull(sequenceId#791548), (shardId#791570 = 0_1_10000002108), (sequenceId#791548 = 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#791526L, orderProposalItemId#791527, supplierGroup#791528, supplier#791529, plant#791530, deliveryDateTime#791531, subrange#791532, supplyingPlant#791533, productGroup#791534, product#791535, orderDateTime#791536, availabilityDateTime#791537, nextAvailabilityDateTime#791538, mrpController#791539, sourceOfSupplyUuid#791540, purchasingOrg#791541, purchasingGroup#791542, isFallbackOrderOnly#791543, orderProposalHorizonGroupingId#791544L, splitIndicator#791545L, previousOrderProposal#791546L, clusterId#791547L, worklistShardItemId#791549L, orderProposalItemGroupId#791550, externalProductId#791551, externalPlantId#791552, logisticUnits#791553, orderQuantityBaseUom#791554, orderQuantityBaseUomUuid#791555, minimumOrderQuantity#791556, constraintLabels#791557, constraintOperators#791558, constraintValues#791559, constraintRanks#791560, constraintIsActive#791561, netPriceAmount#791562, netPriceCurrencyCode#791563, netPriceQuantity#791564, netPriceQuantityUom#791565, netPriceQuantityUomUuid#791566, measurements#791567, originalReplenishmentRunId#791568L, optimizationGroups#791569, shardId#791570, sequenceId#791548]
(7) Filter [codegen id : 1]
Input [45]: [orderProposalId#791526L, orderProposalItemId#791527, supplierGroup#791528, supplier#791529, plant#791530, deliveryDateTime#791531, subrange#791532, supplyingPlant#791533, productGroup#791534, product#791535, orderDateTime#791536, availabilityDateTime#791537, nextAvailabilityDateTime#791538, mrpController#791539, sourceOfSupplyUuid#791540, purchasingOrg#791541, purchasingGroup#791542, isFallbackOrderOnly#791543, orderProposalHorizonGroupingId#791544L, splitIndicator#791545L, previousOrderProposal#791546L, clusterId#791547L, worklistShardItemId#791549L, orderProposalItemGroupId#791550, externalProductId#791551, externalPlantId#791552, logisticUnits#791553, orderQuantityBaseUom#791554, orderQuantityBaseUomUuid#791555, minimumOrderQuantity#791556, constraintLabels#791557, constraintOperators#791558, constraintValues#791559, constraintRanks#791560, constraintIsActive#791561, netPriceAmount#791562, netPriceCurrencyCode#791563, netPriceQuantity#791564, netPriceQuantityUom#791565, netPriceQuantityUomUuid#791566, measurements#791567, originalReplenishmentRunId#791568L, optimizationGroups#791569, shardId#791570, sequenceId#791548]
Condition : ((isnotnull(availabilityDateTime#791537) AND isnotnull(nextAvailabilityDateTime#791538)) AND (nextAvailabilityDateTime#791538 > availabilityDateTime#791537))
(8) Project [codegen id : 1]
Output [44]: [orderProposalId#791526L, orderProposalItemId#791527, supplierGroup#791528, supplier#791529, plant#791530, deliveryDateTime#791531, subrange#791532, supplyingPlant#791533, productGroup#791534, product#791535, orderDateTime#791536, availabilityDateTime#791537, nextAvailabilityDateTime#791538, mrpController#791539, sourceOfSupplyUuid#791540, purchasingOrg#791541, purchasingGroup#791542, isFallbackOrderOnly#791543, orderProposalHorizonGroupingId#791544L, splitIndicator#791545L, previousOrderProposal#791546L, clusterId#791547L, sequenceId#791548, worklistShardItemId#791549L, orderProposalItemGroupId#791550, externalProductId#791551, externalPlantId#791552, logisticUnits#791553, orderQuantityBaseUom#791554, orderQuantityBaseUomUuid#791555, minimumOrderQuantity#791556, constraintLabels#791557, constraintOperators#791558, constraintValues#791559, constraintRanks#791560, constraintIsActive#791561, netPriceAmount#791562, netPriceCurrencyCode#791563, netPriceQuantity#791564, netPriceQuantityUom#791565, netPriceQuantityUomUuid#791566, measurements#791567, originalReplenishmentRunId#791568L, optimizationGroups#791569]
Input [45]: [orderProposalId#791526L, orderProposalItemId#791527, supplierGroup#791528, supplier#791529, plant#791530, deliveryDateTime#791531, subrange#791532, supplyingPlant#791533, productGroup#791534, product#791535, orderDateTime#791536, availabilityDateTime#791537, nextAvailabilityDateTime#791538, mrpController#791539, sourceOfSupplyUuid#791540, purchasingOrg#791541, purchasingGroup#791542, isFallbackOrderOnly#791543, orderProposalHorizonGroupingId#791544L, splitIndicator#791545L, previousOrderProposal#791546L, clusterId#791547L, worklistShardItemId#791549L, orderProposalItemGroupId#791550, externalProductId#791551, externalPlantId#791552, logisticUnits#791553, orderQuantityBaseUom#791554, orderQuantityBaseUomUuid#791555, minimumOrderQuantity#791556, constraintLabels#791557, constraintOperators#791558, constraintValues#791559, constraintRanks#791560, constraintIsActive#791561, netPriceAmount#791562, netPriceCurrencyCode#791563, netPriceQuantity#791564, netPriceQuantityUom#791565, netPriceQuantityUomUuid#791566, measurements#791567, originalReplenishmentRunId#791568L, optimizationGroups#791569, shardId#791570, sequenceId#791548]
(9) Exchange
Input [44]: [orderProposalId#791526L, orderProposalItemId#791527, supplierGroup#791528, supplier#791529, plant#791530, deliveryDateTime#791531, subrange#791532, supplyingPlant#791533, productGroup#791534, product#791535, orderDateTime#791536, availabilityDateTime#791537, nextAvailabilityDateTime#791538, mrpController#791539, sourceOfSupplyUuid#791540, purchasingOrg#791541, purchasingGroup#791542, isFallbackOrderOnly#791543, orderProposalHorizonGroupingId#791544L, splitIndicator#791545L, previousOrderProposal#791546L, clusterId#791547L, sequenceId#791548, worklistShardItemId#791549L, orderProposalItemGroupId#791550, externalProductId#791551, externalPlantId#791552, logisticUnits#791553, orderQuantityBaseUom#791554, orderQuantityBaseUomUuid#791555, minimumOrderQuantity#791556, constraintLabels#791557, constraintOperators#791558, constraintValues#791559, constraintRanks#791560, constraintIsActive#791561, netPriceAmount#791562, netPriceCurrencyCode#791563, netPriceQuantity#791564, netPriceQuantityUom#791565, netPriceQuantityUomUuid#791566, measurements#791567, originalReplenishmentRunId#791568L, optimizationGroups#791569]
Arguments: hashpartitioning(worklistShardItemId#791549L, 25), REPARTITION_BY_NUM, [plan_id=311668]
(10) ShuffleQueryStage
Output [44]: [orderProposalId#791526L, orderProposalItemId#791527, supplierGroup#791528, supplier#791529, plant#791530, deliveryDateTime#791531, subrange#791532, supplyingPlant#791533, productGroup#791534, product#791535, orderDateTime#791536, availabilityDateTime#791537, nextAvailabilityDateTime#791538, mrpController#791539, sourceOfSupplyUuid#791540, purchasingOrg#791541, purchasingGroup#791542, isFallbackOrderOnly#791543, orderProposalHorizonGroupingId#791544L, splitIndicator#791545L, previousOrderProposal#791546L, clusterId#791547L, sequenceId#791548, worklistShardItemId#791549L, orderProposalItemGroupId#791550, externalProductId#791551, externalPlantId#791552, logisticUnits#791553, orderQuantityBaseUom#791554, orderQuantityBaseUomUuid#791555, minimumOrderQuantity#791556, constraintLabels#791557, constraintOperators#791558, constraintValues#791559, constraintRanks#791560, constraintIsActive#791561, netPriceAmount#791562, netPriceCurrencyCode#791563, netPriceQuantity#791564, netPriceQuantityUom#791565, netPriceQuantityUomUuid#791566, measurements#791567, originalReplenishmentRunId#791568L, optimizationGroups#791569]
Arguments: 0
(11) Project [codegen id : 2]
Output [45]: [0_1_10000002108 AS shardId#791481, worklistShardItemId#791549L, orderProposalId#791526L, orderProposalItemId#791527, orderProposalItemGroupId#791550, originalReplenishmentRunId#791568L, orderProposalHorizonGroupingId#791544L, splitIndicator#791545L, previousOrderProposal#791546L, clusterId#791547L, cast(sequenceId#791548 as bigint) AS sequenceId#791491L, sourceOfSupplyUuid#791540, supplierGroup#791528, supplier#791529, subrange#791532, product#791535, plant#791530, purchasingOrg#791541, purchasingGroup#791542, mrpController#791539, orderDateTime#791536, deliveryDateTime#791531, availabilityDateTime#791537, nextAvailabilityDateTime#791538, isFallbackOrderOnly#791543, orderQuantityBaseUom#791554, orderQuantityBaseUomUuid#791555, netPriceQuantity#791564, netPriceQuantityUom#791565, netPriceQuantityUomUuid#791566, netPriceAmount#791562, netPriceCurrencyCode#791563, measurements#791567, minimumOrderQuantity#791556, constraintLabels#791557, constraintOperators#791558, constraintRanks#791560, constraintValues#791559, constraintIsActive#791561, logisticUnits#791553, optimizationGroups#791569, externalProductId#791551, externalPlantId#791552, supplyingPlant#791533, productGroup#791534]
Input [44]: [orderProposalId#791526L, orderProposalItemId#791527, supplierGroup#791528, supplier#791529, plant#791530, deliveryDateTime#791531, subrange#791532, supplyingPlant#791533, productGroup#791534, product#791535, orderDateTime#791536, availabilityDateTime#791537, nextAvailabilityDateTime#791538, mrpController#791539, sourceOfSupplyUuid#791540, purchasingOrg#791541, purchasingGroup#791542, isFallbackOrderOnly#791543, orderProposalHorizonGroupingId#791544L, splitIndicator#791545L, previousOrderProposal#791546L, clusterId#791547L, sequenceId#791548, worklistShardItemId#791549L, orderProposalItemGroupId#791550, externalProductId#791551, externalPlantId#791552, logisticUnits#791553, orderQuantityBaseUom#791554, orderQuantityBaseUomUuid#791555, minimumOrderQuantity#791556, constraintLabels#791557, constraintOperators#791558, constraintValues#791559, constraintRanks#791560, constraintIsActive#791561, netPriceAmount#791562, netPriceCurrencyCode#791563, netPriceQuantity#791564, netPriceQuantityUom#791565, netPriceQuantityUomUuid#791566, measurements#791567, originalReplenishmentRunId#791568L, optimizationGroups#791569]
(12) ResultQueryStage
Output [45]: [shardId#791481, worklistShardItemId#791549L, orderProposalId#791526L, orderProposalItemId#791527, orderProposalItemGroupId#791550, originalReplenishmentRunId#791568L, orderProposalHorizonGroupingId#791544L, splitIndicator#791545L, previousOrderProposal#791546L, clusterId#791547L, sequenceId#791491L, sourceOfSupplyUuid#791540, supplierGroup#791528, supplier#791529, subrange#791532, product#791535, plant#791530, purchasingOrg#791541, purchasingGroup#791542, mrpController#791539, orderDateTime#791536, deliveryDateTime#791531, availabilityDateTime#791537, nextAvailabilityDateTime#791538, isFallbackOrderOnly#791543, orderQuantityBaseUom#791554, orderQuantityBaseUomUuid#791555, netPriceQuantity#791564, netPriceQuantityUom#791565, netPriceQuantityUomUuid#791566, netPriceAmount#791562, netPriceCurrencyCode#791563, measurements#791567, minimumOrderQuantity#791556, constraintLabels#791557, constraintOperators#791558, constraintRanks#791560, constraintValues#791559, constraintIsActive#791561, logisticUnits#791553, optimizationGroups#791569, externalProductId#791551, externalPlantId#791552, supplyingPlant#791533, productGroup#791534]
Arguments: 1
(13) Filter
Input [45]: [orderProposalId#791526L, orderProposalItemId#791527, supplierGroup#791528, supplier#791529, plant#791530, deliveryDateTime#791531, subrange#791532, supplyingPlant#791533, productGroup#791534, product#791535, orderDateTime#791536, availabilityDateTime#791537, nextAvailabilityDateTime#791538, mrpController#791539, sourceOfSupplyUuid#791540, purchasingOrg#791541, purchasingGroup#791542, isFallbackOrderOnly#791543, orderProposalHorizonGroupingId#791544L, splitIndicator#791545L, previousOrderProposal#791546L, clusterId#791547L, worklistShardItemId#791549L, orderProposalItemGroupId#791550, externalProductId#791551, externalPlantId#791552, logisticUnits#791553, orderQuantityBaseUom#791554, orderQuantityBaseUomUuid#791555, minimumOrderQuantity#791556, constraintLabels#791557, constraintOperators#791558, constraintValues#791559, constraintRanks#791560, constraintIsActive#791561, netPriceAmount#791562, netPriceCurrencyCode#791563, netPriceQuantity#791564, netPriceQuantityUom#791565, netPriceQuantityUomUuid#791566, measurements#791567, originalReplenishmentRunId#791568L, optimizationGroups#791569, shardId#791570, sequenceId#791548]
Condition : ((isnotnull(availabilityDateTime#791537) AND isnotnull(nextAvailabilityDateTime#791538)) AND (nextAvailabilityDateTime#791538 > availabilityDateTime#791537))
(14) Project
Output [44]: [orderProposalId#791526L, orderProposalItemId#791527, supplierGroup#791528, supplier#791529, plant#791530, deliveryDateTime#791531, subrange#791532, supplyingPlant#791533, productGroup#791534, product#791535, orderDateTime#791536, availabilityDateTime#791537, nextAvailabilityDateTime#791538, mrpController#791539, sourceOfSupplyUuid#791540, purchasingOrg#791541, purchasingGroup#791542, isFallbackOrderOnly#791543, orderProposalHorizonGroupingId#791544L, splitIndicator#791545L, previousOrderProposal#791546L, clusterId#791547L, sequenceId#791548, worklistShardItemId#791549L, orderProposalItemGroupId#791550, externalProductId#791551, externalPlantId#791552, logisticUnits#791553, orderQuantityBaseUom#791554, orderQuantityBaseUomUuid#791555, minimumOrderQuantity#791556, constraintLabels#791557, constraintOperators#791558, constraintValues#791559, constraintRanks#791560, constraintIsActive#791561, netPriceAmount#791562, netPriceCurrencyCode#791563, netPriceQuantity#791564, netPriceQuantityUom#791565, netPriceQuantityUomUuid#791566, measurements#791567, originalReplenishmentRunId#791568L, optimizationGroups#791569]
Input [45]: [orderProposalId#791526L, orderProposalItemId#791527, supplierGroup#791528, supplier#791529, plant#791530, deliveryDateTime#791531, subrange#791532, supplyingPlant#791533, productGroup#791534, product#791535, orderDateTime#791536, availabilityDateTime#791537, nextAvailabilityDateTime#791538, mrpController#791539, sourceOfSupplyUuid#791540, purchasingOrg#791541, purchasingGroup#791542, isFallbackOrderOnly#791543, orderProposalHorizonGroupingId#791544L, splitIndicator#791545L, previousOrderProposal#791546L, clusterId#791547L, worklistShardItemId#791549L, orderProposalItemGroupId#791550, externalProductId#791551, externalPlantId#791552, logisticUnits#791553, orderQuantityBaseUom#791554, orderQuantityBaseUomUuid#791555, minimumOrderQuantity#791556, constraintLabels#791557, constraintOperators#791558, constraintValues#791559, constraintRanks#791560, constraintIsActive#791561, netPriceAmount#791562, netPriceCurrencyCode#791563, netPriceQuantity#791564, netPriceQuantityUom#791565, netPriceQuantityUomUuid#791566, measurements#791567, originalReplenishmentRunId#791568L, optimizationGroups#791569, shardId#791570, sequenceId#791548]
(15) Exchange
Input [44]: [orderProposalId#791526L, orderProposalItemId#791527, supplierGroup#791528, supplier#791529, plant#791530, deliveryDateTime#791531, subrange#791532, supplyingPlant#791533, productGroup#791534, product#791535, orderDateTime#791536, availabilityDateTime#791537, nextAvailabilityDateTime#791538, mrpController#791539, sourceOfSupplyUuid#791540, purchasingOrg#791541, purchasingGroup#791542, isFallbackOrderOnly#791543, orderProposalHorizonGroupingId#791544L, splitIndicator#791545L, previousOrderProposal#791546L, clusterId#791547L, sequenceId#791548, worklistShardItemId#791549L, orderProposalItemGroupId#791550, externalProductId#791551, externalPlantId#791552, logisticUnits#791553, orderQuantityBaseUom#791554, orderQuantityBaseUomUuid#791555, minimumOrderQuantity#791556, constraintLabels#791557, constraintOperators#791558, constraintValues#791559, constraintRanks#791560, constraintIsActive#791561, netPriceAmount#791562, netPriceCurrencyCode#791563, netPriceQuantity#791564, netPriceQuantityUom#791565, netPriceQuantityUomUuid#791566, measurements#791567, originalReplenishmentRunId#791568L, optimizationGroups#791569]
Arguments: hashpartitioning(worklistShardItemId#791549L, 25), REPARTITION_BY_NUM, [plan_id=311640]
(16) Project
Output [45]: [0_1_10000002108 AS shardId#791481, worklistShardItemId#791549L, orderProposalId#791526L, orderProposalItemId#791527, orderProposalItemGroupId#791550, originalReplenishmentRunId#791568L, orderProposalHorizonGroupingId#791544L, splitIndicator#791545L, previousOrderProposal#791546L, clusterId#791547L, cast(sequenceId#791548 as bigint) AS sequenceId#791491L, sourceOfSupplyUuid#791540, supplierGroup#791528, supplier#791529, subrange#791532, product#791535, plant#791530, purchasingOrg#791541, purchasingGroup#791542, mrpController#791539, orderDateTime#791536, deliveryDateTime#791531, availabilityDateTime#791537, nextAvailabilityDateTime#791538, isFallbackOrderOnly#791543, orderQuantityBaseUom#791554, orderQuantityBaseUomUuid#791555, netPriceQuantity#791564, netPriceQuantityUom#791565, netPriceQuantityUomUuid#791566, netPriceAmount#791562, netPriceCurrencyCode#791563, measurements#791567, minimumOrderQuantity#791556, constraintLabels#791557, constraintOperators#791558, constraintRanks#791560, constraintValues#791559, constraintIsActive#791561, logisticUnits#791553, optimizationGroups#791569, externalProductId#791551, externalPlantId#791552, supplyingPlant#791533, productGroup#791534]
Input [44]: [orderProposalId#791526L, orderProposalItemId#791527, supplierGroup#791528, supplier#791529, plant#791530, deliveryDateTime#791531, subrange#791532, supplyingPlant#791533, productGroup#791534, product#791535, orderDateTime#791536, availabilityDateTime#791537, nextAvailabilityDateTime#791538, mrpController#791539, sourceOfSupplyUuid#791540, purchasingOrg#791541, purchasingGroup#791542, isFallbackOrderOnly#791543, orderProposalHorizonGroupingId#791544L, splitIndicator#791545L, previousOrderProposal#791546L, clusterId#791547L, sequenceId#791548, worklistShardItemId#791549L, orderProposalItemGroupId#791550, externalProductId#791551, externalPlantId#791552, logisticUnits#791553, orderQuantityBaseUom#791554, orderQuantityBaseUomUuid#791555, minimumOrderQuantity#791556, constraintLabels#791557, constraintOperators#791558, constraintValues#791559, constraintRanks#791560, constraintIsActive#791561, netPriceAmount#791562, netPriceCurrencyCode#791563, netPriceQuantity#791564, netPriceQuantityUom#791565, netPriceQuantityUomUuid#791566, measurements#791567, originalReplenishmentRunId#791568L, optimizationGroups#791569]
(17) AdaptiveSparkPlan
Output [45]: [shardId#791481, worklistShardItemId#791549L, orderProposalId#791526L, orderProposalItemId#791527, orderProposalItemGroupId#791550, originalReplenishmentRunId#791568L, orderProposalHorizonGroupingId#791544L, splitIndicator#791545L, previousOrderProposal#791546L, clusterId#791547L, sequenceId#791491L, sourceOfSupplyUuid#791540, supplierGroup#791528, supplier#791529, subrange#791532, product#791535, plant#791530, purchasingOrg#791541, purchasingGroup#791542, mrpController#791539, orderDateTime#791536, deliveryDateTime#791531, availabilityDateTime#791537, nextAvailabilityDateTime#791538, isFallbackOrderOnly#791543, orderQuantityBaseUom#791554, orderQuantityBaseUomUuid#791555, netPriceQuantity#791564, netPriceQuantityUom#791565, netPriceQuantityUomUuid#791566, netPriceAmount#791562, netPriceCurrencyCode#791563, measurements#791567, minimumOrderQuantity#791556, constraintLabels#791557, constraintOperators#791558, constraintRanks#791560, constraintValues#791559, constraintIsActive#791561, logisticUnits#791553, optimizationGroups#791569, externalProductId#791551, externalPlantId#791552, supplyingPlant#791533, productGroup#791534]
Arguments: isFinalPlan=true
(18) TableCacheQueryStage
Output [3]: [shardId#791481, worklistShardItemId#791482L, orderProposalId#791483L]
Arguments: 0
(19) Filter [codegen id : 1]
Input [3]: [shardId#791481, worklistShardItemId#791482L, orderProposalId#791483L]
Condition : (isnotnull(shardId#791481) AND isnotnull(orderProposalId#791483L))
(20) ObjectHashAggregate
Input [3]: [shardId#791481, worklistShardItemId#791482L, orderProposalId#791483L]
Keys [2]: [shardId#791481, orderProposalId#791483L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#791482L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#798230]
Results [3]: [shardId#791481, orderProposalId#791483L, buf#798231]
(21) Exchange
Input [3]: [shardId#791481, orderProposalId#791483L, buf#798231]
Arguments: hashpartitioning(shardId#791481, orderProposalId#791483L, 25), ENSURE_REQUIREMENTS, [plan_id=312034]
(22) ShuffleQueryStage [codegen id : 3]
Output [3]: [shardId#791481, orderProposalId#791483L, buf#798231]
Arguments: 2
(23) AQEShuffleRead [codegen id : 3]
Input [3]: [shardId#791481, orderProposalId#791483L, buf#798231]
Arguments: coalesced
(24) ObjectHashAggregate [codegen id : 3]
Input [3]: [shardId#791481, orderProposalId#791483L, buf#798231]
Keys [2]: [shardId#791481, orderProposalId#791483L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#791482L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#791482L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#796726]
Results [7]: [shardId#791481, orderProposalId#791483L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#791482L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#796726, lambdafunction(struct(worklistShardItemId, lambda x_2078#796747.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_2078#796747.quantityAfterProdPlantOptimization, qty, lambda x_2078#796747.optimalQuantity), lambda x_2078#796747, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#796748, [] AS optimizationGroups#796742, false AS isOptimal#796727, 2026-08-10 09:40:51.873214 AS lastModified#796746, [] AS optimizationInsights#796743]
(25) Union
(26) Exchange
Input [7]: [shardId#796735, orderProposalId#796736L, items#796737, optimizationGroups#796738, isOptimal#796739, lastModified#796740, optimizationInsights#796741]
Arguments: hashpartitioning(shardId#796735, orderProposalId#796736L, lastModified#796740, 25), ENSURE_REQUIREMENTS, [plan_id=312154]
(27) ShuffleQueryStage
Output [7]: [shardId#796735, orderProposalId#796736L, items#796737, optimizationGroups#796738, isOptimal#796739, lastModified#796740, optimizationInsights#796741]
Arguments: 4
(28) AQEShuffleRead
Input [7]: [shardId#796735, orderProposalId#796736L, items#796737, optimizationGroups#796738, isOptimal#796739, lastModified#796740, optimizationInsights#796741]
Arguments: local
(29) BroadcastExchange
Input [7]: [shardId#796735, orderProposalId#796736L, items#796737, optimizationGroups#796738, isOptimal#796739, lastModified#796740, optimizationInsights#796741]
Arguments: HashedRelationBroadcastMode(List(input[0, string, true], input[1, bigint, true], input[5, timestamp, false]),false), [plan_id=312280]
(30) BroadcastQueryStage
Output [7]: [shardId#796735, orderProposalId#796736L, items#796737, optimizationGroups#796738, isOptimal#796739, lastModified#796740, optimizationInsights#796741]
Arguments: 6
(31) Scan ExistingRDD [codegen id : 4]
Output [7]: [shardId#796758, orderProposalId#796759L, items#796760, optimizationGroups#796761, isOptimal#796762, lastModified#796763, optimizationInsights#796764]
Arguments: [shardId#796758, orderProposalId#796759L, items#796760, optimizationGroups#796761, isOptimal#796762, lastModified#796763, optimizationInsights#796764], MapPartitionsRDD[37213] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(32) Filter [codegen id : 4]
Input [7]: [shardId#796758, orderProposalId#796759L, items#796760, optimizationGroups#796761, isOptimal#796762, lastModified#796763, optimizationInsights#796764]
Condition : (isnotnull(shardId#796758) AND isnotnull(orderProposalId#796759L))
(33) Project [codegen id : 4]
Output [3]: [shardId#796758, orderProposalId#796759L, lastModified#796763]
Input [7]: [shardId#796758, orderProposalId#796759L, items#796760, optimizationGroups#796761, isOptimal#796762, lastModified#796763, optimizationInsights#796764]
(34) InMemoryTableScan
Output [2]: [shardId#796765, orderProposalId#796767L]
Arguments: [shardId#796765, orderProposalId#796767L], [isnotnull(shardId#796765), isnotnull(orderProposalId#796767L)]
(35) InMemoryRelation
Arguments: [shardId#796765, worklistShardItemId#796766L, orderProposalId#796767L, orderProposalItemId#796768, orderProposalItemGroupId#796769, originalReplenishmentRunId#796770L, orderProposalHorizonGroupingId#796771L, splitIndicator#796772L, previousOrderProposal#796773L, clusterId#796774L, sequenceId#796775L, sourceOfSupplyUuid#796776, supplierGroup#796777, supplier#796778, subrange#796779, product#796780, plant#796781, purchasingOrg#796782, purchasingGroup#796783, mrpController#796784, orderDateTime#796785, deliveryDateTime#796786, availabilityDateTime#796787, nextAvailabilityDateTime#796788, isFallbackOrderOnly#796789, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(36) TableCacheQueryStage
Output [2]: [shardId#796765, orderProposalId#796767L]
Arguments: 1
(37) Filter [codegen id : 2]
Input [2]: [shardId#796765, orderProposalId#796767L]
Condition : (isnotnull(shardId#796765) AND isnotnull(orderProposalId#796767L))
(38) HashAggregate [codegen id : 2]
Input [2]: [shardId#796765, orderProposalId#796767L]
Keys [2]: [shardId#796765, orderProposalId#796767L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#796765, orderProposalId#796767L]
(39) Exchange
Input [2]: [shardId#796765, orderProposalId#796767L]
Arguments: hashpartitioning(shardId#796765, orderProposalId#796767L, 25), ENSURE_REQUIREMENTS, [plan_id=312070]
(40) ShuffleQueryStage
Output [2]: [shardId#796765, orderProposalId#796767L]
Arguments: 3
(41) AQEShuffleRead
Input [2]: [shardId#796765, orderProposalId#796767L]
Arguments: coalesced
(42) HashAggregate [codegen id : 5]
Input [2]: [shardId#796765, orderProposalId#796767L]
Keys [2]: [shardId#796765, orderProposalId#796767L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#796765, orderProposalId#796767L, 2026-08-10 09:40:51.873214 AS lastModified#796862]
(43) Union
(44) HashAggregate [codegen id : 6]
Input [3]: [shardId#796758, orderProposalId#796759L, lastModified#796763]
Keys [2]: [shardId#796758, orderProposalId#796759L]
Functions [1]: [partial_max(lastModified#796763)]
Aggregate Attributes [1]: [max#798232]
Results [3]: [shardId#796758, orderProposalId#796759L, max#798233]
(45) Exchange
Input [3]: [shardId#796758, orderProposalId#796759L, max#798233]
Arguments: hashpartitioning(shardId#796758, orderProposalId#796759L, 25), ENSURE_REQUIREMENTS, [plan_id=312236]
(46) ShuffleQueryStage
Output [3]: [shardId#796758, orderProposalId#796759L, max#798233]
Arguments: 5
(47) AQEShuffleRead
Input [3]: [shardId#796758, orderProposalId#796759L, max#798233]
Arguments: coalesced
(48) HashAggregate
Input [3]: [shardId#796758, orderProposalId#796759L, max#798233]
Keys [2]: [shardId#796758, orderProposalId#796759L]
Functions [1]: [max(lastModified#796763)]
Aggregate Attributes [1]: [max(lastModified#796763)#796757]
Results [3]: [shardId#796758, orderProposalId#796759L, max(lastModified#796763)#796757 AS lastModified#796749]
(49) Filter
Input [3]: [shardId#796758, orderProposalId#796759L, lastModified#796749]
Condition : isnotnull(lastModified#796749)
(50) BroadcastHashJoin [codegen id : 7]
Left keys [3]: [shardId#796735, orderProposalId#796736L, lastModified#796740]
Right keys [3]: [shardId#796758, orderProposalId#796759L, lastModified#796749]
Join type: Inner
Join condition: None
(51) Project [codegen id : 7]
Output [7]: [shardId#796735, orderProposalId#796736L, items#796737, optimizationGroups#796738, isOptimal#796739, lastModified#796740, optimizationInsights#796741]
Input [10]: [shardId#796735, orderProposalId#796736L, items#796737, optimizationGroups#796738, isOptimal#796739, lastModified#796740, optimizationInsights#796741, shardId#796758, orderProposalId#796759L, lastModified#796749]
(52) DeserializeToObject
Input [7]: [shardId#796735, orderProposalId#796736L, items#796737, optimizationGroups#796738, isOptimal#796739, lastModified#796740, optimizationInsights#796741]
Arguments: createexternalrow(invoke(shardId#796735.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#796736L)), 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#796737, 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#796738, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#796739)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#796740)), 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#796741, 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#796879: org.apache.spark.sql.Row
(53) ResultQueryStage
Output [1]: [obj#796879]
Arguments: 7
(54) Filter
Input [3]: [shardId#791481, worklistShardItemId#791482L, orderProposalId#791483L]
Condition : (isnotnull(shardId#791481) AND isnotnull(orderProposalId#791483L))
(55) ObjectHashAggregate
Input [3]: [shardId#791481, worklistShardItemId#791482L, orderProposalId#791483L]
Keys [2]: [shardId#791481, orderProposalId#791483L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#791482L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#798230]
Results [3]: [shardId#791481, orderProposalId#791483L, buf#798231]
(56) Exchange
Input [3]: [shardId#791481, orderProposalId#791483L, buf#798231]
Arguments: hashpartitioning(shardId#791481, orderProposalId#791483L, 25), ENSURE_REQUIREMENTS, [plan_id=311863]
(57) ObjectHashAggregate
Input [3]: [shardId#791481, orderProposalId#791483L, buf#798231]
Keys [2]: [shardId#791481, orderProposalId#791483L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#791482L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#791482L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#796726]
Results [7]: [shardId#791481, orderProposalId#791483L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#791482L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#796726, lambdafunction(struct(worklistShardItemId, lambda x_2078#796747.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_2078#796747.quantityAfterProdPlantOptimization, qty, lambda x_2078#796747.optimalQuantity), lambda x_2078#796747, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#796748, [] AS optimizationGroups#796742, false AS isOptimal#796727, 2026-08-10 09:40:51.873214 AS lastModified#796746, [] AS optimizationInsights#796743]
(58) Union
(59) Exchange
Input [7]: [shardId#796735, orderProposalId#796736L, items#796737, optimizationGroups#796738, isOptimal#796739, lastModified#796740, optimizationInsights#796741]
Arguments: hashpartitioning(shardId#796735, orderProposalId#796736L, lastModified#796740, 25), ENSURE_REQUIREMENTS, [plan_id=311876]
(60) Sort
Input [7]: [shardId#796735, orderProposalId#796736L, items#796737, optimizationGroups#796738, isOptimal#796739, lastModified#796740, optimizationInsights#796741]
Arguments: [shardId#796735 ASC NULLS FIRST, orderProposalId#796736L ASC NULLS FIRST, lastModified#796740 ASC NULLS FIRST], false, 0
(61) Filter
Input [2]: [shardId#796765, orderProposalId#796767L]
Condition : (isnotnull(shardId#796765) AND isnotnull(orderProposalId#796767L))
(62) HashAggregate
Input [2]: [shardId#796765, orderProposalId#796767L]
Keys [2]: [shardId#796765, orderProposalId#796767L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#796765, orderProposalId#796767L]
(63) Exchange
Input [2]: [shardId#796765, orderProposalId#796767L]
Arguments: hashpartitioning(shardId#796765, orderProposalId#796767L, 25), ENSURE_REQUIREMENTS, [plan_id=311866]
(64) HashAggregate
Input [2]: [shardId#796765, orderProposalId#796767L]
Keys [2]: [shardId#796765, orderProposalId#796767L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#796765, orderProposalId#796767L, 2026-08-10 09:40:51.873214 AS lastModified#796862]
(65) Union
(66) HashAggregate
Input [3]: [shardId#796758, orderProposalId#796759L, lastModified#796763]
Keys [2]: [shardId#796758, orderProposalId#796759L]
Functions [1]: [partial_max(lastModified#796763)]
Aggregate Attributes [1]: [max#798232]
Results [3]: [shardId#796758, orderProposalId#796759L, max#798233]
(67) Exchange
Input [3]: [shardId#796758, orderProposalId#796759L, max#798233]
Arguments: hashpartitioning(shardId#796758, orderProposalId#796759L, 25), ENSURE_REQUIREMENTS, [plan_id=311871]
(68) HashAggregate
Input [3]: [shardId#796758, orderProposalId#796759L, max#798233]
Keys [2]: [shardId#796758, orderProposalId#796759L]
Functions [1]: [max(lastModified#796763)]
Aggregate Attributes [1]: [max(lastModified#796763)#796757]
Results [3]: [shardId#796758, orderProposalId#796759L, max(lastModified#796763)#796757 AS lastModified#796749]
(69) Filter
Input [3]: [shardId#796758, orderProposalId#796759L, lastModified#796749]
Condition : isnotnull(lastModified#796749)
(70) Exchange
Input [3]: [shardId#796758, orderProposalId#796759L, lastModified#796749]
Arguments: hashpartitioning(shardId#796758, orderProposalId#796759L, lastModified#796749, 25), ENSURE_REQUIREMENTS, [plan_id=311877]
(71) Sort
Input [3]: [shardId#796758, orderProposalId#796759L, lastModified#796749]
Arguments: [shardId#796758 ASC NULLS FIRST, orderProposalId#796759L ASC NULLS FIRST, lastModified#796749 ASC NULLS FIRST], false, 0
(72) SortMergeJoin
Left keys [3]: [shardId#796735, orderProposalId#796736L, lastModified#796740]
Right keys [3]: [shardId#796758, orderProposalId#796759L, lastModified#796749]
Join type: Inner
Join condition: None
(73) Project
Output [7]: [shardId#796735, orderProposalId#796736L, items#796737, optimizationGroups#796738, isOptimal#796739, lastModified#796740, optimizationInsights#796741]
Input [10]: [shardId#796735, orderProposalId#796736L, items#796737, optimizationGroups#796738, isOptimal#796739, lastModified#796740, optimizationInsights#796741, shardId#796758, orderProposalId#796759L, lastModified#796749]
(74) DeserializeToObject
Input [7]: [shardId#796735, orderProposalId#796736L, items#796737, optimizationGroups#796738, isOptimal#796739, lastModified#796740, optimizationInsights#796741]
Arguments: createexternalrow(invoke(shardId#796735.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#796736L)), 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#796737, 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#796738, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#796739)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#796740)), 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#796741, 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#796879: org.apache.spark.sql.Row
(75) AdaptiveSparkPlan
Output [1]: [obj#796879]
Arguments: isFinalPlan=true