== Physical Plan ==
AdaptiveSparkPlan (75)
+- == Final Plan ==
ResultQueryStage (53), Statistics(sizeInBytes=8.0 EiB)
+- DeserializeToObject (52)
+- * Project (51)
+- * BroadcastHashJoin Inner BuildLeft (50)
:- BroadcastQueryStage (30), Statistics(sizeInBytes=2.0 MiB, rowCount=59)
: +- BroadcastExchange (29)
: +- AQEShuffleRead (28)
: +- ShuffleQueryStage (27), Statistics(sizeInBytes=44.7 KiB, rowCount=59)
: +- Exchange (26)
: +- Union (25)
: :- * Filter (2)
: : +- * Scan ExistingRDD (1)
: +- ObjectHashAggregate (24)
: +- AQEShuffleRead (23)
: +- ShuffleQueryStage (22), Statistics(sizeInBytes=84.0 KiB, rowCount=585)
: +- Exchange (21)
: +- ObjectHashAggregate (20)
: +- * Filter (19)
: +- TableCacheQueryStage (18), Statistics(sizeInBytes=1311.9 KiB, rowCount=980)
: +- InMemoryTableScan (3)
: +- InMemoryRelation (4)
: +- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=1456.9 KiB, rowCount=980)
+- Exchange (9)
+- * Project (8)
+- * Filter (7)
+- * ColumnarToRow (6)
+- Scan parquet (5)
+- == Initial Plan ==
Project (16)
+- Exchange (15)
+- Project (14)
+- Filter (13)
+- Scan parquet (5)
+- * Filter (49)
+- * HashAggregate (48)
+- AQEShuffleRead (47)
+- ShuffleQueryStage (46), Statistics(sizeInBytes=2.8 KiB, rowCount=59)
+- Exchange (45)
+- * HashAggregate (44)
+- Union (43)
:- * Project (33)
: +- * Filter (32)
: +- * Scan ExistingRDD (31)
+- * HashAggregate (42)
+- AQEShuffleRead (41)
+- ShuffleQueryStage (40), Statistics(sizeInBytes=22.9 KiB, rowCount=585)
+- Exchange (39)
+- * HashAggregate (38)
+- * Filter (37)
+- TableCacheQueryStage (36), Statistics(sizeInBytes=1311.9 KiB, rowCount=980)
+- InMemoryTableScan (34)
+- InMemoryRelation (35)
+- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=1456.9 KiB, rowCount=980)
+- Exchange (9)
+- * Project (8)
+- * Filter (7)
+- * ColumnarToRow (6)
+- Scan parquet (5)
+- == Initial Plan ==
Project (16)
+- Exchange (15)
+- Project (14)
+- Filter (13)
+- Scan parquet (5)
+- == Initial Plan ==
DeserializeToObject (74)
+- Project (73)
+- SortMergeJoin Inner (72)
:- Sort (60)
: +- Exchange (59)
: +- Union (58)
: :- Filter (2)
: : +- Scan ExistingRDD (1)
: +- ObjectHashAggregate (57)
: +- Exchange (56)
: +- ObjectHashAggregate (55)
: +- Filter (54)
: +- InMemoryTableScan (3)
: +- InMemoryRelation (4)
: +- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=1456.9 KiB, rowCount=980)
+- Exchange (9)
+- * Project (8)
+- * Filter (7)
+- * ColumnarToRow (6)
+- Scan parquet (5)
+- == Initial Plan ==
Project (16)
+- Exchange (15)
+- Project (14)
+- Filter (13)
+- Scan parquet (5)
+- Sort (71)
+- Exchange (70)
+- Filter (69)
+- HashAggregate (68)
+- Exchange (67)
+- HashAggregate (66)
+- Union (65)
:- Project (33)
: +- Filter (32)
: +- Scan ExistingRDD (31)
+- HashAggregate (64)
+- Exchange (63)
+- HashAggregate (62)
+- Filter (61)
+- InMemoryTableScan (34)
+- InMemoryRelation (35)
+- AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (12)
+- * Project (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=1456.9 KiB, rowCount=980)
+- Exchange (9)
+- * Project (8)
+- * Filter (7)
+- * ColumnarToRow (6)
+- Scan parquet (5)
+- == Initial Plan ==
Project (16)
+- Exchange (15)
+- Project (14)
+- Filter (13)
+- Scan parquet (5)
(1) Scan ExistingRDD [codegen id : 3]
Output [7]: [shardId#745672, orderProposalId#745673L, items#745674, optimizationGroups#745675, isOptimal#745676, lastModified#745677, optimizationInsights#745678]
Arguments: [shardId#745672, orderProposalId#745673L, items#745674, optimizationGroups#745675, isOptimal#745676, lastModified#745677, optimizationInsights#745678], MapPartitionsRDD[34897] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(2) Filter [codegen id : 3]
Input [7]: [shardId#745672, orderProposalId#745673L, items#745674, optimizationGroups#745675, isOptimal#745676, lastModified#745677, optimizationInsights#745678]
Condition : ((isnotnull(shardId#745672) AND isnotnull(orderProposalId#745673L)) AND isnotnull(lastModified#745677))
(3) InMemoryTableScan
Output [3]: [shardId#740250, worklistShardItemId#740251L, orderProposalId#740252L]
Arguments: [shardId#740250, worklistShardItemId#740251L, orderProposalId#740252L], [isnotnull(shardId#740250), isnotnull(orderProposalId#740252L)]
(4) InMemoryRelation
Arguments: [shardId#740250, worklistShardItemId#740251L, orderProposalId#740252L, orderProposalItemId#740253, orderProposalItemGroupId#740254, originalReplenishmentRunId#740255L, orderProposalHorizonGroupingId#740256L, splitIndicator#740257L, previousOrderProposal#740258L, clusterId#740259L, sequenceId#740260L, sourceOfSupplyUuid#740261, supplierGroup#740262, supplier#740263, subrange#740264, product#740265, plant#740266, purchasingOrg#740267, purchasingGroup#740268, mrpController#740269, orderDateTime#740270, deliveryDateTime#740271, availabilityDateTime#740272, nextAvailabilityDateTime#740273, isFallbackOrderOnly#740274, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(5) Scan parquet
Output [45]: [orderProposalId#740295L, orderProposalItemId#740296, supplierGroup#740297, supplier#740298, plant#740299, deliveryDateTime#740300, subrange#740301, supplyingPlant#740302, productGroup#740303, product#740304, orderDateTime#740305, availabilityDateTime#740306, nextAvailabilityDateTime#740307, mrpController#740308, sourceOfSupplyUuid#740309, purchasingOrg#740310, purchasingGroup#740311, isFallbackOrderOnly#740312, orderProposalHorizonGroupingId#740313L, splitIndicator#740314L, previousOrderProposal#740315L, clusterId#740316L, worklistShardItemId#740318L, orderProposalItemGroupId#740319, externalProductId#740320, externalPlantId#740321, logisticUnits#740322, orderQuantityBaseUom#740323, orderQuantityBaseUomUuid#740324, minimumOrderQuantity#740325, constraintLabels#740326, constraintOperators#740327, constraintValues#740328, constraintRanks#740329, constraintIsActive#740330, netPriceAmount#740331, netPriceCurrencyCode#740332, netPriceQuantity#740333, netPriceQuantityUom#740334, netPriceQuantityUomUuid#740335, measurements#740336, originalReplenishmentRunId#740337L, optimizationGroups#740338, shardId#740339, sequenceId#740317]
Batched: true
Location: PreparedDeltaFileIndex [hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20.hanacloud.ondemand.com:443/crp-order-qty-opt-service/internal/prod-plant-snapshot/10000002108]
PartitionFilters: [isnotnull(shardId#740339), isnotnull(sequenceId#740317), (shardId#740339 = 0_1_10000002108), (sequenceId#740317 = 0)]
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#740295L, orderProposalItemId#740296, supplierGroup#740297, supplier#740298, plant#740299, deliveryDateTime#740300, subrange#740301, supplyingPlant#740302, productGroup#740303, product#740304, orderDateTime#740305, availabilityDateTime#740306, nextAvailabilityDateTime#740307, mrpController#740308, sourceOfSupplyUuid#740309, purchasingOrg#740310, purchasingGroup#740311, isFallbackOrderOnly#740312, orderProposalHorizonGroupingId#740313L, splitIndicator#740314L, previousOrderProposal#740315L, clusterId#740316L, worklistShardItemId#740318L, orderProposalItemGroupId#740319, externalProductId#740320, externalPlantId#740321, logisticUnits#740322, orderQuantityBaseUom#740323, orderQuantityBaseUomUuid#740324, minimumOrderQuantity#740325, constraintLabels#740326, constraintOperators#740327, constraintValues#740328, constraintRanks#740329, constraintIsActive#740330, netPriceAmount#740331, netPriceCurrencyCode#740332, netPriceQuantity#740333, netPriceQuantityUom#740334, netPriceQuantityUomUuid#740335, measurements#740336, originalReplenishmentRunId#740337L, optimizationGroups#740338, shardId#740339, sequenceId#740317]
(7) Filter [codegen id : 1]
Input [45]: [orderProposalId#740295L, orderProposalItemId#740296, supplierGroup#740297, supplier#740298, plant#740299, deliveryDateTime#740300, subrange#740301, supplyingPlant#740302, productGroup#740303, product#740304, orderDateTime#740305, availabilityDateTime#740306, nextAvailabilityDateTime#740307, mrpController#740308, sourceOfSupplyUuid#740309, purchasingOrg#740310, purchasingGroup#740311, isFallbackOrderOnly#740312, orderProposalHorizonGroupingId#740313L, splitIndicator#740314L, previousOrderProposal#740315L, clusterId#740316L, worklistShardItemId#740318L, orderProposalItemGroupId#740319, externalProductId#740320, externalPlantId#740321, logisticUnits#740322, orderQuantityBaseUom#740323, orderQuantityBaseUomUuid#740324, minimumOrderQuantity#740325, constraintLabels#740326, constraintOperators#740327, constraintValues#740328, constraintRanks#740329, constraintIsActive#740330, netPriceAmount#740331, netPriceCurrencyCode#740332, netPriceQuantity#740333, netPriceQuantityUom#740334, netPriceQuantityUomUuid#740335, measurements#740336, originalReplenishmentRunId#740337L, optimizationGroups#740338, shardId#740339, sequenceId#740317]
Condition : ((isnotnull(availabilityDateTime#740306) AND isnotnull(nextAvailabilityDateTime#740307)) AND (nextAvailabilityDateTime#740307 > availabilityDateTime#740306))
(8) Project [codegen id : 1]
Output [44]: [orderProposalId#740295L, orderProposalItemId#740296, supplierGroup#740297, supplier#740298, plant#740299, deliveryDateTime#740300, subrange#740301, supplyingPlant#740302, productGroup#740303, product#740304, orderDateTime#740305, availabilityDateTime#740306, nextAvailabilityDateTime#740307, mrpController#740308, sourceOfSupplyUuid#740309, purchasingOrg#740310, purchasingGroup#740311, isFallbackOrderOnly#740312, orderProposalHorizonGroupingId#740313L, splitIndicator#740314L, previousOrderProposal#740315L, clusterId#740316L, sequenceId#740317, worklistShardItemId#740318L, orderProposalItemGroupId#740319, externalProductId#740320, externalPlantId#740321, logisticUnits#740322, orderQuantityBaseUom#740323, orderQuantityBaseUomUuid#740324, minimumOrderQuantity#740325, constraintLabels#740326, constraintOperators#740327, constraintValues#740328, constraintRanks#740329, constraintIsActive#740330, netPriceAmount#740331, netPriceCurrencyCode#740332, netPriceQuantity#740333, netPriceQuantityUom#740334, netPriceQuantityUomUuid#740335, measurements#740336, originalReplenishmentRunId#740337L, optimizationGroups#740338]
Input [45]: [orderProposalId#740295L, orderProposalItemId#740296, supplierGroup#740297, supplier#740298, plant#740299, deliveryDateTime#740300, subrange#740301, supplyingPlant#740302, productGroup#740303, product#740304, orderDateTime#740305, availabilityDateTime#740306, nextAvailabilityDateTime#740307, mrpController#740308, sourceOfSupplyUuid#740309, purchasingOrg#740310, purchasingGroup#740311, isFallbackOrderOnly#740312, orderProposalHorizonGroupingId#740313L, splitIndicator#740314L, previousOrderProposal#740315L, clusterId#740316L, worklistShardItemId#740318L, orderProposalItemGroupId#740319, externalProductId#740320, externalPlantId#740321, logisticUnits#740322, orderQuantityBaseUom#740323, orderQuantityBaseUomUuid#740324, minimumOrderQuantity#740325, constraintLabels#740326, constraintOperators#740327, constraintValues#740328, constraintRanks#740329, constraintIsActive#740330, netPriceAmount#740331, netPriceCurrencyCode#740332, netPriceQuantity#740333, netPriceQuantityUom#740334, netPriceQuantityUomUuid#740335, measurements#740336, originalReplenishmentRunId#740337L, optimizationGroups#740338, shardId#740339, sequenceId#740317]
(9) Exchange
Input [44]: [orderProposalId#740295L, orderProposalItemId#740296, supplierGroup#740297, supplier#740298, plant#740299, deliveryDateTime#740300, subrange#740301, supplyingPlant#740302, productGroup#740303, product#740304, orderDateTime#740305, availabilityDateTime#740306, nextAvailabilityDateTime#740307, mrpController#740308, sourceOfSupplyUuid#740309, purchasingOrg#740310, purchasingGroup#740311, isFallbackOrderOnly#740312, orderProposalHorizonGroupingId#740313L, splitIndicator#740314L, previousOrderProposal#740315L, clusterId#740316L, sequenceId#740317, worklistShardItemId#740318L, orderProposalItemGroupId#740319, externalProductId#740320, externalPlantId#740321, logisticUnits#740322, orderQuantityBaseUom#740323, orderQuantityBaseUomUuid#740324, minimumOrderQuantity#740325, constraintLabels#740326, constraintOperators#740327, constraintValues#740328, constraintRanks#740329, constraintIsActive#740330, netPriceAmount#740331, netPriceCurrencyCode#740332, netPriceQuantity#740333, netPriceQuantityUom#740334, netPriceQuantityUomUuid#740335, measurements#740336, originalReplenishmentRunId#740337L, optimizationGroups#740338]
Arguments: hashpartitioning(worklistShardItemId#740318L, 25), REPARTITION_BY_NUM, [plan_id=297050]
(10) ShuffleQueryStage
Output [44]: [orderProposalId#740295L, orderProposalItemId#740296, supplierGroup#740297, supplier#740298, plant#740299, deliveryDateTime#740300, subrange#740301, supplyingPlant#740302, productGroup#740303, product#740304, orderDateTime#740305, availabilityDateTime#740306, nextAvailabilityDateTime#740307, mrpController#740308, sourceOfSupplyUuid#740309, purchasingOrg#740310, purchasingGroup#740311, isFallbackOrderOnly#740312, orderProposalHorizonGroupingId#740313L, splitIndicator#740314L, previousOrderProposal#740315L, clusterId#740316L, sequenceId#740317, worklistShardItemId#740318L, orderProposalItemGroupId#740319, externalProductId#740320, externalPlantId#740321, logisticUnits#740322, orderQuantityBaseUom#740323, orderQuantityBaseUomUuid#740324, minimumOrderQuantity#740325, constraintLabels#740326, constraintOperators#740327, constraintValues#740328, constraintRanks#740329, constraintIsActive#740330, netPriceAmount#740331, netPriceCurrencyCode#740332, netPriceQuantity#740333, netPriceQuantityUom#740334, netPriceQuantityUomUuid#740335, measurements#740336, originalReplenishmentRunId#740337L, optimizationGroups#740338]
Arguments: 0
(11) Project [codegen id : 2]
Output [45]: [0_1_10000002108 AS shardId#740250, worklistShardItemId#740318L, orderProposalId#740295L, orderProposalItemId#740296, orderProposalItemGroupId#740319, originalReplenishmentRunId#740337L, orderProposalHorizonGroupingId#740313L, splitIndicator#740314L, previousOrderProposal#740315L, clusterId#740316L, cast(sequenceId#740317 as bigint) AS sequenceId#740260L, sourceOfSupplyUuid#740309, supplierGroup#740297, supplier#740298, subrange#740301, product#740304, plant#740299, purchasingOrg#740310, purchasingGroup#740311, mrpController#740308, orderDateTime#740305, deliveryDateTime#740300, availabilityDateTime#740306, nextAvailabilityDateTime#740307, isFallbackOrderOnly#740312, orderQuantityBaseUom#740323, orderQuantityBaseUomUuid#740324, netPriceQuantity#740333, netPriceQuantityUom#740334, netPriceQuantityUomUuid#740335, netPriceAmount#740331, netPriceCurrencyCode#740332, measurements#740336, minimumOrderQuantity#740325, constraintLabels#740326, constraintOperators#740327, constraintRanks#740329, constraintValues#740328, constraintIsActive#740330, logisticUnits#740322, optimizationGroups#740338, externalProductId#740320, externalPlantId#740321, supplyingPlant#740302, productGroup#740303]
Input [44]: [orderProposalId#740295L, orderProposalItemId#740296, supplierGroup#740297, supplier#740298, plant#740299, deliveryDateTime#740300, subrange#740301, supplyingPlant#740302, productGroup#740303, product#740304, orderDateTime#740305, availabilityDateTime#740306, nextAvailabilityDateTime#740307, mrpController#740308, sourceOfSupplyUuid#740309, purchasingOrg#740310, purchasingGroup#740311, isFallbackOrderOnly#740312, orderProposalHorizonGroupingId#740313L, splitIndicator#740314L, previousOrderProposal#740315L, clusterId#740316L, sequenceId#740317, worklistShardItemId#740318L, orderProposalItemGroupId#740319, externalProductId#740320, externalPlantId#740321, logisticUnits#740322, orderQuantityBaseUom#740323, orderQuantityBaseUomUuid#740324, minimumOrderQuantity#740325, constraintLabels#740326, constraintOperators#740327, constraintValues#740328, constraintRanks#740329, constraintIsActive#740330, netPriceAmount#740331, netPriceCurrencyCode#740332, netPriceQuantity#740333, netPriceQuantityUom#740334, netPriceQuantityUomUuid#740335, measurements#740336, originalReplenishmentRunId#740337L, optimizationGroups#740338]
(12) ResultQueryStage
Output [45]: [shardId#740250, worklistShardItemId#740318L, orderProposalId#740295L, orderProposalItemId#740296, orderProposalItemGroupId#740319, originalReplenishmentRunId#740337L, orderProposalHorizonGroupingId#740313L, splitIndicator#740314L, previousOrderProposal#740315L, clusterId#740316L, sequenceId#740260L, sourceOfSupplyUuid#740309, supplierGroup#740297, supplier#740298, subrange#740301, product#740304, plant#740299, purchasingOrg#740310, purchasingGroup#740311, mrpController#740308, orderDateTime#740305, deliveryDateTime#740300, availabilityDateTime#740306, nextAvailabilityDateTime#740307, isFallbackOrderOnly#740312, orderQuantityBaseUom#740323, orderQuantityBaseUomUuid#740324, netPriceQuantity#740333, netPriceQuantityUom#740334, netPriceQuantityUomUuid#740335, netPriceAmount#740331, netPriceCurrencyCode#740332, measurements#740336, minimumOrderQuantity#740325, constraintLabels#740326, constraintOperators#740327, constraintRanks#740329, constraintValues#740328, constraintIsActive#740330, logisticUnits#740322, optimizationGroups#740338, externalProductId#740320, externalPlantId#740321, supplyingPlant#740302, productGroup#740303]
Arguments: 1
(13) Filter
Input [45]: [orderProposalId#740295L, orderProposalItemId#740296, supplierGroup#740297, supplier#740298, plant#740299, deliveryDateTime#740300, subrange#740301, supplyingPlant#740302, productGroup#740303, product#740304, orderDateTime#740305, availabilityDateTime#740306, nextAvailabilityDateTime#740307, mrpController#740308, sourceOfSupplyUuid#740309, purchasingOrg#740310, purchasingGroup#740311, isFallbackOrderOnly#740312, orderProposalHorizonGroupingId#740313L, splitIndicator#740314L, previousOrderProposal#740315L, clusterId#740316L, worklistShardItemId#740318L, orderProposalItemGroupId#740319, externalProductId#740320, externalPlantId#740321, logisticUnits#740322, orderQuantityBaseUom#740323, orderQuantityBaseUomUuid#740324, minimumOrderQuantity#740325, constraintLabels#740326, constraintOperators#740327, constraintValues#740328, constraintRanks#740329, constraintIsActive#740330, netPriceAmount#740331, netPriceCurrencyCode#740332, netPriceQuantity#740333, netPriceQuantityUom#740334, netPriceQuantityUomUuid#740335, measurements#740336, originalReplenishmentRunId#740337L, optimizationGroups#740338, shardId#740339, sequenceId#740317]
Condition : ((isnotnull(availabilityDateTime#740306) AND isnotnull(nextAvailabilityDateTime#740307)) AND (nextAvailabilityDateTime#740307 > availabilityDateTime#740306))
(14) Project
Output [44]: [orderProposalId#740295L, orderProposalItemId#740296, supplierGroup#740297, supplier#740298, plant#740299, deliveryDateTime#740300, subrange#740301, supplyingPlant#740302, productGroup#740303, product#740304, orderDateTime#740305, availabilityDateTime#740306, nextAvailabilityDateTime#740307, mrpController#740308, sourceOfSupplyUuid#740309, purchasingOrg#740310, purchasingGroup#740311, isFallbackOrderOnly#740312, orderProposalHorizonGroupingId#740313L, splitIndicator#740314L, previousOrderProposal#740315L, clusterId#740316L, sequenceId#740317, worklistShardItemId#740318L, orderProposalItemGroupId#740319, externalProductId#740320, externalPlantId#740321, logisticUnits#740322, orderQuantityBaseUom#740323, orderQuantityBaseUomUuid#740324, minimumOrderQuantity#740325, constraintLabels#740326, constraintOperators#740327, constraintValues#740328, constraintRanks#740329, constraintIsActive#740330, netPriceAmount#740331, netPriceCurrencyCode#740332, netPriceQuantity#740333, netPriceQuantityUom#740334, netPriceQuantityUomUuid#740335, measurements#740336, originalReplenishmentRunId#740337L, optimizationGroups#740338]
Input [45]: [orderProposalId#740295L, orderProposalItemId#740296, supplierGroup#740297, supplier#740298, plant#740299, deliveryDateTime#740300, subrange#740301, supplyingPlant#740302, productGroup#740303, product#740304, orderDateTime#740305, availabilityDateTime#740306, nextAvailabilityDateTime#740307, mrpController#740308, sourceOfSupplyUuid#740309, purchasingOrg#740310, purchasingGroup#740311, isFallbackOrderOnly#740312, orderProposalHorizonGroupingId#740313L, splitIndicator#740314L, previousOrderProposal#740315L, clusterId#740316L, worklistShardItemId#740318L, orderProposalItemGroupId#740319, externalProductId#740320, externalPlantId#740321, logisticUnits#740322, orderQuantityBaseUom#740323, orderQuantityBaseUomUuid#740324, minimumOrderQuantity#740325, constraintLabels#740326, constraintOperators#740327, constraintValues#740328, constraintRanks#740329, constraintIsActive#740330, netPriceAmount#740331, netPriceCurrencyCode#740332, netPriceQuantity#740333, netPriceQuantityUom#740334, netPriceQuantityUomUuid#740335, measurements#740336, originalReplenishmentRunId#740337L, optimizationGroups#740338, shardId#740339, sequenceId#740317]
(15) Exchange
Input [44]: [orderProposalId#740295L, orderProposalItemId#740296, supplierGroup#740297, supplier#740298, plant#740299, deliveryDateTime#740300, subrange#740301, supplyingPlant#740302, productGroup#740303, product#740304, orderDateTime#740305, availabilityDateTime#740306, nextAvailabilityDateTime#740307, mrpController#740308, sourceOfSupplyUuid#740309, purchasingOrg#740310, purchasingGroup#740311, isFallbackOrderOnly#740312, orderProposalHorizonGroupingId#740313L, splitIndicator#740314L, previousOrderProposal#740315L, clusterId#740316L, sequenceId#740317, worklistShardItemId#740318L, orderProposalItemGroupId#740319, externalProductId#740320, externalPlantId#740321, logisticUnits#740322, orderQuantityBaseUom#740323, orderQuantityBaseUomUuid#740324, minimumOrderQuantity#740325, constraintLabels#740326, constraintOperators#740327, constraintValues#740328, constraintRanks#740329, constraintIsActive#740330, netPriceAmount#740331, netPriceCurrencyCode#740332, netPriceQuantity#740333, netPriceQuantityUom#740334, netPriceQuantityUomUuid#740335, measurements#740336, originalReplenishmentRunId#740337L, optimizationGroups#740338]
Arguments: hashpartitioning(worklistShardItemId#740318L, 25), REPARTITION_BY_NUM, [plan_id=297022]
(16) Project
Output [45]: [0_1_10000002108 AS shardId#740250, worklistShardItemId#740318L, orderProposalId#740295L, orderProposalItemId#740296, orderProposalItemGroupId#740319, originalReplenishmentRunId#740337L, orderProposalHorizonGroupingId#740313L, splitIndicator#740314L, previousOrderProposal#740315L, clusterId#740316L, cast(sequenceId#740317 as bigint) AS sequenceId#740260L, sourceOfSupplyUuid#740309, supplierGroup#740297, supplier#740298, subrange#740301, product#740304, plant#740299, purchasingOrg#740310, purchasingGroup#740311, mrpController#740308, orderDateTime#740305, deliveryDateTime#740300, availabilityDateTime#740306, nextAvailabilityDateTime#740307, isFallbackOrderOnly#740312, orderQuantityBaseUom#740323, orderQuantityBaseUomUuid#740324, netPriceQuantity#740333, netPriceQuantityUom#740334, netPriceQuantityUomUuid#740335, netPriceAmount#740331, netPriceCurrencyCode#740332, measurements#740336, minimumOrderQuantity#740325, constraintLabels#740326, constraintOperators#740327, constraintRanks#740329, constraintValues#740328, constraintIsActive#740330, logisticUnits#740322, optimizationGroups#740338, externalProductId#740320, externalPlantId#740321, supplyingPlant#740302, productGroup#740303]
Input [44]: [orderProposalId#740295L, orderProposalItemId#740296, supplierGroup#740297, supplier#740298, plant#740299, deliveryDateTime#740300, subrange#740301, supplyingPlant#740302, productGroup#740303, product#740304, orderDateTime#740305, availabilityDateTime#740306, nextAvailabilityDateTime#740307, mrpController#740308, sourceOfSupplyUuid#740309, purchasingOrg#740310, purchasingGroup#740311, isFallbackOrderOnly#740312, orderProposalHorizonGroupingId#740313L, splitIndicator#740314L, previousOrderProposal#740315L, clusterId#740316L, sequenceId#740317, worklistShardItemId#740318L, orderProposalItemGroupId#740319, externalProductId#740320, externalPlantId#740321, logisticUnits#740322, orderQuantityBaseUom#740323, orderQuantityBaseUomUuid#740324, minimumOrderQuantity#740325, constraintLabels#740326, constraintOperators#740327, constraintValues#740328, constraintRanks#740329, constraintIsActive#740330, netPriceAmount#740331, netPriceCurrencyCode#740332, netPriceQuantity#740333, netPriceQuantityUom#740334, netPriceQuantityUomUuid#740335, measurements#740336, originalReplenishmentRunId#740337L, optimizationGroups#740338]
(17) AdaptiveSparkPlan
Output [45]: [shardId#740250, worklistShardItemId#740318L, orderProposalId#740295L, orderProposalItemId#740296, orderProposalItemGroupId#740319, originalReplenishmentRunId#740337L, orderProposalHorizonGroupingId#740313L, splitIndicator#740314L, previousOrderProposal#740315L, clusterId#740316L, sequenceId#740260L, sourceOfSupplyUuid#740309, supplierGroup#740297, supplier#740298, subrange#740301, product#740304, plant#740299, purchasingOrg#740310, purchasingGroup#740311, mrpController#740308, orderDateTime#740305, deliveryDateTime#740300, availabilityDateTime#740306, nextAvailabilityDateTime#740307, isFallbackOrderOnly#740312, orderQuantityBaseUom#740323, orderQuantityBaseUomUuid#740324, netPriceQuantity#740333, netPriceQuantityUom#740334, netPriceQuantityUomUuid#740335, netPriceAmount#740331, netPriceCurrencyCode#740332, measurements#740336, minimumOrderQuantity#740325, constraintLabels#740326, constraintOperators#740327, constraintRanks#740329, constraintValues#740328, constraintIsActive#740330, logisticUnits#740322, optimizationGroups#740338, externalProductId#740320, externalPlantId#740321, supplyingPlant#740302, productGroup#740303]
Arguments: isFinalPlan=true
(18) TableCacheQueryStage
Output [3]: [shardId#740250, worklistShardItemId#740251L, orderProposalId#740252L]
Arguments: 0
(19) Filter [codegen id : 1]
Input [3]: [shardId#740250, worklistShardItemId#740251L, orderProposalId#740252L]
Condition : (isnotnull(shardId#740250) AND isnotnull(orderProposalId#740252L))
(20) ObjectHashAggregate
Input [3]: [shardId#740250, worklistShardItemId#740251L, orderProposalId#740252L]
Keys [2]: [shardId#740250, orderProposalId#740252L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#740251L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#747167]
Results [3]: [shardId#740250, orderProposalId#740252L, buf#747168]
(21) Exchange
Input [3]: [shardId#740250, orderProposalId#740252L, buf#747168]
Arguments: hashpartitioning(shardId#740250, orderProposalId#740252L, 25), ENSURE_REQUIREMENTS, [plan_id=297416]
(22) ShuffleQueryStage [codegen id : 3]
Output [3]: [shardId#740250, orderProposalId#740252L, buf#747168]
Arguments: 2
(23) AQEShuffleRead [codegen id : 3]
Input [3]: [shardId#740250, orderProposalId#740252L, buf#747168]
Arguments: coalesced
(24) ObjectHashAggregate [codegen id : 3]
Input [3]: [shardId#740250, orderProposalId#740252L, buf#747168]
Keys [2]: [shardId#740250, orderProposalId#740252L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#740251L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#740251L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#745663]
Results [7]: [shardId#740250, orderProposalId#740252L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#740251L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#745663, lambdafunction(struct(worklistShardItemId, lambda x_1944#745684.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_1944#745684.quantityAfterProdPlantOptimization, qty, lambda x_1944#745684.optimalQuantity), lambda x_1944#745684, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#745685, [] AS optimizationGroups#745679, false AS isOptimal#745664, 2026-08-10 09:37:51.749148 AS lastModified#745683, [] AS optimizationInsights#745680]
(25) Union
(26) Exchange
Input [7]: [shardId#745672, orderProposalId#745673L, items#745674, optimizationGroups#745675, isOptimal#745676, lastModified#745677, optimizationInsights#745678]
Arguments: hashpartitioning(shardId#745672, orderProposalId#745673L, lastModified#745677, 25), ENSURE_REQUIREMENTS, [plan_id=297536]
(27) ShuffleQueryStage
Output [7]: [shardId#745672, orderProposalId#745673L, items#745674, optimizationGroups#745675, isOptimal#745676, lastModified#745677, optimizationInsights#745678]
Arguments: 4
(28) AQEShuffleRead
Input [7]: [shardId#745672, orderProposalId#745673L, items#745674, optimizationGroups#745675, isOptimal#745676, lastModified#745677, optimizationInsights#745678]
Arguments: local
(29) BroadcastExchange
Input [7]: [shardId#745672, orderProposalId#745673L, items#745674, optimizationGroups#745675, isOptimal#745676, lastModified#745677, optimizationInsights#745678]
Arguments: HashedRelationBroadcastMode(List(input[0, string, true], input[1, bigint, true], input[5, timestamp, false]),false), [plan_id=297662]
(30) BroadcastQueryStage
Output [7]: [shardId#745672, orderProposalId#745673L, items#745674, optimizationGroups#745675, isOptimal#745676, lastModified#745677, optimizationInsights#745678]
Arguments: 6
(31) Scan ExistingRDD [codegen id : 4]
Output [7]: [shardId#745695, orderProposalId#745696L, items#745697, optimizationGroups#745698, isOptimal#745699, lastModified#745700, optimizationInsights#745701]
Arguments: [shardId#745695, orderProposalId#745696L, items#745697, optimizationGroups#745698, isOptimal#745699, lastModified#745700, optimizationInsights#745701], MapPartitionsRDD[34897] at createDataFrame at OptimalQuantitiesCacheImpl.java:212, ExistingRDD, UnknownPartitioning(0)
(32) Filter [codegen id : 4]
Input [7]: [shardId#745695, orderProposalId#745696L, items#745697, optimizationGroups#745698, isOptimal#745699, lastModified#745700, optimizationInsights#745701]
Condition : (isnotnull(shardId#745695) AND isnotnull(orderProposalId#745696L))
(33) Project [codegen id : 4]
Output [3]: [shardId#745695, orderProposalId#745696L, lastModified#745700]
Input [7]: [shardId#745695, orderProposalId#745696L, items#745697, optimizationGroups#745698, isOptimal#745699, lastModified#745700, optimizationInsights#745701]
(34) InMemoryTableScan
Output [2]: [shardId#745702, orderProposalId#745704L]
Arguments: [shardId#745702, orderProposalId#745704L], [isnotnull(shardId#745702), isnotnull(orderProposalId#745704L)]
(35) InMemoryRelation
Arguments: [shardId#745702, worklistShardItemId#745703L, orderProposalId#745704L, orderProposalItemId#745705, orderProposalItemGroupId#745706, originalReplenishmentRunId#745707L, orderProposalHorizonGroupingId#745708L, splitIndicator#745709L, previousOrderProposal#745710L, clusterId#745711L, sequenceId#745712L, sourceOfSupplyUuid#745713, supplierGroup#745714, supplier#745715, subrange#745716, product#745717, plant#745718, purchasingOrg#745719, purchasingGroup#745720, mrpController#745721, orderDateTime#745722, deliveryDateTime#745723, availabilityDateTime#745724, nextAvailabilityDateTime#745725, isFallbackOrderOnly#745726, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(36) TableCacheQueryStage
Output [2]: [shardId#745702, orderProposalId#745704L]
Arguments: 1
(37) Filter [codegen id : 2]
Input [2]: [shardId#745702, orderProposalId#745704L]
Condition : (isnotnull(shardId#745702) AND isnotnull(orderProposalId#745704L))
(38) HashAggregate [codegen id : 2]
Input [2]: [shardId#745702, orderProposalId#745704L]
Keys [2]: [shardId#745702, orderProposalId#745704L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#745702, orderProposalId#745704L]
(39) Exchange
Input [2]: [shardId#745702, orderProposalId#745704L]
Arguments: hashpartitioning(shardId#745702, orderProposalId#745704L, 25), ENSURE_REQUIREMENTS, [plan_id=297452]
(40) ShuffleQueryStage
Output [2]: [shardId#745702, orderProposalId#745704L]
Arguments: 3
(41) AQEShuffleRead
Input [2]: [shardId#745702, orderProposalId#745704L]
Arguments: coalesced
(42) HashAggregate [codegen id : 5]
Input [2]: [shardId#745702, orderProposalId#745704L]
Keys [2]: [shardId#745702, orderProposalId#745704L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#745702, orderProposalId#745704L, 2026-08-10 09:37:51.749148 AS lastModified#745799]
(43) Union
(44) HashAggregate [codegen id : 6]
Input [3]: [shardId#745695, orderProposalId#745696L, lastModified#745700]
Keys [2]: [shardId#745695, orderProposalId#745696L]
Functions [1]: [partial_max(lastModified#745700)]
Aggregate Attributes [1]: [max#747169]
Results [3]: [shardId#745695, orderProposalId#745696L, max#747170]
(45) Exchange
Input [3]: [shardId#745695, orderProposalId#745696L, max#747170]
Arguments: hashpartitioning(shardId#745695, orderProposalId#745696L, 25), ENSURE_REQUIREMENTS, [plan_id=297618]
(46) ShuffleQueryStage
Output [3]: [shardId#745695, orderProposalId#745696L, max#747170]
Arguments: 5
(47) AQEShuffleRead
Input [3]: [shardId#745695, orderProposalId#745696L, max#747170]
Arguments: coalesced
(48) HashAggregate
Input [3]: [shardId#745695, orderProposalId#745696L, max#747170]
Keys [2]: [shardId#745695, orderProposalId#745696L]
Functions [1]: [max(lastModified#745700)]
Aggregate Attributes [1]: [max(lastModified#745700)#745694]
Results [3]: [shardId#745695, orderProposalId#745696L, max(lastModified#745700)#745694 AS lastModified#745686]
(49) Filter
Input [3]: [shardId#745695, orderProposalId#745696L, lastModified#745686]
Condition : isnotnull(lastModified#745686)
(50) BroadcastHashJoin [codegen id : 7]
Left keys [3]: [shardId#745672, orderProposalId#745673L, lastModified#745677]
Right keys [3]: [shardId#745695, orderProposalId#745696L, lastModified#745686]
Join type: Inner
Join condition: None
(51) Project [codegen id : 7]
Output [7]: [shardId#745672, orderProposalId#745673L, items#745674, optimizationGroups#745675, isOptimal#745676, lastModified#745677, optimizationInsights#745678]
Input [10]: [shardId#745672, orderProposalId#745673L, items#745674, optimizationGroups#745675, isOptimal#745676, lastModified#745677, optimizationInsights#745678, shardId#745695, orderProposalId#745696L, lastModified#745686]
(52) DeserializeToObject
Input [7]: [shardId#745672, orderProposalId#745673L, items#745674, optimizationGroups#745675, isOptimal#745676, lastModified#745677, optimizationInsights#745678]
Arguments: createexternalrow(invoke(shardId#745672.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#745673L)), 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#745674, 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#745675, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#745676)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#745677)), 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#745678, 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#745816: org.apache.spark.sql.Row
(53) ResultQueryStage
Output [1]: [obj#745816]
Arguments: 7
(54) Filter
Input [3]: [shardId#740250, worklistShardItemId#740251L, orderProposalId#740252L]
Condition : (isnotnull(shardId#740250) AND isnotnull(orderProposalId#740252L))
(55) ObjectHashAggregate
Input [3]: [shardId#740250, worklistShardItemId#740251L, orderProposalId#740252L]
Keys [2]: [shardId#740250, orderProposalId#740252L]
Functions [1]: [partial_collect_list(struct(worklistShardItemId, worklistShardItemId#740251L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [buf#747167]
Results [3]: [shardId#740250, orderProposalId#740252L, buf#747168]
(56) Exchange
Input [3]: [shardId#740250, orderProposalId#740252L, buf#747168]
Arguments: hashpartitioning(shardId#740250, orderProposalId#740252L, 25), ENSURE_REQUIREMENTS, [plan_id=297245]
(57) ObjectHashAggregate
Input [3]: [shardId#740250, orderProposalId#740252L, buf#747168]
Keys [2]: [shardId#740250, orderProposalId#740252L]
Functions [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#740251L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(worklistShardItemId, worklistShardItemId#740251L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#745663]
Results [7]: [shardId#740250, orderProposalId#740252L, cast(transform(collect_list(struct(worklistShardItemId, worklistShardItemId#740251L, quantityAfterProdPlantOptimization, null, optimalQuantity, null), 0, 0)#745663, lambdafunction(struct(worklistShardItemId, lambda x_1944#745684.worklistShardItemId, quantityAfterProdPlantOptimization, lambda x_1944#745684.quantityAfterProdPlantOptimization, qty, lambda x_1944#745684.optimalQuantity), lambda x_1944#745684, false)) as array<struct<worklistShardItemId:bigint,quantityAfterProdPlantOptimization:double,qty:double>>) AS items#745685, [] AS optimizationGroups#745679, false AS isOptimal#745664, 2026-08-10 09:37:51.749148 AS lastModified#745683, [] AS optimizationInsights#745680]
(58) Union
(59) Exchange
Input [7]: [shardId#745672, orderProposalId#745673L, items#745674, optimizationGroups#745675, isOptimal#745676, lastModified#745677, optimizationInsights#745678]
Arguments: hashpartitioning(shardId#745672, orderProposalId#745673L, lastModified#745677, 25), ENSURE_REQUIREMENTS, [plan_id=297258]
(60) Sort
Input [7]: [shardId#745672, orderProposalId#745673L, items#745674, optimizationGroups#745675, isOptimal#745676, lastModified#745677, optimizationInsights#745678]
Arguments: [shardId#745672 ASC NULLS FIRST, orderProposalId#745673L ASC NULLS FIRST, lastModified#745677 ASC NULLS FIRST], false, 0
(61) Filter
Input [2]: [shardId#745702, orderProposalId#745704L]
Condition : (isnotnull(shardId#745702) AND isnotnull(orderProposalId#745704L))
(62) HashAggregate
Input [2]: [shardId#745702, orderProposalId#745704L]
Keys [2]: [shardId#745702, orderProposalId#745704L]
Functions: []
Aggregate Attributes: []
Results [2]: [shardId#745702, orderProposalId#745704L]
(63) Exchange
Input [2]: [shardId#745702, orderProposalId#745704L]
Arguments: hashpartitioning(shardId#745702, orderProposalId#745704L, 25), ENSURE_REQUIREMENTS, [plan_id=297248]
(64) HashAggregate
Input [2]: [shardId#745702, orderProposalId#745704L]
Keys [2]: [shardId#745702, orderProposalId#745704L]
Functions: []
Aggregate Attributes: []
Results [3]: [shardId#745702, orderProposalId#745704L, 2026-08-10 09:37:51.749148 AS lastModified#745799]
(65) Union
(66) HashAggregate
Input [3]: [shardId#745695, orderProposalId#745696L, lastModified#745700]
Keys [2]: [shardId#745695, orderProposalId#745696L]
Functions [1]: [partial_max(lastModified#745700)]
Aggregate Attributes [1]: [max#747169]
Results [3]: [shardId#745695, orderProposalId#745696L, max#747170]
(67) Exchange
Input [3]: [shardId#745695, orderProposalId#745696L, max#747170]
Arguments: hashpartitioning(shardId#745695, orderProposalId#745696L, 25), ENSURE_REQUIREMENTS, [plan_id=297253]
(68) HashAggregate
Input [3]: [shardId#745695, orderProposalId#745696L, max#747170]
Keys [2]: [shardId#745695, orderProposalId#745696L]
Functions [1]: [max(lastModified#745700)]
Aggregate Attributes [1]: [max(lastModified#745700)#745694]
Results [3]: [shardId#745695, orderProposalId#745696L, max(lastModified#745700)#745694 AS lastModified#745686]
(69) Filter
Input [3]: [shardId#745695, orderProposalId#745696L, lastModified#745686]
Condition : isnotnull(lastModified#745686)
(70) Exchange
Input [3]: [shardId#745695, orderProposalId#745696L, lastModified#745686]
Arguments: hashpartitioning(shardId#745695, orderProposalId#745696L, lastModified#745686, 25), ENSURE_REQUIREMENTS, [plan_id=297259]
(71) Sort
Input [3]: [shardId#745695, orderProposalId#745696L, lastModified#745686]
Arguments: [shardId#745695 ASC NULLS FIRST, orderProposalId#745696L ASC NULLS FIRST, lastModified#745686 ASC NULLS FIRST], false, 0
(72) SortMergeJoin
Left keys [3]: [shardId#745672, orderProposalId#745673L, lastModified#745677]
Right keys [3]: [shardId#745695, orderProposalId#745696L, lastModified#745686]
Join type: Inner
Join condition: None
(73) Project
Output [7]: [shardId#745672, orderProposalId#745673L, items#745674, optimizationGroups#745675, isOptimal#745676, lastModified#745677, optimizationInsights#745678]
Input [10]: [shardId#745672, orderProposalId#745673L, items#745674, optimizationGroups#745675, isOptimal#745676, lastModified#745677, optimizationInsights#745678, shardId#745695, orderProposalId#745696L, lastModified#745686]
(74) DeserializeToObject
Input [7]: [shardId#745672, orderProposalId#745673L, items#745674, optimizationGroups#745675, isOptimal#745676, lastModified#745677, optimizationInsights#745678]
Arguments: createexternalrow(invoke(shardId#745672.toString()), static_invoke(java.lang.Long.valueOf(orderProposalId#745673L)), 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#745674, 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#745675, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Boolean.valueOf(isOptimal#745676)), static_invoke(DateTimeUtils.toJavaTimestamp(lastModified#745677)), 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#745678, 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#745816: org.apache.spark.sql.Row
(75) AdaptiveSparkPlan
Output [1]: [obj#745816]
Arguments: isFinalPlan=true