== 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=14)
: +- BroadcastExchange (29)
: +- AQEShuffleRead (28)
: +- ShuffleQueryStage (27), Statistics(sizeInBytes=9.5 KiB, rowCount=14)
: +- Exchange (26)
: +- Union (25)
: :- * Filter (2)
: : +- * Scan ExistingRDD (1)
: +- ObjectHashAggregate (24)
: +- AQEShuffleRead (23)
: +- ShuffleQueryStage (22), Statistics(sizeInBytes=19.4 KiB, rowCount=146)
: +- Exchange (21)
: +- ObjectHashAggregate (20)
: +- * Filter (19)
: +- TableCacheQueryStage (18), Statistics(sizeInBytes=265.8 KiB, rowCount=205)
: +- InMemoryTableScan (3)
: +- InMemoryRelation (4)
: +- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=295.0 KiB, rowCount=205)
+- 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=672.0 B, rowCount=14)
+- Exchange (45)
+- * HashAggregate (44)
+- Union (43)
:- * Project (33)
: +- * Filter (32)
: +- * Scan ExistingRDD (31)
+- * HashAggregate (42)
+- AQEShuffleRead (41)
+- ShuffleQueryStage (40), Statistics(sizeInBytes=5.7 KiB, rowCount=146)
+- Exchange (39)
+- * HashAggregate (38)
+- * Filter (37)
+- TableCacheQueryStage (36), Statistics(sizeInBytes=265.8 KiB, rowCount=205)
+- InMemoryTableScan (34)
+- InMemoryRelation (35)
+- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=295.0 KiB, rowCount=205)
+- 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=295.0 KiB, rowCount=205)
+- 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=295.0 KiB, rowCount=205)
+- 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#580113, orderProposalId#580114L, items#580115, optimizationGroups#580116, isOptimal#580117, lastModified#580118, optimizationInsights#580119]
Arguments: [shardId#580113, orderProposalId#580114L, items#580115, optimizationGroups#580116, isOptimal#580117, lastModified#580118, optimizationInsights#580119], MapPartitionsRDD[27796] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(2) Filter [codegen id : 3]
Input [7]: [shardId#580113, orderProposalId#580114L, items#580115, optimizationGroups#580116, isOptimal#580117, lastModified#580118, optimizationInsights#580119]
Condition : ((isnotnull(shardId#580113) AND isnotnull(orderProposalId#580114L)) AND isnotnull(lastModified#580118))
(3) InMemoryTableScan
Output [3]: [shardId#574859, worklistShardItemId#574860L, orderProposalId#574861L]
Arguments: [shardId#574859, worklistShardItemId#574860L, orderProposalId#574861L], [isnotnull(shardId#574859), isnotnull(orderProposalId#574861L)]
(4) InMemoryRelation
Arguments: [shardId#574859, worklistShardItemId#574860L, orderProposalId#574861L, orderProposalItemId#574862, orderProposalItemGroupId#574863, originalReplenishmentRunId#574864L, orderProposalHorizonGroupingId#574865L, splitIndicator#574866L, previousOrderProposal#574867L, clusterId#574868L, sequenceId#574869L, sourceOfSupplyUuid#574870, supplierGroup#574871, supplier#574872, subrange#574873, product#574874, plant#574875, purchasingOrg#574876, purchasingGroup#574877, mrpController#574878, orderDateTime#574879, deliveryDateTime#574880, availabilityDateTime#574881, nextAvailabilityDateTime#574882, isFallbackOrderOnly#574883, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(5) Scan parquet
Output [45]: [orderProposalId#574904L, orderProposalItemId#574905, supplierGroup#574906, supplier#574907, plant#574908, deliveryDateTime#574909, subrange#574910, supplyingPlant#574911, productGroup#574912, product#574913, orderDateTime#574914, availabilityDateTime#574915, nextAvailabilityDateTime#574916, mrpController#574917, sourceOfSupplyUuid#574918, purchasingOrg#574919, purchasingGroup#574920, isFallbackOrderOnly#574921, orderProposalHorizonGroupingId#574922L, splitIndicator#574923L, previousOrderProposal#574924L, clusterId#574925L, worklistShardItemId#574927L, orderProposalItemGroupId#574928, externalProductId#574929, externalPlantId#574930, logisticUnits#574931, orderQuantityBaseUom#574932, orderQuantityBaseUomUuid#574933, minimumOrderQuantity#574934, constraintLabels#574935, constraintOperators#574936, constraintValues#574937, constraintRanks#574938, constraintIsActive#574939, netPriceAmount#574940, netPriceCurrencyCode#574941, netPriceQuantity#574942, netPriceQuantityUom#574943, netPriceQuantityUomUuid#574944, measurements#574945, originalReplenishmentRunId#574946L, optimizationGroups#574947, shardId#574948, sequenceId#574926]
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/10000002107]
PartitionFilters: [isnotnull(shardId#574948), isnotnull(sequenceId#574926), (shardId#574948 = 0_1_10000002107), (sequenceId#574926 = 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#574904L, orderProposalItemId#574905, supplierGroup#574906, supplier#574907, plant#574908, deliveryDateTime#574909, subrange#574910, supplyingPlant#574911, productGroup#574912, product#574913, orderDateTime#574914, availabilityDateTime#574915, nextAvailabilityDateTime#574916, mrpController#574917, sourceOfSupplyUuid#574918, purchasingOrg#574919, purchasingGroup#574920, isFallbackOrderOnly#574921, orderProposalHorizonGroupingId#574922L, splitIndicator#574923L, previousOrderProposal#574924L, clusterId#574925L, worklistShardItemId#574927L, orderProposalItemGroupId#574928, externalProductId#574929, externalPlantId#574930, logisticUnits#574931, orderQuantityBaseUom#574932, orderQuantityBaseUomUuid#574933, minimumOrderQuantity#574934, constraintLabels#574935, constraintOperators#574936, constraintValues#574937, constraintRanks#574938, constraintIsActive#574939, netPriceAmount#574940, netPriceCurrencyCode#574941, netPriceQuantity#574942, netPriceQuantityUom#574943, netPriceQuantityUomUuid#574944, measurements#574945, originalReplenishmentRunId#574946L, optimizationGroups#574947, shardId#574948, sequenceId#574926]
(7) Filter [codegen id : 1]
Input [45]: [orderProposalId#574904L, orderProposalItemId#574905, supplierGroup#574906, supplier#574907, plant#574908, deliveryDateTime#574909, subrange#574910, supplyingPlant#574911, productGroup#574912, product#574913, orderDateTime#574914, availabilityDateTime#574915, nextAvailabilityDateTime#574916, mrpController#574917, sourceOfSupplyUuid#574918, purchasingOrg#574919, purchasingGroup#574920, isFallbackOrderOnly#574921, orderProposalHorizonGroupingId#574922L, splitIndicator#574923L, previousOrderProposal#574924L, clusterId#574925L, worklistShardItemId#574927L, orderProposalItemGroupId#574928, externalProductId#574929, externalPlantId#574930, logisticUnits#574931, orderQuantityBaseUom#574932, orderQuantityBaseUomUuid#574933, minimumOrderQuantity#574934, constraintLabels#574935, constraintOperators#574936, constraintValues#574937, constraintRanks#574938, constraintIsActive#574939, netPriceAmount#574940, netPriceCurrencyCode#574941, netPriceQuantity#574942, netPriceQuantityUom#574943, netPriceQuantityUomUuid#574944, measurements#574945, originalReplenishmentRunId#574946L, optimizationGroups#574947, shardId#574948, sequenceId#574926]
Condition : ((isnotnull(availabilityDateTime#574915) AND isnotnull(nextAvailabilityDateTime#574916)) AND (nextAvailabilityDateTime#574916 > availabilityDateTime#574915))
(8) Project [codegen id : 1]
Output [44]: [orderProposalId#574904L, orderProposalItemId#574905, supplierGroup#574906, supplier#574907, plant#574908, deliveryDateTime#574909, subrange#574910, supplyingPlant#574911, productGroup#574912, product#574913, orderDateTime#574914, availabilityDateTime#574915, nextAvailabilityDateTime#574916, mrpController#574917, sourceOfSupplyUuid#574918, purchasingOrg#574919, purchasingGroup#574920, isFallbackOrderOnly#574921, orderProposalHorizonGroupingId#574922L, splitIndicator#574923L, previousOrderProposal#574924L, clusterId#574925L, sequenceId#574926, worklistShardItemId#574927L, orderProposalItemGroupId#574928, externalProductId#574929, externalPlantId#574930, logisticUnits#574931, orderQuantityBaseUom#574932, orderQuantityBaseUomUuid#574933, minimumOrderQuantity#574934, constraintLabels#574935, constraintOperators#574936, constraintValues#574937, constraintRanks#574938, constraintIsActive#574939, netPriceAmount#574940, netPriceCurrencyCode#574941, netPriceQuantity#574942, netPriceQuantityUom#574943, netPriceQuantityUomUuid#574944, measurements#574945, originalReplenishmentRunId#574946L, optimizationGroups#574947]
Input [45]: [orderProposalId#574904L, orderProposalItemId#574905, supplierGroup#574906, supplier#574907, plant#574908, deliveryDateTime#574909, subrange#574910, supplyingPlant#574911, productGroup#574912, product#574913, orderDateTime#574914, availabilityDateTime#574915, nextAvailabilityDateTime#574916, mrpController#574917, sourceOfSupplyUuid#574918, purchasingOrg#574919, purchasingGroup#574920, isFallbackOrderOnly#574921, orderProposalHorizonGroupingId#574922L, splitIndicator#574923L, previousOrderProposal#574924L, clusterId#574925L, worklistShardItemId#574927L, orderProposalItemGroupId#574928, externalProductId#574929, externalPlantId#574930, logisticUnits#574931, orderQuantityBaseUom#574932, orderQuantityBaseUomUuid#574933, minimumOrderQuantity#574934, constraintLabels#574935, constraintOperators#574936, constraintValues#574937, constraintRanks#574938, constraintIsActive#574939, netPriceAmount#574940, netPriceCurrencyCode#574941, netPriceQuantity#574942, netPriceQuantityUom#574943, netPriceQuantityUomUuid#574944, measurements#574945, originalReplenishmentRunId#574946L, optimizationGroups#574947, shardId#574948, sequenceId#574926]
(9) Exchange
Input [44]: [orderProposalId#574904L, orderProposalItemId#574905, supplierGroup#574906, supplier#574907, plant#574908, deliveryDateTime#574909, subrange#574910, supplyingPlant#574911, productGroup#574912, product#574913, orderDateTime#574914, availabilityDateTime#574915, nextAvailabilityDateTime#574916, mrpController#574917, sourceOfSupplyUuid#574918, purchasingOrg#574919, purchasingGroup#574920, isFallbackOrderOnly#574921, orderProposalHorizonGroupingId#574922L, splitIndicator#574923L, previousOrderProposal#574924L, clusterId#574925L, sequenceId#574926, worklistShardItemId#574927L, orderProposalItemGroupId#574928, externalProductId#574929, externalPlantId#574930, logisticUnits#574931, orderQuantityBaseUom#574932, orderQuantityBaseUomUuid#574933, minimumOrderQuantity#574934, constraintLabels#574935, constraintOperators#574936, constraintValues#574937, constraintRanks#574938, constraintIsActive#574939, netPriceAmount#574940, netPriceCurrencyCode#574941, netPriceQuantity#574942, netPriceQuantityUom#574943, netPriceQuantityUomUuid#574944, measurements#574945, originalReplenishmentRunId#574946L, optimizationGroups#574947]
Arguments: hashpartitioning(worklistShardItemId#574927L, 25), REPARTITION_BY_NUM, [plan_id=245503]
(10) ShuffleQueryStage
Output [44]: [orderProposalId#574904L, orderProposalItemId#574905, supplierGroup#574906, supplier#574907, plant#574908, deliveryDateTime#574909, subrange#574910, supplyingPlant#574911, productGroup#574912, product#574913, orderDateTime#574914, availabilityDateTime#574915, nextAvailabilityDateTime#574916, mrpController#574917, sourceOfSupplyUuid#574918, purchasingOrg#574919, purchasingGroup#574920, isFallbackOrderOnly#574921, orderProposalHorizonGroupingId#574922L, splitIndicator#574923L, previousOrderProposal#574924L, clusterId#574925L, sequenceId#574926, worklistShardItemId#574927L, orderProposalItemGroupId#574928, externalProductId#574929, externalPlantId#574930, logisticUnits#574931, orderQuantityBaseUom#574932, orderQuantityBaseUomUuid#574933, minimumOrderQuantity#574934, constraintLabels#574935, constraintOperators#574936, constraintValues#574937, constraintRanks#574938, constraintIsActive#574939, netPriceAmount#574940, netPriceCurrencyCode#574941, netPriceQuantity#574942, netPriceQuantityUom#574943, netPriceQuantityUomUuid#574944, measurements#574945, originalReplenishmentRunId#574946L, optimizationGroups#574947]
Arguments: 0
(11) Project [codegen id : 2]
Output [45]: [0_1_10000002107 AS shardId#574859, worklistShardItemId#574927L, orderProposalId#574904L, orderProposalItemId#574905, orderProposalItemGroupId#574928, originalReplenishmentRunId#574946L, orderProposalHorizonGroupingId#574922L, splitIndicator#574923L, previousOrderProposal#574924L, clusterId#574925L, cast(sequenceId#574926 as bigint) AS sequenceId#574869L, sourceOfSupplyUuid#574918, supplierGroup#574906, supplier#574907, subrange#574910, product#574913, plant#574908, purchasingOrg#574919, purchasingGroup#574920, mrpController#574917, orderDateTime#574914, deliveryDateTime#574909, availabilityDateTime#574915, nextAvailabilityDateTime#574916, isFallbackOrderOnly#574921, orderQuantityBaseUom#574932, orderQuantityBaseUomUuid#574933, netPriceQuantity#574942, netPriceQuantityUom#574943, netPriceQuantityUomUuid#574944, netPriceAmount#574940, netPriceCurrencyCode#574941, measurements#574945, minimumOrderQuantity#574934, constraintLabels#574935, constraintOperators#574936, constraintRanks#574938, constraintValues#574937, constraintIsActive#574939, logisticUnits#574931, optimizationGroups#574947, externalProductId#574929, externalPlantId#574930, supplyingPlant#574911, productGroup#574912]
Input [44]: [orderProposalId#574904L, orderProposalItemId#574905, supplierGroup#574906, supplier#574907, plant#574908, deliveryDateTime#574909, subrange#574910, supplyingPlant#574911, productGroup#574912, product#574913, orderDateTime#574914, availabilityDateTime#574915, nextAvailabilityDateTime#574916, mrpController#574917, sourceOfSupplyUuid#574918, purchasingOrg#574919, purchasingGroup#574920, isFallbackOrderOnly#574921, orderProposalHorizonGroupingId#574922L, splitIndicator#574923L, previousOrderProposal#574924L, clusterId#574925L, sequenceId#574926, worklistShardItemId#574927L, orderProposalItemGroupId#574928, externalProductId#574929, externalPlantId#574930, logisticUnits#574931, orderQuantityBaseUom#574932, orderQuantityBaseUomUuid#574933, minimumOrderQuantity#574934, constraintLabels#574935, constraintOperators#574936, constraintValues#574937, constraintRanks#574938, constraintIsActive#574939, netPriceAmount#574940, netPriceCurrencyCode#574941, netPriceQuantity#574942, netPriceQuantityUom#574943, netPriceQuantityUomUuid#574944, measurements#574945, originalReplenishmentRunId#574946L, optimizationGroups#574947]
(12) ResultQueryStage
Output [45]: [shardId#574859, worklistShardItemId#574927L, orderProposalId#574904L, orderProposalItemId#574905, orderProposalItemGroupId#574928, originalReplenishmentRunId#574946L, orderProposalHorizonGroupingId#574922L, splitIndicator#574923L, previousOrderProposal#574924L, clusterId#574925L, sequenceId#574869L, sourceOfSupplyUuid#574918, supplierGroup#574906, supplier#574907, subrange#574910, product#574913, plant#574908, purchasingOrg#574919, purchasingGroup#574920, mrpController#574917, orderDateTime#574914, deliveryDateTime#574909, availabilityDateTime#574915, nextAvailabilityDateTime#574916, isFallbackOrderOnly#574921, orderQuantityBaseUom#574932, orderQuantityBaseUomUuid#574933, netPriceQuantity#574942, netPriceQuantityUom#574943, netPriceQuantityUomUuid#574944, netPriceAmount#574940, netPriceCurrencyCode#574941, measurements#574945, minimumOrderQuantity#574934, constraintLabels#574935, constraintOperators#574936, constraintRanks#574938, constraintValues#574937, constraintIsActive#574939, logisticUnits#574931, optimizationGroups#574947, externalProductId#574929, externalPlantId#574930, supplyingPlant#574911, productGroup#574912]
Arguments: 1
(13) Filter
Input [45]: [orderProposalId#574904L, orderProposalItemId#574905, supplierGroup#574906, supplier#574907, plant#574908, deliveryDateTime#574909, subrange#574910, supplyingPlant#574911, productGroup#574912, product#574913, orderDateTime#574914, availabilityDateTime#574915, nextAvailabilityDateTime#574916, mrpController#574917, sourceOfSupplyUuid#574918, purchasingOrg#574919, purchasingGroup#574920, isFallbackOrderOnly#574921, orderProposalHorizonGroupingId#574922L, splitIndicator#574923L, previousOrderProposal#574924L, clusterId#574925L, worklistShardItemId#574927L, orderProposalItemGroupId#574928, externalProductId#574929, externalPlantId#574930, logisticUnits#574931, orderQuantityBaseUom#574932, orderQuantityBaseUomUuid#574933, minimumOrderQuantity#574934, constraintLabels#574935, constraintOperators#574936, constraintValues#574937, constraintRanks#574938, constraintIsActive#574939, netPriceAmount#574940, netPriceCurrencyCode#574941, netPriceQuantity#574942, netPriceQuantityUom#574943, netPriceQuantityUomUuid#574944, measurements#574945, originalReplenishmentRunId#574946L, optimizationGroups#574947, shardId#574948, sequenceId#574926]
Condition : ((isnotnull(availabilityDateTime#574915) AND isnotnull(nextAvailabilityDateTime#574916)) AND (nextAvailabilityDateTime#574916 > availabilityDateTime#574915))
(14) Project
Output [44]: [orderProposalId#574904L, orderProposalItemId#574905, supplierGroup#574906, supplier#574907, plant#574908, deliveryDateTime#574909, subrange#574910, supplyingPlant#574911, productGroup#574912, product#574913, orderDateTime#574914, availabilityDateTime#574915, nextAvailabilityDateTime#574916, mrpController#574917, sourceOfSupplyUuid#574918, purchasingOrg#574919, purchasingGroup#574920, isFallbackOrderOnly#574921, orderProposalHorizonGroupingId#574922L, splitIndicator#574923L, previousOrderProposal#574924L, clusterId#574925L, sequenceId#574926, worklistShardItemId#574927L, orderProposalItemGroupId#574928, externalProductId#574929, externalPlantId#574930, logisticUnits#574931, orderQuantityBaseUom#574932, orderQuantityBaseUomUuid#574933, minimumOrderQuantity#574934, constraintLabels#574935, constraintOperators#574936, constraintValues#574937, constraintRanks#574938, constraintIsActive#574939, netPriceAmount#574940, netPriceCurrencyCode#574941, netPriceQuantity#574942, netPriceQuantityUom#574943, netPriceQuantityUomUuid#574944, measurements#574945, originalReplenishmentRunId#574946L, optimizationGroups#574947]
Input [45]: [orderProposalId#574904L, orderProposalItemId#574905, supplierGroup#574906, supplier#574907, plant#574908, deliveryDateTime#574909, subrange#574910, supplyingPlant#574911, productGroup#574912, product#574913, orderDateTime#574914, availabilityDateTime#574915, nextAvailabilityDateTime#574916, mrpController#574917, sourceOfSupplyUuid#574918, purchasingOrg#574919, purchasingGroup#574920, isFallbackOrderOnly#574921, orderProposalHorizonGroupingId#574922L, splitIndicator#574923L, previousOrderProposal#574924L, clusterId#574925L, worklistShardItemId#574927L, orderProposalItemGroupId#574928, externalProductId#574929, externalPlantId#574930, logisticUnits#574931, orderQuantityBaseUom#574932, orderQuantityBaseUomUuid#574933, minimumOrderQuantity#574934, constraintLabels#574935, constraintOperators#574936, constraintValues#574937, constraintRanks#574938, constraintIsActive#574939, netPriceAmount#574940, netPriceCurrencyCode#574941, netPriceQuantity#574942, netPriceQuantityUom#574943, netPriceQuantityUomUuid#574944, measurements#574945, originalReplenishmentRunId#574946L, optimizationGroups#574947, shardId#574948, sequenceId#574926]
(15) Exchange
Input [44]: [orderProposalId#574904L, orderProposalItemId#574905, supplierGroup#574906, supplier#574907, plant#574908, deliveryDateTime#574909, subrange#574910, supplyingPlant#574911, productGroup#574912, product#574913, orderDateTime#574914, availabilityDateTime#574915, nextAvailabilityDateTime#574916, mrpController#574917, sourceOfSupplyUuid#574918, purchasingOrg#574919, purchasingGroup#574920, isFallbackOrderOnly#574921, orderProposalHorizonGroupingId#574922L, splitIndicator#574923L, previousOrderProposal#574924L, clusterId#574925L, sequenceId#574926, worklistShardItemId#574927L, orderProposalItemGroupId#574928, externalProductId#574929, externalPlantId#574930, logisticUnits#574931, orderQuantityBaseUom#574932, orderQuantityBaseUomUuid#574933, minimumOrderQuantity#574934, constraintLabels#574935, constraintOperators#574936, constraintValues#574937, constraintRanks#574938, constraintIsActive#574939, netPriceAmount#574940, netPriceCurrencyCode#574941, netPriceQuantity#574942, netPriceQuantityUom#574943, netPriceQuantityUomUuid#574944, measurements#574945, originalReplenishmentRunId#574946L, optimizationGroups#574947]
Arguments: hashpartitioning(worklistShardItemId#574927L, 25), REPARTITION_BY_NUM, [plan_id=245475]
(16) Project
Output [45]: [0_1_10000002107 AS shardId#574859, worklistShardItemId#574927L, orderProposalId#574904L, orderProposalItemId#574905, orderProposalItemGroupId#574928, originalReplenishmentRunId#574946L, orderProposalHorizonGroupingId#574922L, splitIndicator#574923L, previousOrderProposal#574924L, clusterId#574925L, cast(sequenceId#574926 as bigint) AS sequenceId#574869L, sourceOfSupplyUuid#574918, supplierGroup#574906, supplier#574907, subrange#574910, product#574913, plant#574908, purchasingOrg#574919, purchasingGroup#574920, mrpController#574917, orderDateTime#574914, deliveryDateTime#574909, availabilityDateTime#574915, nextAvailabilityDateTime#574916, isFallbackOrderOnly#574921, orderQuantityBaseUom#574932, orderQuantityBaseUomUuid#574933, netPriceQuantity#574942, netPriceQuantityUom#574943, netPriceQuantityUomUuid#574944, netPriceAmount#574940, netPriceCurrencyCode#574941, measurements#574945, minimumOrderQuantity#574934, constraintLabels#574935, constraintOperators#574936, constraintRanks#574938, constraintValues#574937, constraintIsActive#574939, logisticUnits#574931, optimizationGroups#574947, externalProductId#574929, externalPlantId#574930, supplyingPlant#574911, productGroup#574912]
Input [44]: [orderProposalId#574904L, orderProposalItemId#574905, supplierGroup#574906, supplier#574907, plant#574908, deliveryDateTime#574909, subrange#574910, supplyingPlant#574911, productGroup#574912, product#574913, orderDateTime#574914, availabilityDateTime#574915, nextAvailabilityDateTime#574916, mrpController#574917, sourceOfSupplyUuid#574918, purchasingOrg#574919, purchasingGroup#574920, isFallbackOrderOnly#574921, orderProposalHorizonGroupingId#574922L, splitIndicator#574923L, previousOrderProposal#574924L, clusterId#574925L, sequenceId#574926, worklistShardItemId#574927L, orderProposalItemGroupId#574928, externalProductId#574929, externalPlantId#574930, logisticUnits#574931, orderQuantityBaseUom#574932, orderQuantityBaseUomUuid#574933, minimumOrderQuantity#574934, constraintLabels#574935, constraintOperators#574936, constraintValues#574937, constraintRanks#574938, constraintIsActive#574939, netPriceAmount#574940, netPriceCurrencyCode#574941, netPriceQuantity#574942, netPriceQuantityUom#574943, netPriceQuantityUomUuid#574944, measurements#574945, originalReplenishmentRunId#574946L, optimizationGroups#574947]
(17) AdaptiveSparkPlan
Output [45]: [shardId#574859, worklistShardItemId#574927L, orderProposalId#574904L, orderProposalItemId#574905, orderProposalItemGroupId#574928, originalReplenishmentRunId#574946L, orderProposalHorizonGroupingId#574922L, splitIndicator#574923L, previousOrderProposal#574924L, clusterId#574925L, sequenceId#574869L, sourceOfSupplyUuid#574918, supplierGroup#574906, supplier#574907, subrange#574910, product#574913, plant#574908, purchasingOrg#574919, purchasingGroup#574920, mrpController#574917, orderDateTime#574914, deliveryDateTime#574909, availabilityDateTime#574915, nextAvailabilityDateTime#574916, isFallbackOrderOnly#574921, orderQuantityBaseUom#574932, orderQuantityBaseUomUuid#574933, netPriceQuantity#574942, netPriceQuantityUom#574943, netPriceQuantityUomUuid#574944, netPriceAmount#574940, netPriceCurrencyCode#574941, measurements#574945, minimumOrderQuantity#574934, constraintLabels#574935, constraintOperators#574936, constraintRanks#574938, constraintValues#574937, constraintIsActive#574939, logisticUnits#574931, optimizationGroups#574947, externalProductId#574929, externalPlantId#574930, supplyingPlant#574911, productGroup#574912]
Arguments: isFinalPlan=true
(18) TableCacheQueryStage
Output [3]: [shardId#574859, worklistShardItemId#574860L, orderProposalId#574861L]
Arguments: 0
(19) Filter [codegen id : 1]
Input [3]: [shardId#574859, worklistShardItemId#574860L, orderProposalId#574861L]
Condition : (isnotnull(shardId#574859) AND isnotnull(orderProposalId#574861L))
(20) ObjectHashAggregate
Input [3]: [shardId#574859, worklistShardItemId#574860L, orderProposalId#574861L]
Keys [2]: [shardId#574859, orderProposalId#574861L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#574860L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#581608]
Results [3]: [shardId#574859, orderProposalId#574861L, buf#581609]
(21) Exchange
Input [3]: [shardId#574859, orderProposalId#574861L, buf#581609]
Arguments: hashpartitioning(shardId#574859, orderProposalId#574861L, 25), ENSURE_REQUIREMENTS, [plan_id=245869]
(22) ShuffleQueryStage [codegen id : 3]
Output [3]: [shardId#574859, orderProposalId#574861L, buf#581609]
Arguments: 2
(23) AQEShuffleRead [codegen id : 3]
Input [3]: [shardId#574859, orderProposalId#574861L, buf#581609]
Arguments: coalesced
(24) ObjectHashAggregate [codegen id : 3]
Input [3]: [shardId#574859, orderProposalId#574861L, buf#581609]
Keys [2]: [shardId#574859, orderProposalId#574861L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#574860L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#574860L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#580104]
Results [7]: [shardId#574859, orderProposalId#574861L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#574860L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#580104, lambdafunction(struct(worklistShardItemId, lambda x_1455#580125.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_1455#580125.quantityAfterProdPlantOptimization, qty, lambda x_1455#580125.optimalQuantity), lambda x_1455#580125, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#580126, [] AS optimizationGroups#580120, false AS isOptimal#580105, 2026-08-10 09:27:33.09147 AS lastModified#580124, [] AS optimizationInsights#580121]
(25) Union
(26) Exchange
Input [7]: [shardId#580113, orderProposalId#580114L, items#580115, optimizationGroups#580116, isOptimal#580117, lastModified#580118, optimizationInsights#580119]
Arguments: hashpartitioning(shardId#580113, orderProposalId#580114L, lastModified#580118, 25), ENSURE_REQUIREMENTS, [plan_id=245989]
(27) ShuffleQueryStage
Output [7]: [shardId#580113, orderProposalId#580114L, items#580115, optimizationGroups#580116, isOptimal#580117, lastModified#580118, optimizationInsights#580119]
Arguments: 4
(28) AQEShuffleRead
Input [7]: [shardId#580113, orderProposalId#580114L, items#580115, optimizationGroups#580116, isOptimal#580117, lastModified#580118, optimizationInsights#580119]
Arguments: local
(29) BroadcastExchange
Input [7]: [shardId#580113, orderProposalId#580114L, items#580115, optimizationGroups#580116, isOptimal#580117, lastModified#580118, optimizationInsights#580119]
Arguments: HashedRelationBroadcastMode(List(input[0, string, true], input[1, bigint, true], input[5, timestamp, false]),false), [plan_id=246115]
(30) BroadcastQueryStage
Output [7]: [shardId#580113, orderProposalId#580114L, items#580115, optimizationGroups#580116, isOptimal#580117, lastModified#580118, optimizationInsights#580119]
Arguments: 6
(31) Scan ExistingRDD [codegen id : 4]
Output [7]: [shardId#580136, orderProposalId#580137L, items#580138, optimizationGroups#580139, isOptimal#580140, lastModified#580141, optimizationInsights#580142]
Arguments: [shardId#580136, orderProposalId#580137L, items#580138, optimizationGroups#580139, isOptimal#580140, lastModified#580141, optimizationInsights#580142], MapPartitionsRDD[27796] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(32) Filter [codegen id : 4]
Input [7]: [shardId#580136, orderProposalId#580137L, items#580138, optimizationGroups#580139, isOptimal#580140, lastModified#580141, optimizationInsights#580142]
Condition : (isnotnull(shardId#580136) AND isnotnull(orderProposalId#580137L))
(33) Project [codegen id : 4]
Output [3]: [shardId#580136, orderProposalId#580137L, lastModified#580141]
Input [7]: [shardId#580136, orderProposalId#580137L, items#580138, optimizationGroups#580139, isOptimal#580140, lastModified#580141, optimizationInsights#580142]
(34) InMemoryTableScan
Output [2]: [shardId#580143, orderProposalId#580145L]
Arguments: [shardId#580143, orderProposalId#580145L], [isnotnull(shardId#580143), isnotnull(orderProposalId#580145L)]
(35) InMemoryRelation
Arguments: [shardId#580143, worklistShardItemId#580144L, orderProposalId#580145L, orderProposalItemId#580146, orderProposalItemGroupId#580147, originalReplenishmentRunId#580148L, orderProposalHorizonGroupingId#580149L, splitIndicator#580150L, previousOrderProposal#580151L, clusterId#580152L, sequenceId#580153L, sourceOfSupplyUuid#580154, supplierGroup#580155, supplier#580156, subrange#580157, product#580158, plant#580159, purchasingOrg#580160, purchasingGroup#580161, mrpController#580162, orderDateTime#580163, deliveryDateTime#580164, availabilityDateTime#580165, nextAvailabilityDateTime#580166, isFallbackOrderOnly#580167, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(36) TableCacheQueryStage
Output [2]: [shardId#580143, orderProposalId#580145L]
Arguments: 1
(37) Filter [codegen id : 2]
Input [2]: [shardId#580143, orderProposalId#580145L]
Condition : (isnotnull(shardId#580143) AND isnotnull(orderProposalId#580145L))
(38) HashAggregate [codegen id : 2]
Input [2]: [shardId#580143, orderProposalId#580145L]
Keys [2]: [shardId#580143, orderProposalId#580145L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#580143, orderProposalId#580145L]
(39) Exchange
Input [2]: [shardId#580143, orderProposalId#580145L]
Arguments: hashpartitioning(shardId#580143, orderProposalId#580145L, 25), ENSURE_REQUIREMENTS, [plan_id=245905]
(40) ShuffleQueryStage
Output [2]: [shardId#580143, orderProposalId#580145L]
Arguments: 3
(41) AQEShuffleRead
Input [2]: [shardId#580143, orderProposalId#580145L]
Arguments: coalesced
(42) HashAggregate [codegen id : 5]
Input [2]: [shardId#580143, orderProposalId#580145L]
Keys [2]: [shardId#580143, orderProposalId#580145L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#580143, orderProposalId#580145L, 2026-08-10 09:27:33.09147 AS lastModified#580240]
(43) Union
(44) HashAggregate [codegen id : 6]
Input [3]: [shardId#580136, orderProposalId#580137L, lastModified#580141]
Keys [2]: [shardId#580136, orderProposalId#580137L]
Functions [1]: [partial_max(lastModified#580141)]
Aggregate Attributes [1]: [max#581610]
Results [3]: [shardId#580136, orderProposalId#580137L, max#581611]
(45) Exchange
Input [3]: [shardId#580136, orderProposalId#580137L, max#581611]
Arguments: hashpartitioning(shardId#580136, orderProposalId#580137L, 25), ENSURE_REQUIREMENTS, [plan_id=246071]
(46) ShuffleQueryStage
Output [3]: [shardId#580136, orderProposalId#580137L, max#581611]
Arguments: 5
(47) AQEShuffleRead
Input [3]: [shardId#580136, orderProposalId#580137L, max#581611]
Arguments: coalesced
(48) HashAggregate
Input [3]: [shardId#580136, orderProposalId#580137L, max#581611]
Keys [2]: [shardId#580136, orderProposalId#580137L]
Functions [1]: [max(lastModified#580141)]
Aggregate Attributes [1]: [max(lastModified#580141)#580135]
Results [3]: [shardId#580136, orderProposalId#580137L, max(lastModified#580141)#580135 AS lastModified#580127]
(49) Filter
Input [3]: [shardId#580136, orderProposalId#580137L, lastModified#580127]
Condition : isnotnull(lastModified#580127)
(50) BroadcastHashJoin [codegen id : 7]
Left keys [3]: [shardId#580113, orderProposalId#580114L, lastModified#580118]
Right keys [3]: [shardId#580136, orderProposalId#580137L, lastModified#580127]
Join type: Inner
Join condition: None
(51) Project [codegen id : 7]
Output [7]: [shardId#580113, orderProposalId#580114L, items#580115, optimizationGroups#580116, isOptimal#580117, lastModified#580118, optimizationInsights#580119]
Input [10]: [shardId#580113, orderProposalId#580114L, items#580115, optimizationGroups#580116, isOptimal#580117, lastModified#580118, optimizationInsights#580119, shardId#580136, orderProposalId#580137L, lastModified#580127]
(52) DeserializeToObject
Input [7]: [shardId#580113, orderProposalId#580114L, items#580115, optimizationGroups#580116, isOptimal#580117, lastModified#580118, optimizationInsights#580119]
Arguments: createexternalrow(invoke(shardId#580113.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#580114L)), 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#580115, 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#580116, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#580117)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#580118)), 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#580119, 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#580257: org.apache.spark.sql.Row
(53) ResultQueryStage
Output [1]: [obj#580257]
Arguments: 7
(54) Filter
Input [3]: [shardId#574859, worklistShardItemId#574860L, orderProposalId#574861L]
Condition : (isnotnull(shardId#574859) AND isnotnull(orderProposalId#574861L))
(55) ObjectHashAggregate
Input [3]: [shardId#574859, worklistShardItemId#574860L, orderProposalId#574861L]
Keys [2]: [shardId#574859, orderProposalId#574861L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#574860L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#581608]
Results [3]: [shardId#574859, orderProposalId#574861L, buf#581609]
(56) Exchange
Input [3]: [shardId#574859, orderProposalId#574861L, buf#581609]
Arguments: hashpartitioning(shardId#574859, orderProposalId#574861L, 25), ENSURE_REQUIREMENTS, [plan_id=245698]
(57) ObjectHashAggregate
Input [3]: [shardId#574859, orderProposalId#574861L, buf#581609]
Keys [2]: [shardId#574859, orderProposalId#574861L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#574860L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#574860L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#580104]
Results [7]: [shardId#574859, orderProposalId#574861L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#574860L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#580104, lambdafunction(struct(worklistShardItemId, lambda x_1455#580125.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_1455#580125.quantityAfterProdPlantOptimization, qty, lambda x_1455#580125.optimalQuantity), lambda x_1455#580125, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#580126, [] AS optimizationGroups#580120, false AS isOptimal#580105, 2026-08-10 09:27:33.09147 AS lastModified#580124, [] AS optimizationInsights#580121]
(58) Union
(59) Exchange
Input [7]: [shardId#580113, orderProposalId#580114L, items#580115, optimizationGroups#580116, isOptimal#580117, lastModified#580118, optimizationInsights#580119]
Arguments: hashpartitioning(shardId#580113, orderProposalId#580114L, lastModified#580118, 25), ENSURE_REQUIREMENTS, [plan_id=245711]
(60) Sort
Input [7]: [shardId#580113, orderProposalId#580114L, items#580115, optimizationGroups#580116, isOptimal#580117, lastModified#580118, optimizationInsights#580119]
Arguments: [shardId#580113 ASC NULLS FIRST, orderProposalId#580114L ASC NULLS FIRST, lastModified#580118 ASC NULLS FIRST], false, 0
(61) Filter
Input [2]: [shardId#580143, orderProposalId#580145L]
Condition : (isnotnull(shardId#580143) AND isnotnull(orderProposalId#580145L))
(62) HashAggregate
Input [2]: [shardId#580143, orderProposalId#580145L]
Keys [2]: [shardId#580143, orderProposalId#580145L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#580143, orderProposalId#580145L]
(63) Exchange
Input [2]: [shardId#580143, orderProposalId#580145L]
Arguments: hashpartitioning(shardId#580143, orderProposalId#580145L, 25), ENSURE_REQUIREMENTS, [plan_id=245701]
(64) HashAggregate
Input [2]: [shardId#580143, orderProposalId#580145L]
Keys [2]: [shardId#580143, orderProposalId#580145L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#580143, orderProposalId#580145L, 2026-08-10 09:27:33.09147 AS lastModified#580240]
(65) Union
(66) HashAggregate
Input [3]: [shardId#580136, orderProposalId#580137L, lastModified#580141]
Keys [2]: [shardId#580136, orderProposalId#580137L]
Functions [1]: [partial_max(lastModified#580141)]
Aggregate Attributes [1]: [max#581610]
Results [3]: [shardId#580136, orderProposalId#580137L, max#581611]
(67) Exchange
Input [3]: [shardId#580136, orderProposalId#580137L, max#581611]
Arguments: hashpartitioning(shardId#580136, orderProposalId#580137L, 25), ENSURE_REQUIREMENTS, [plan_id=245706]
(68) HashAggregate
Input [3]: [shardId#580136, orderProposalId#580137L, max#581611]
Keys [2]: [shardId#580136, orderProposalId#580137L]
Functions [1]: [max(lastModified#580141)]
Aggregate Attributes [1]: [max(lastModified#580141)#580135]
Results [3]: [shardId#580136, orderProposalId#580137L, max(lastModified#580141)#580135 AS lastModified#580127]
(69) Filter
Input [3]: [shardId#580136, orderProposalId#580137L, lastModified#580127]
Condition : isnotnull(lastModified#580127)
(70) Exchange
Input [3]: [shardId#580136, orderProposalId#580137L, lastModified#580127]
Arguments: hashpartitioning(shardId#580136, orderProposalId#580137L, lastModified#580127, 25), ENSURE_REQUIREMENTS, [plan_id=245712]
(71) Sort
Input [3]: [shardId#580136, orderProposalId#580137L, lastModified#580127]
Arguments: [shardId#580136 ASC NULLS FIRST, orderProposalId#580137L ASC NULLS FIRST, lastModified#580127 ASC NULLS FIRST], false, 0
(72) SortMergeJoin
Left keys [3]: [shardId#580113, orderProposalId#580114L, lastModified#580118]
Right keys [3]: [shardId#580136, orderProposalId#580137L, lastModified#580127]
Join type: Inner
Join condition: None
(73) Project
Output [7]: [shardId#580113, orderProposalId#580114L, items#580115, optimizationGroups#580116, isOptimal#580117, lastModified#580118, optimizationInsights#580119]
Input [10]: [shardId#580113, orderProposalId#580114L, items#580115, optimizationGroups#580116, isOptimal#580117, lastModified#580118, optimizationInsights#580119, shardId#580136, orderProposalId#580137L, lastModified#580127]
(74) DeserializeToObject
Input [7]: [shardId#580113, orderProposalId#580114L, items#580115, optimizationGroups#580116, isOptimal#580117, lastModified#580118, optimizationInsights#580119]
Arguments: createexternalrow(invoke(shardId#580113.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#580114L)), 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#580115, 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#580116, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#580117)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#580118)), 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#580119, 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#580257: org.apache.spark.sql.Row
(75) AdaptiveSparkPlan
Output [1]: [obj#580257]
Arguments: isFinalPlan=true