== Physical Plan ==
AdaptiveSparkPlan (74)
+- == Final Plan ==
ResultQueryStage (50), Statistics(sizeInBytes=8.0 EiB)
+- DeserializeToObject (49)
+- * Project (48)
+- * BroadcastHashJoin Inner BuildRight (47)
:- Union (25)
: :- * Filter (2)
: : +- * Scan ExistingRDD (1)
: +- ObjectHashAggregate (24)
: +- AQEShuffleRead (23)
: +- ShuffleQueryStage (22), Statistics(sizeInBytes=2.9 KiB, rowCount=22)
: +- Exchange (21)
: +- ObjectHashAggregate (20)
: +- * Filter (19)
: +- TableCacheQueryStage (18), Statistics(sizeInBytes=36.7 KiB, rowCount=29)
: +- InMemoryTableScan (3)
: +- InMemoryRelation (4)
: +- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=40.9 KiB, rowCount=29)
+- Exchange (9)
+- * Project (8)
+- * Filter (7)
+- * ColumnarToRow (6)
+- Scan parquet (5)
+- == Initial Plan ==
Project (16)
+- Exchange (15)
+- Project (14)
+- Filter (13)
+- Scan parquet (5)
+- BroadcastQueryStage (46), Statistics(sizeInBytes=2.0 MiB, rowCount=2)
+- BroadcastExchange (45)
+- * Filter (44)
+- * HashAggregate (43)
+- AQEShuffleRead (42)
+- ShuffleQueryStage (41), Statistics(sizeInBytes=96.0 B, rowCount=2)
+- Exchange (40)
+- * HashAggregate (39)
+- Union (38)
:- * Project (28)
: +- * Filter (27)
: +- * Scan ExistingRDD (26)
+- * HashAggregate (37)
+- AQEShuffleRead (36)
+- ShuffleQueryStage (35), Statistics(sizeInBytes=880.0 B, rowCount=22)
+- Exchange (34)
+- * HashAggregate (33)
+- * Filter (32)
+- TableCacheQueryStage (31), Statistics(sizeInBytes=36.7 KiB, rowCount=29)
+- InMemoryTableScan (29)
+- InMemoryRelation (30)
+- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=40.9 KiB, rowCount=29)
+- Exchange (9)
+- * Project (8)
+- * Filter (7)
+- * ColumnarToRow (6)
+- Scan parquet (5)
+- == Initial Plan ==
Project (16)
+- Exchange (15)
+- Project (14)
+- Filter (13)
+- Scan parquet (5)
+- == Initial Plan ==
DeserializeToObject (73)
+- Project (72)
+- SortMergeJoin Inner (71)
:- Sort (59)
: +- Exchange (58)
: +- Union (57)
: :- Filter (52)
: : +- Scan ExistingRDD (51)
: +- ObjectHashAggregate (56)
: +- Exchange (55)
: +- ObjectHashAggregate (54)
: +- Filter (53)
: +- InMemoryTableScan (3)
: +- InMemoryRelation (4)
: +- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=40.9 KiB, rowCount=29)
+- Exchange (9)
+- * Project (8)
+- * Filter (7)
+- * ColumnarToRow (6)
+- Scan parquet (5)
+- == Initial Plan ==
Project (16)
+- Exchange (15)
+- Project (14)
+- Filter (13)
+- Scan parquet (5)
+- Sort (70)
+- Exchange (69)
+- Filter (68)
+- HashAggregate (67)
+- Exchange (66)
+- HashAggregate (65)
+- Union (64)
:- Project (28)
: +- Filter (27)
: +- Scan ExistingRDD (26)
+- HashAggregate (63)
+- Exchange (62)
+- HashAggregate (61)
+- Filter (60)
+- InMemoryTableScan (29)
+- InMemoryRelation (30)
+- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=40.9 KiB, rowCount=29)
+- Exchange (9)
+- * Project (8)
+- * Filter (7)
+- * ColumnarToRow (6)
+- Scan parquet (5)
+- == Initial Plan ==
Project (16)
+- Exchange (15)
+- Project (14)
+- Filter (13)
+- Scan parquet (5)
(1) Scan ExistingRDD [codegen id : 7]
Output [7]: [shardId#5515711, orderProposalId#5515712L, items#5515713, optimizationGroups#5515714, isOptimal#5515715, lastModified#5515716, optimizationInsights#5515717]
Arguments: [shardId#5515711, orderProposalId#5515712L, items#5515713, optimizationGroups#5515714, isOptimal#5515715, lastModified#5515716, optimizationInsights#5515717], MapPartitionsRDD[387963] at createDataFrame at OptimalQuantitiesCacheImpl.java:214, ExistingRDD, UnknownPartitioning(0)
(2) Filter [codegen id : 7]
Input [7]: [shardId#5515711, orderProposalId#5515712L, items#5515713, optimizationGroups#5515714, isOptimal#5515715, lastModified#5515716, optimizationInsights#5515717]
Condition : ((isnotnull(shardId#5515711) AND isnotnull(orderProposalId#5515712L)) AND isnotnull(lastModified#5515716))
(3) InMemoryTableScan
Output [3]: [shardId#5510457, worklistShardItemId#5510458L, orderProposalId#5510459L]
Arguments: [shardId#5510457, worklistShardItemId#5510458L, orderProposalId#5510459L], [isnotnull(shardId#5510457), isnotnull(orderProposalId#5510459L)]
(4) InMemoryRelation
Arguments: [shardId#5510457, worklistShardItemId#5510458L, orderProposalId#5510459L, orderProposalItemId#5510460, orderProposalItemGroupId#5510461, originalReplenishmentRunId#5510462L, orderProposalHorizonGroupingId#5510463L, splitIndicator#5510464L, previousOrderProposal#5510465L, clusterId#5510466L, sequenceId#5510467L, sourceOfSupplyUuid#5510468, supplierGroup#5510469, supplier#5510470, subrange#5510471, product#5510472, plant#5510473, purchasingOrg#5510474, purchasingGroup#5510475, mrpController#5510476, orderDateTime#5510477, deliveryDateTime#5510478, availabilityDateTime#5510479, nextAvailabilityDateTime#5510480, isFallbackOrderOnly#5510481, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(5) Scan parquet
Output [45]: [orderProposalId#5510502L, orderProposalItemId#5510503, supplierGroup#5510504, supplier#5510505, plant#5510506, deliveryDateTime#5510507, subrange#5510508, supplyingPlant#5510509, productGroup#5510510, product#5510511, orderDateTime#5510512, availabilityDateTime#5510513, nextAvailabilityDateTime#5510514, mrpController#5510515, sourceOfSupplyUuid#5510516, purchasingOrg#5510517, purchasingGroup#5510518, isFallbackOrderOnly#5510519, orderProposalHorizonGroupingId#5510520L, splitIndicator#5510521L, previousOrderProposal#5510522L, clusterId#5510523L, worklistShardItemId#5510525L, orderProposalItemGroupId#5510526, externalProductId#5510527, externalPlantId#5510528, logisticUnits#5510529, orderQuantityBaseUom#5510530, orderQuantityBaseUomUuid#5510531, minimumOrderQuantity#5510532, constraintLabels#5510533, constraintOperators#5510534, constraintValues#5510535, constraintRanks#5510536, constraintIsActive#5510537, netPriceAmount#5510538, netPriceCurrencyCode#5510539, netPriceQuantity#5510540, netPriceQuantityUom#5510541, netPriceQuantityUomUuid#5510542, measurements#5510543, originalReplenishmentRunId#5510544L, optimizationGroups#5510545, shardId#5510546, sequenceId#5510524]
Batched: true
Location: PreparedDeltaFileIndex [hdlfs://332d7051-0d16-44f5-ae76-bf2dcf30365f.files.hdl.prod-eu20.hanacloud.ondemand.com:443/crp-order-qty-opt-service/internal/prod-plant-snapshot/10000001445]
PartitionFilters: [isnotnull(shardId#5510546), isnotnull(sequenceId#5510524), (shardId#5510546 = 0_1_10000001445), (sequenceId#5510524 = 7)]
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#5510502L, orderProposalItemId#5510503, supplierGroup#5510504, supplier#5510505, plant#5510506, deliveryDateTime#5510507, subrange#5510508, supplyingPlant#5510509, productGroup#5510510, product#5510511, orderDateTime#5510512, availabilityDateTime#5510513, nextAvailabilityDateTime#5510514, mrpController#5510515, sourceOfSupplyUuid#5510516, purchasingOrg#5510517, purchasingGroup#5510518, isFallbackOrderOnly#5510519, orderProposalHorizonGroupingId#5510520L, splitIndicator#5510521L, previousOrderProposal#5510522L, clusterId#5510523L, worklistShardItemId#5510525L, orderProposalItemGroupId#5510526, externalProductId#5510527, externalPlantId#5510528, logisticUnits#5510529, orderQuantityBaseUom#5510530, orderQuantityBaseUomUuid#5510531, minimumOrderQuantity#5510532, constraintLabels#5510533, constraintOperators#5510534, constraintValues#5510535, constraintRanks#5510536, constraintIsActive#5510537, netPriceAmount#5510538, netPriceCurrencyCode#5510539, netPriceQuantity#5510540, netPriceQuantityUom#5510541, netPriceQuantityUomUuid#5510542, measurements#5510543, originalReplenishmentRunId#5510544L, optimizationGroups#5510545, shardId#5510546, sequenceId#5510524]
(7) Filter [codegen id : 1]
Input [45]: [orderProposalId#5510502L, orderProposalItemId#5510503, supplierGroup#5510504, supplier#5510505, plant#5510506, deliveryDateTime#5510507, subrange#5510508, supplyingPlant#5510509, productGroup#5510510, product#5510511, orderDateTime#5510512, availabilityDateTime#5510513, nextAvailabilityDateTime#5510514, mrpController#5510515, sourceOfSupplyUuid#5510516, purchasingOrg#5510517, purchasingGroup#5510518, isFallbackOrderOnly#5510519, orderProposalHorizonGroupingId#5510520L, splitIndicator#5510521L, previousOrderProposal#5510522L, clusterId#5510523L, worklistShardItemId#5510525L, orderProposalItemGroupId#5510526, externalProductId#5510527, externalPlantId#5510528, logisticUnits#5510529, orderQuantityBaseUom#5510530, orderQuantityBaseUomUuid#5510531, minimumOrderQuantity#5510532, constraintLabels#5510533, constraintOperators#5510534, constraintValues#5510535, constraintRanks#5510536, constraintIsActive#5510537, netPriceAmount#5510538, netPriceCurrencyCode#5510539, netPriceQuantity#5510540, netPriceQuantityUom#5510541, netPriceQuantityUomUuid#5510542, measurements#5510543, originalReplenishmentRunId#5510544L, optimizationGroups#5510545, shardId#5510546, sequenceId#5510524]
Condition : ((isnotnull(availabilityDateTime#5510513) AND isnotnull(nextAvailabilityDateTime#5510514)) AND (nextAvailabilityDateTime#5510514 > availabilityDateTime#5510513))
(8) Project [codegen id : 1]
Output [44]: [orderProposalId#5510502L, orderProposalItemId#5510503, supplierGroup#5510504, supplier#5510505, plant#5510506, deliveryDateTime#5510507, subrange#5510508, supplyingPlant#5510509, productGroup#5510510, product#5510511, orderDateTime#5510512, availabilityDateTime#5510513, nextAvailabilityDateTime#5510514, mrpController#5510515, sourceOfSupplyUuid#5510516, purchasingOrg#5510517, purchasingGroup#5510518, isFallbackOrderOnly#5510519, orderProposalHorizonGroupingId#5510520L, splitIndicator#5510521L, previousOrderProposal#5510522L, clusterId#5510523L, sequenceId#5510524, worklistShardItemId#5510525L, orderProposalItemGroupId#5510526, externalProductId#5510527, externalPlantId#5510528, logisticUnits#5510529, orderQuantityBaseUom#5510530, orderQuantityBaseUomUuid#5510531, minimumOrderQuantity#5510532, constraintLabels#5510533, constraintOperators#5510534, constraintValues#5510535, constraintRanks#5510536, constraintIsActive#5510537, netPriceAmount#5510538, netPriceCurrencyCode#5510539, netPriceQuantity#5510540, netPriceQuantityUom#5510541, netPriceQuantityUomUuid#5510542, measurements#5510543, originalReplenishmentRunId#5510544L, optimizationGroups#5510545]
Input [45]: [orderProposalId#5510502L, orderProposalItemId#5510503, supplierGroup#5510504, supplier#5510505, plant#5510506, deliveryDateTime#5510507, subrange#5510508, supplyingPlant#5510509, productGroup#5510510, product#5510511, orderDateTime#5510512, availabilityDateTime#5510513, nextAvailabilityDateTime#5510514, mrpController#5510515, sourceOfSupplyUuid#5510516, purchasingOrg#5510517, purchasingGroup#5510518, isFallbackOrderOnly#5510519, orderProposalHorizonGroupingId#5510520L, splitIndicator#5510521L, previousOrderProposal#5510522L, clusterId#5510523L, worklistShardItemId#5510525L, orderProposalItemGroupId#5510526, externalProductId#5510527, externalPlantId#5510528, logisticUnits#5510529, orderQuantityBaseUom#5510530, orderQuantityBaseUomUuid#5510531, minimumOrderQuantity#5510532, constraintLabels#5510533, constraintOperators#5510534, constraintValues#5510535, constraintRanks#5510536, constraintIsActive#5510537, netPriceAmount#5510538, netPriceCurrencyCode#5510539, netPriceQuantity#5510540, netPriceQuantityUom#5510541, netPriceQuantityUomUuid#5510542, measurements#5510543, originalReplenishmentRunId#5510544L, optimizationGroups#5510545, shardId#5510546, sequenceId#5510524]
(9) Exchange
Input [44]: [orderProposalId#5510502L, orderProposalItemId#5510503, supplierGroup#5510504, supplier#5510505, plant#5510506, deliveryDateTime#5510507, subrange#5510508, supplyingPlant#5510509, productGroup#5510510, product#5510511, orderDateTime#5510512, availabilityDateTime#5510513, nextAvailabilityDateTime#5510514, mrpController#5510515, sourceOfSupplyUuid#5510516, purchasingOrg#5510517, purchasingGroup#5510518, isFallbackOrderOnly#5510519, orderProposalHorizonGroupingId#5510520L, splitIndicator#5510521L, previousOrderProposal#5510522L, clusterId#5510523L, sequenceId#5510524, worklistShardItemId#5510525L, orderProposalItemGroupId#5510526, externalProductId#5510527, externalPlantId#5510528, logisticUnits#5510529, orderQuantityBaseUom#5510530, orderQuantityBaseUomUuid#5510531, minimumOrderQuantity#5510532, constraintLabels#5510533, constraintOperators#5510534, constraintValues#5510535, constraintRanks#5510536, constraintIsActive#5510537, netPriceAmount#5510538, netPriceCurrencyCode#5510539, netPriceQuantity#5510540, netPriceQuantityUom#5510541, netPriceQuantityUomUuid#5510542, measurements#5510543, originalReplenishmentRunId#5510544L, optimizationGroups#5510545]
Arguments: hashpartitioning(worklistShardItemId#5510525L, 37), REPARTITION_BY_NUM, [plan_id=2856105]
(10) ShuffleQueryStage
Output [44]: [orderProposalId#5510502L, orderProposalItemId#5510503, supplierGroup#5510504, supplier#5510505, plant#5510506, deliveryDateTime#5510507, subrange#5510508, supplyingPlant#5510509, productGroup#5510510, product#5510511, orderDateTime#5510512, availabilityDateTime#5510513, nextAvailabilityDateTime#5510514, mrpController#5510515, sourceOfSupplyUuid#5510516, purchasingOrg#5510517, purchasingGroup#5510518, isFallbackOrderOnly#5510519, orderProposalHorizonGroupingId#5510520L, splitIndicator#5510521L, previousOrderProposal#5510522L, clusterId#5510523L, sequenceId#5510524, worklistShardItemId#5510525L, orderProposalItemGroupId#5510526, externalProductId#5510527, externalPlantId#5510528, logisticUnits#5510529, orderQuantityBaseUom#5510530, orderQuantityBaseUomUuid#5510531, minimumOrderQuantity#5510532, constraintLabels#5510533, constraintOperators#5510534, constraintValues#5510535, constraintRanks#5510536, constraintIsActive#5510537, netPriceAmount#5510538, netPriceCurrencyCode#5510539, netPriceQuantity#5510540, netPriceQuantityUom#5510541, netPriceQuantityUomUuid#5510542, measurements#5510543, originalReplenishmentRunId#5510544L, optimizationGroups#5510545]
Arguments: 0
(11) Project [codegen id : 2]
Output [45]: [0_1_10000001445 AS shardId#5510457, worklistShardItemId#5510525L, orderProposalId#5510502L, orderProposalItemId#5510503, orderProposalItemGroupId#5510526, originalReplenishmentRunId#5510544L, orderProposalHorizonGroupingId#5510520L, splitIndicator#5510521L, previousOrderProposal#5510522L, clusterId#5510523L, cast(sequenceId#5510524 as bigint) AS sequenceId#5510467L, sourceOfSupplyUuid#5510516, supplierGroup#5510504, supplier#5510505, subrange#5510508, product#5510511, plant#5510506, purchasingOrg#5510517, purchasingGroup#5510518, mrpController#5510515, orderDateTime#5510512, deliveryDateTime#5510507, availabilityDateTime#5510513, nextAvailabilityDateTime#5510514, isFallbackOrderOnly#5510519, orderQuantityBaseUom#5510530, orderQuantityBaseUomUuid#5510531, netPriceQuantity#5510540, netPriceQuantityUom#5510541, netPriceQuantityUomUuid#5510542, netPriceAmount#5510538, netPriceCurrencyCode#5510539, measurements#5510543, minimumOrderQuantity#5510532, constraintLabels#5510533, constraintOperators#5510534, constraintRanks#5510536, constraintValues#5510535, constraintIsActive#5510537, logisticUnits#5510529, optimizationGroups#5510545, externalProductId#5510527, externalPlantId#5510528, supplyingPlant#5510509, productGroup#5510510]
Input [44]: [orderProposalId#5510502L, orderProposalItemId#5510503, supplierGroup#5510504, supplier#5510505, plant#5510506, deliveryDateTime#5510507, subrange#5510508, supplyingPlant#5510509, productGroup#5510510, product#5510511, orderDateTime#5510512, availabilityDateTime#5510513, nextAvailabilityDateTime#5510514, mrpController#5510515, sourceOfSupplyUuid#5510516, purchasingOrg#5510517, purchasingGroup#5510518, isFallbackOrderOnly#5510519, orderProposalHorizonGroupingId#5510520L, splitIndicator#5510521L, previousOrderProposal#5510522L, clusterId#5510523L, sequenceId#5510524, worklistShardItemId#5510525L, orderProposalItemGroupId#5510526, externalProductId#5510527, externalPlantId#5510528, logisticUnits#5510529, orderQuantityBaseUom#5510530, orderQuantityBaseUomUuid#5510531, minimumOrderQuantity#5510532, constraintLabels#5510533, constraintOperators#5510534, constraintValues#5510535, constraintRanks#5510536, constraintIsActive#5510537, netPriceAmount#5510538, netPriceCurrencyCode#5510539, netPriceQuantity#5510540, netPriceQuantityUom#5510541, netPriceQuantityUomUuid#5510542, measurements#5510543, originalReplenishmentRunId#5510544L, optimizationGroups#5510545]
(12) ResultQueryStage
Output [45]: [shardId#5510457, worklistShardItemId#5510525L, orderProposalId#5510502L, orderProposalItemId#5510503, orderProposalItemGroupId#5510526, originalReplenishmentRunId#5510544L, orderProposalHorizonGroupingId#5510520L, splitIndicator#5510521L, previousOrderProposal#5510522L, clusterId#5510523L, sequenceId#5510467L, sourceOfSupplyUuid#5510516, supplierGroup#5510504, supplier#5510505, subrange#5510508, product#5510511, plant#5510506, purchasingOrg#5510517, purchasingGroup#5510518, mrpController#5510515, orderDateTime#5510512, deliveryDateTime#5510507, availabilityDateTime#5510513, nextAvailabilityDateTime#5510514, isFallbackOrderOnly#5510519, orderQuantityBaseUom#5510530, orderQuantityBaseUomUuid#5510531, netPriceQuantity#5510540, netPriceQuantityUom#5510541, netPriceQuantityUomUuid#5510542, netPriceAmount#5510538, netPriceCurrencyCode#5510539, measurements#5510543, minimumOrderQuantity#5510532, constraintLabels#5510533, constraintOperators#5510534, constraintRanks#5510536, constraintValues#5510535, constraintIsActive#5510537, logisticUnits#5510529, optimizationGroups#5510545, externalProductId#5510527, externalPlantId#5510528, supplyingPlant#5510509, productGroup#5510510]
Arguments: 1
(13) Filter
Input [45]: [orderProposalId#5510502L, orderProposalItemId#5510503, supplierGroup#5510504, supplier#5510505, plant#5510506, deliveryDateTime#5510507, subrange#5510508, supplyingPlant#5510509, productGroup#5510510, product#5510511, orderDateTime#5510512, availabilityDateTime#5510513, nextAvailabilityDateTime#5510514, mrpController#5510515, sourceOfSupplyUuid#5510516, purchasingOrg#5510517, purchasingGroup#5510518, isFallbackOrderOnly#5510519, orderProposalHorizonGroupingId#5510520L, splitIndicator#5510521L, previousOrderProposal#5510522L, clusterId#5510523L, worklistShardItemId#5510525L, orderProposalItemGroupId#5510526, externalProductId#5510527, externalPlantId#5510528, logisticUnits#5510529, orderQuantityBaseUom#5510530, orderQuantityBaseUomUuid#5510531, minimumOrderQuantity#5510532, constraintLabels#5510533, constraintOperators#5510534, constraintValues#5510535, constraintRanks#5510536, constraintIsActive#5510537, netPriceAmount#5510538, netPriceCurrencyCode#5510539, netPriceQuantity#5510540, netPriceQuantityUom#5510541, netPriceQuantityUomUuid#5510542, measurements#5510543, originalReplenishmentRunId#5510544L, optimizationGroups#5510545, shardId#5510546, sequenceId#5510524]
Condition : ((isnotnull(availabilityDateTime#5510513) AND isnotnull(nextAvailabilityDateTime#5510514)) AND (nextAvailabilityDateTime#5510514 > availabilityDateTime#5510513))
(14) Project
Output [44]: [orderProposalId#5510502L, orderProposalItemId#5510503, supplierGroup#5510504, supplier#5510505, plant#5510506, deliveryDateTime#5510507, subrange#5510508, supplyingPlant#5510509, productGroup#5510510, product#5510511, orderDateTime#5510512, availabilityDateTime#5510513, nextAvailabilityDateTime#5510514, mrpController#5510515, sourceOfSupplyUuid#5510516, purchasingOrg#5510517, purchasingGroup#5510518, isFallbackOrderOnly#5510519, orderProposalHorizonGroupingId#5510520L, splitIndicator#5510521L, previousOrderProposal#5510522L, clusterId#5510523L, sequenceId#5510524, worklistShardItemId#5510525L, orderProposalItemGroupId#5510526, externalProductId#5510527, externalPlantId#5510528, logisticUnits#5510529, orderQuantityBaseUom#5510530, orderQuantityBaseUomUuid#5510531, minimumOrderQuantity#5510532, constraintLabels#5510533, constraintOperators#5510534, constraintValues#5510535, constraintRanks#5510536, constraintIsActive#5510537, netPriceAmount#5510538, netPriceCurrencyCode#5510539, netPriceQuantity#5510540, netPriceQuantityUom#5510541, netPriceQuantityUomUuid#5510542, measurements#5510543, originalReplenishmentRunId#5510544L, optimizationGroups#5510545]
Input [45]: [orderProposalId#5510502L, orderProposalItemId#5510503, supplierGroup#5510504, supplier#5510505, plant#5510506, deliveryDateTime#5510507, subrange#5510508, supplyingPlant#5510509, productGroup#5510510, product#5510511, orderDateTime#5510512, availabilityDateTime#5510513, nextAvailabilityDateTime#5510514, mrpController#5510515, sourceOfSupplyUuid#5510516, purchasingOrg#5510517, purchasingGroup#5510518, isFallbackOrderOnly#5510519, orderProposalHorizonGroupingId#5510520L, splitIndicator#5510521L, previousOrderProposal#5510522L, clusterId#5510523L, worklistShardItemId#5510525L, orderProposalItemGroupId#5510526, externalProductId#5510527, externalPlantId#5510528, logisticUnits#5510529, orderQuantityBaseUom#5510530, orderQuantityBaseUomUuid#5510531, minimumOrderQuantity#5510532, constraintLabels#5510533, constraintOperators#5510534, constraintValues#5510535, constraintRanks#5510536, constraintIsActive#5510537, netPriceAmount#5510538, netPriceCurrencyCode#5510539, netPriceQuantity#5510540, netPriceQuantityUom#5510541, netPriceQuantityUomUuid#5510542, measurements#5510543, originalReplenishmentRunId#5510544L, optimizationGroups#5510545, shardId#5510546, sequenceId#5510524]
(15) Exchange
Input [44]: [orderProposalId#5510502L, orderProposalItemId#5510503, supplierGroup#5510504, supplier#5510505, plant#5510506, deliveryDateTime#5510507, subrange#5510508, supplyingPlant#5510509, productGroup#5510510, product#5510511, orderDateTime#5510512, availabilityDateTime#5510513, nextAvailabilityDateTime#5510514, mrpController#5510515, sourceOfSupplyUuid#5510516, purchasingOrg#5510517, purchasingGroup#5510518, isFallbackOrderOnly#5510519, orderProposalHorizonGroupingId#5510520L, splitIndicator#5510521L, previousOrderProposal#5510522L, clusterId#5510523L, sequenceId#5510524, worklistShardItemId#5510525L, orderProposalItemGroupId#5510526, externalProductId#5510527, externalPlantId#5510528, logisticUnits#5510529, orderQuantityBaseUom#5510530, orderQuantityBaseUomUuid#5510531, minimumOrderQuantity#5510532, constraintLabels#5510533, constraintOperators#5510534, constraintValues#5510535, constraintRanks#5510536, constraintIsActive#5510537, netPriceAmount#5510538, netPriceCurrencyCode#5510539, netPriceQuantity#5510540, netPriceQuantityUom#5510541, netPriceQuantityUomUuid#5510542, measurements#5510543, originalReplenishmentRunId#5510544L, optimizationGroups#5510545]
Arguments: hashpartitioning(worklistShardItemId#5510525L, 37), REPARTITION_BY_NUM, [plan_id=2856077]
(16) Project
Output [45]: [0_1_10000001445 AS shardId#5510457, worklistShardItemId#5510525L, orderProposalId#5510502L, orderProposalItemId#5510503, orderProposalItemGroupId#5510526, originalReplenishmentRunId#5510544L, orderProposalHorizonGroupingId#5510520L, splitIndicator#5510521L, previousOrderProposal#5510522L, clusterId#5510523L, cast(sequenceId#5510524 as bigint) AS sequenceId#5510467L, sourceOfSupplyUuid#5510516, supplierGroup#5510504, supplier#5510505, subrange#5510508, product#5510511, plant#5510506, purchasingOrg#5510517, purchasingGroup#5510518, mrpController#5510515, orderDateTime#5510512, deliveryDateTime#5510507, availabilityDateTime#5510513, nextAvailabilityDateTime#5510514, isFallbackOrderOnly#5510519, orderQuantityBaseUom#5510530, orderQuantityBaseUomUuid#5510531, netPriceQuantity#5510540, netPriceQuantityUom#5510541, netPriceQuantityUomUuid#5510542, netPriceAmount#5510538, netPriceCurrencyCode#5510539, measurements#5510543, minimumOrderQuantity#5510532, constraintLabels#5510533, constraintOperators#5510534, constraintRanks#5510536, constraintValues#5510535, constraintIsActive#5510537, logisticUnits#5510529, optimizationGroups#5510545, externalProductId#5510527, externalPlantId#5510528, supplyingPlant#5510509, productGroup#5510510]
Input [44]: [orderProposalId#5510502L, orderProposalItemId#5510503, supplierGroup#5510504, supplier#5510505, plant#5510506, deliveryDateTime#5510507, subrange#5510508, supplyingPlant#5510509, productGroup#5510510, product#5510511, orderDateTime#5510512, availabilityDateTime#5510513, nextAvailabilityDateTime#5510514, mrpController#5510515, sourceOfSupplyUuid#5510516, purchasingOrg#5510517, purchasingGroup#5510518, isFallbackOrderOnly#5510519, orderProposalHorizonGroupingId#5510520L, splitIndicator#5510521L, previousOrderProposal#5510522L, clusterId#5510523L, sequenceId#5510524, worklistShardItemId#5510525L, orderProposalItemGroupId#5510526, externalProductId#5510527, externalPlantId#5510528, logisticUnits#5510529, orderQuantityBaseUom#5510530, orderQuantityBaseUomUuid#5510531, minimumOrderQuantity#5510532, constraintLabels#5510533, constraintOperators#5510534, constraintValues#5510535, constraintRanks#5510536, constraintIsActive#5510537, netPriceAmount#5510538, netPriceCurrencyCode#5510539, netPriceQuantity#5510540, netPriceQuantityUom#5510541, netPriceQuantityUomUuid#5510542, measurements#5510543, originalReplenishmentRunId#5510544L, optimizationGroups#5510545]
(17) AdaptiveSparkPlan
Output [45]: [shardId#5510457, worklistShardItemId#5510525L, orderProposalId#5510502L, orderProposalItemId#5510503, orderProposalItemGroupId#5510526, originalReplenishmentRunId#5510544L, orderProposalHorizonGroupingId#5510520L, splitIndicator#5510521L, previousOrderProposal#5510522L, clusterId#5510523L, sequenceId#5510467L, sourceOfSupplyUuid#5510516, supplierGroup#5510504, supplier#5510505, subrange#5510508, product#5510511, plant#5510506, purchasingOrg#5510517, purchasingGroup#5510518, mrpController#5510515, orderDateTime#5510512, deliveryDateTime#5510507, availabilityDateTime#5510513, nextAvailabilityDateTime#5510514, isFallbackOrderOnly#5510519, orderQuantityBaseUom#5510530, orderQuantityBaseUomUuid#5510531, netPriceQuantity#5510540, netPriceQuantityUom#5510541, netPriceQuantityUomUuid#5510542, netPriceAmount#5510538, netPriceCurrencyCode#5510539, measurements#5510543, minimumOrderQuantity#5510532, constraintLabels#5510533, constraintOperators#5510534, constraintRanks#5510536, constraintValues#5510535, constraintIsActive#5510537, logisticUnits#5510529, optimizationGroups#5510545, externalProductId#5510527, externalPlantId#5510528, supplyingPlant#5510509, productGroup#5510510]
Arguments: isFinalPlan=true
(18) TableCacheQueryStage
Output [3]: [shardId#5510457, worklistShardItemId#5510458L, orderProposalId#5510459L]
Arguments: 0
(19) Filter [codegen id : 1]
Input [3]: [shardId#5510457, worklistShardItemId#5510458L, orderProposalId#5510459L]
Condition : (isnotnull(shardId#5510457) AND isnotnull(orderProposalId#5510459L))
(20) ObjectHashAggregate
Input [3]: [shardId#5510457, worklistShardItemId#5510458L, orderProposalId#5510459L]
Keys [2]: [shardId#5510457, orderProposalId#5510459L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#5510458L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#5517206]
Results [3]: [shardId#5510457, orderProposalId#5510459L, buf#5517207]
(21) Exchange
Input [3]: [shardId#5510457, orderProposalId#5510459L, buf#5517207]
Arguments: hashpartitioning(shardId#5510457, orderProposalId#5510459L, 37), ENSURE_REQUIREMENTS, [plan_id=2856471]
(22) ShuffleQueryStage [codegen id : 7]
Output [3]: [shardId#5510457, orderProposalId#5510459L, buf#5517207]
Arguments: 2
(23) AQEShuffleRead [codegen id : 7]
Input [3]: [shardId#5510457, orderProposalId#5510459L, buf#5517207]
Arguments: coalesced
(24) ObjectHashAggregate [codegen id : 7]
Input [3]: [shardId#5510457, orderProposalId#5510459L, buf#5517207]
Keys [2]: [shardId#5510457, orderProposalId#5510459L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#5510458L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#5510458L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#5515702]
Results [7]: [shardId#5510457, orderProposalId#5510459L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#5510458L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#5515702, lambdafunction(struct(worklistShardItemId, lambda x_10918#5515723.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_10918#5515723.quantityAfterProdPlantOptimization, qty, lambda x_10918#5515723.optimalQuantity), lambda x_10918#5515723, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#5515724, [] AS optimizationGroups#5515718, false AS isOptimal#5515703, 2026-07-21 20:47:34.12543 AS lastModified#5515722, [] AS optimizationInsights#5515719]
(25) Union
(26) Scan ExistingRDD [codegen id : 3]
Output [7]: [shardId#5515734, orderProposalId#5515735L, items#5515736, optimizationGroups#5515737, isOptimal#5515738, lastModified#5515739, optimizationInsights#5515740]
Arguments: [shardId#5515734, orderProposalId#5515735L, items#5515736, optimizationGroups#5515737, isOptimal#5515738, lastModified#5515739, optimizationInsights#5515740], MapPartitionsRDD[387963] at createDataFrame at OptimalQuantitiesCacheImpl.java:214, ExistingRDD, UnknownPartitioning(0)
(27) Filter [codegen id : 3]
Input [7]: [shardId#5515734, orderProposalId#5515735L, items#5515736, optimizationGroups#5515737, isOptimal#5515738, lastModified#5515739, optimizationInsights#5515740]
Condition : (isnotnull(shardId#5515734) AND isnotnull(orderProposalId#5515735L))
(28) Project [codegen id : 3]
Output [3]: [shardId#5515734, orderProposalId#5515735L, lastModified#5515739]
Input [7]: [shardId#5515734, orderProposalId#5515735L, items#5515736, optimizationGroups#5515737, isOptimal#5515738, lastModified#5515739, optimizationInsights#5515740]
(29) InMemoryTableScan
Output [2]: [shardId#5515741, orderProposalId#5515743L]
Arguments: [shardId#5515741, orderProposalId#5515743L], [isnotnull(shardId#5515741), isnotnull(orderProposalId#5515743L)]
(30) InMemoryRelation
Arguments: [shardId#5515741, worklistShardItemId#5515742L, orderProposalId#5515743L, orderProposalItemId#5515744, orderProposalItemGroupId#5515745, originalReplenishmentRunId#5515746L, orderProposalHorizonGroupingId#5515747L, splitIndicator#5515748L, previousOrderProposal#5515749L, clusterId#5515750L, sequenceId#5515751L, sourceOfSupplyUuid#5515752, supplierGroup#5515753, supplier#5515754, subrange#5515755, product#5515756, plant#5515757, purchasingOrg#5515758, purchasingGroup#5515759, mrpController#5515760, orderDateTime#5515761, deliveryDateTime#5515762, availabilityDateTime#5515763, nextAvailabilityDateTime#5515764, isFallbackOrderOnly#5515765, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(31) TableCacheQueryStage
Output [2]: [shardId#5515741, orderProposalId#5515743L]
Arguments: 1
(32) Filter [codegen id : 2]
Input [2]: [shardId#5515741, orderProposalId#5515743L]
Condition : (isnotnull(shardId#5515741) AND isnotnull(orderProposalId#5515743L))
(33) HashAggregate [codegen id : 2]
Input [2]: [shardId#5515741, orderProposalId#5515743L]
Keys [2]: [shardId#5515741, orderProposalId#5515743L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#5515741, orderProposalId#5515743L]
(34) Exchange
Input [2]: [shardId#5515741, orderProposalId#5515743L]
Arguments: hashpartitioning(shardId#5515741, orderProposalId#5515743L, 37), ENSURE_REQUIREMENTS, [plan_id=2856507]
(35) ShuffleQueryStage
Output [2]: [shardId#5515741, orderProposalId#5515743L]
Arguments: 3
(36) AQEShuffleRead
Input [2]: [shardId#5515741, orderProposalId#5515743L]
Arguments: coalesced
(37) HashAggregate [codegen id : 4]
Input [2]: [shardId#5515741, orderProposalId#5515743L]
Keys [2]: [shardId#5515741, orderProposalId#5515743L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#5515741, orderProposalId#5515743L, 2026-07-21 20:47:34.12543 AS lastModified#5515838]
(38) Union
(39) HashAggregate [codegen id : 5]
Input [3]: [shardId#5515734, orderProposalId#5515735L, lastModified#5515739]
Keys [2]: [shardId#5515734, orderProposalId#5515735L]
Functions [1]: [partial_max(lastModified#5515739)]
Aggregate Attributes [1]: [max#5517208]
Results [3]: [shardId#5515734, orderProposalId#5515735L, max#5517209]
(40) Exchange
Input [3]: [shardId#5515734, orderProposalId#5515735L, max#5517209]
Arguments: hashpartitioning(shardId#5515734, orderProposalId#5515735L, 37), ENSURE_REQUIREMENTS, [plan_id=2856611]
(41) ShuffleQueryStage
Output [3]: [shardId#5515734, orderProposalId#5515735L, max#5517209]
Arguments: 4
(42) AQEShuffleRead
Input [3]: [shardId#5515734, orderProposalId#5515735L, max#5517209]
Arguments: coalesced
(43) HashAggregate [codegen id : 6]
Input [3]: [shardId#5515734, orderProposalId#5515735L, max#5517209]
Keys [2]: [shardId#5515734, orderProposalId#5515735L]
Functions [1]: [max(lastModified#5515739)]
Aggregate Attributes [1]: [max(lastModified#5515739)#5515733]
Results [3]: [shardId#5515734, orderProposalId#5515735L, max(lastModified#5515739)#5515733 AS lastModified#5515725]
(44) Filter [codegen id : 6]
Input [3]: [shardId#5515734, orderProposalId#5515735L, lastModified#5515725]
Condition : isnotnull(lastModified#5515725)
(45) BroadcastExchange
Input [3]: [shardId#5515734, orderProposalId#5515735L, lastModified#5515725]
Arguments: HashedRelationBroadcastMode(List(input[0, string, true], input[1, bigint, true], input[2, timestamp, false]),false), [plan_id=2856674]
(46) BroadcastQueryStage
Output [3]: [shardId#5515734, orderProposalId#5515735L, lastModified#5515725]
Arguments: 5
(47) BroadcastHashJoin [codegen id : 8]
Left keys [3]: [shardId#5515711, orderProposalId#5515712L, lastModified#5515716]
Right keys [3]: [shardId#5515734, orderProposalId#5515735L, lastModified#5515725]
Join type: Inner
Join condition: None
(48) Project [codegen id : 8]
Output [7]: [shardId#5515711, orderProposalId#5515712L, items#5515713, optimizationGroups#5515714, isOptimal#5515715, lastModified#5515716, optimizationInsights#5515717]
Input [10]: [shardId#5515711, orderProposalId#5515712L, items#5515713, optimizationGroups#5515714, isOptimal#5515715, lastModified#5515716, optimizationInsights#5515717, shardId#5515734, orderProposalId#5515735L, lastModified#5515725]
(49) DeserializeToObject
Input [7]: [shardId#5515711, orderProposalId#5515712L, items#5515713, optimizationGroups#5515714, isOptimal#5515715, lastModified#5515716, optimizationInsights#5515717]
Arguments: createexternalrow(invoke(shardId#5515711.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#5515712L)), 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#5515713, 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#5515714, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#5515715)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#5515716)), 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#5515717, 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#5515855: org.apache.spark.sql.Row
(50) ResultQueryStage
Output [1]: [obj#5515855]
Arguments: 6
(51) Scan ExistingRDD
Output [7]: [shardId#5515711, orderProposalId#5515712L, items#5515713, optimizationGroups#5515714, isOptimal#5515715, lastModified#5515716, optimizationInsights#5515717]
Arguments: [shardId#5515711, orderProposalId#5515712L, items#5515713, optimizationGroups#5515714, isOptimal#5515715, lastModified#5515716, optimizationInsights#5515717], MapPartitionsRDD[387963] at createDataFrame at OptimalQuantitiesCacheImpl.java:214, ExistingRDD, UnknownPartitioning(0)
(52) Filter
Input [7]: [shardId#5515711, orderProposalId#5515712L, items#5515713, optimizationGroups#5515714, isOptimal#5515715, lastModified#5515716, optimizationInsights#5515717]
Condition : ((isnotnull(shardId#5515711) AND isnotnull(orderProposalId#5515712L)) AND isnotnull(lastModified#5515716))
(53) Filter
Input [3]: [shardId#5510457, worklistShardItemId#5510458L, orderProposalId#5510459L]
Condition : (isnotnull(shardId#5510457) AND isnotnull(orderProposalId#5510459L))
(54) ObjectHashAggregate
Input [3]: [shardId#5510457, worklistShardItemId#5510458L, orderProposalId#5510459L]
Keys [2]: [shardId#5510457, orderProposalId#5510459L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#5510458L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#5517206]
Results [3]: [shardId#5510457, orderProposalId#5510459L, buf#5517207]
(55) Exchange
Input [3]: [shardId#5510457, orderProposalId#5510459L, buf#5517207]
Arguments: hashpartitioning(shardId#5510457, orderProposalId#5510459L, 37), ENSURE_REQUIREMENTS, [plan_id=2856300]
(56) ObjectHashAggregate
Input [3]: [shardId#5510457, orderProposalId#5510459L, buf#5517207]
Keys [2]: [shardId#5510457, orderProposalId#5510459L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#5510458L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#5510458L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#5515702]
Results [7]: [shardId#5510457, orderProposalId#5510459L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#5510458L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#5515702, lambdafunction(struct(worklistShardItemId, lambda x_10918#5515723.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_10918#5515723.quantityAfterProdPlantOptimization, qty, lambda x_10918#5515723.optimalQuantity), lambda x_10918#5515723, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#5515724, [] AS optimizationGroups#5515718, false AS isOptimal#5515703, 2026-07-21 20:47:34.12543 AS lastModified#5515722, [] AS optimizationInsights#5515719]
(57) Union
(58) Exchange
Input [7]: [shardId#5515711, orderProposalId#5515712L, items#5515713, optimizationGroups#5515714, isOptimal#5515715, lastModified#5515716, optimizationInsights#5515717]
Arguments: hashpartitioning(shardId#5515711, orderProposalId#5515712L, lastModified#5515716, 37), ENSURE_REQUIREMENTS, [plan_id=2856313]
(59) Sort
Input [7]: [shardId#5515711, orderProposalId#5515712L, items#5515713, optimizationGroups#5515714, isOptimal#5515715, lastModified#5515716, optimizationInsights#5515717]
Arguments: [shardId#5515711 ASC NULLS FIRST, orderProposalId#5515712L ASC NULLS FIRST, lastModified#5515716 ASC NULLS FIRST], false, 0
(60) Filter
Input [2]: [shardId#5515741, orderProposalId#5515743L]
Condition : (isnotnull(shardId#5515741) AND isnotnull(orderProposalId#5515743L))
(61) HashAggregate
Input [2]: [shardId#5515741, orderProposalId#5515743L]
Keys [2]: [shardId#5515741, orderProposalId#5515743L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#5515741, orderProposalId#5515743L]
(62) Exchange
Input [2]: [shardId#5515741, orderProposalId#5515743L]
Arguments: hashpartitioning(shardId#5515741, orderProposalId#5515743L, 37), ENSURE_REQUIREMENTS, [plan_id=2856303]
(63) HashAggregate
Input [2]: [shardId#5515741, orderProposalId#5515743L]
Keys [2]: [shardId#5515741, orderProposalId#5515743L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#5515741, orderProposalId#5515743L, 2026-07-21 20:47:34.12543 AS lastModified#5515838]
(64) Union
(65) HashAggregate
Input [3]: [shardId#5515734, orderProposalId#5515735L, lastModified#5515739]
Keys [2]: [shardId#5515734, orderProposalId#5515735L]
Functions [1]: [partial_max(lastModified#5515739)]
Aggregate Attributes [1]: [max#5517208]
Results [3]: [shardId#5515734, orderProposalId#5515735L, max#5517209]
(66) Exchange
Input [3]: [shardId#5515734, orderProposalId#5515735L, max#5517209]
Arguments: hashpartitioning(shardId#5515734, orderProposalId#5515735L, 37), ENSURE_REQUIREMENTS, [plan_id=2856308]
(67) HashAggregate
Input [3]: [shardId#5515734, orderProposalId#5515735L, max#5517209]
Keys [2]: [shardId#5515734, orderProposalId#5515735L]
Functions [1]: [max(lastModified#5515739)]
Aggregate Attributes [1]: [max(lastModified#5515739)#5515733]
Results [3]: [shardId#5515734, orderProposalId#5515735L, max(lastModified#5515739)#5515733 AS lastModified#5515725]
(68) Filter
Input [3]: [shardId#5515734, orderProposalId#5515735L, lastModified#5515725]
Condition : isnotnull(lastModified#5515725)
(69) Exchange
Input [3]: [shardId#5515734, orderProposalId#5515735L, lastModified#5515725]
Arguments: hashpartitioning(shardId#5515734, orderProposalId#5515735L, lastModified#5515725, 37), ENSURE_REQUIREMENTS, [plan_id=2856314]
(70) Sort
Input [3]: [shardId#5515734, orderProposalId#5515735L, lastModified#5515725]
Arguments: [shardId#5515734 ASC NULLS FIRST, orderProposalId#5515735L ASC NULLS FIRST, lastModified#5515725 ASC NULLS FIRST], false, 0
(71) SortMergeJoin
Left keys [3]: [shardId#5515711, orderProposalId#5515712L, lastModified#5515716]
Right keys [3]: [shardId#5515734, orderProposalId#5515735L, lastModified#5515725]
Join type: Inner
Join condition: None
(72) Project
Output [7]: [shardId#5515711, orderProposalId#5515712L, items#5515713, optimizationGroups#5515714, isOptimal#5515715, lastModified#5515716, optimizationInsights#5515717]
Input [10]: [shardId#5515711, orderProposalId#5515712L, items#5515713, optimizationGroups#5515714, isOptimal#5515715, lastModified#5515716, optimizationInsights#5515717, shardId#5515734, orderProposalId#5515735L, lastModified#5515725]
(73) DeserializeToObject
Input [7]: [shardId#5515711, orderProposalId#5515712L, items#5515713, optimizationGroups#5515714, isOptimal#5515715, lastModified#5515716, optimizationInsights#5515717]
Arguments: createexternalrow(invoke(shardId#5515711.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#5515712L)), 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#5515713, 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#5515714, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#5515715)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#5515716)), 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#5515717, 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#5515855: org.apache.spark.sql.Row
(74) AdaptiveSparkPlan
Output [1]: [obj#5515855]
Arguments: isFinalPlan=true