== Physical Plan ==
CollectLimit (55)
+- * Project (54)
+- * Generate (53)
+- * Project (52)
+- * Filter (51)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- * Project (50)
+- * SortMergeJoin LeftOuter (49)
:- * Project (41)
: +- * SortMergeJoin LeftOuter (40)
: :- * Project (32)
: : +- * SortMergeJoin LeftOuter (31)
: : :- * Sort (25)
: : : +- Exchange (24)
: : : +- * Project (23)
: : : +- * SortMergeJoin LeftOuter (22)
: : : :- * Sort (14)
: : : : +- Exchange (13)
: : : : +- * Project (12)
: : : : +- * Generate (11)
: : : : +- * Filter (10)
: : : : +- InMemoryTableScan (3)
: : : : +- InMemoryRelation (4)
: : : : +- * Filter (9)
: : : : +- InMemoryTableScan (5)
: : : : +- InMemoryRelation (6)
: : : : +- * Filter (8)
: : : : +- * Scan ExistingRDD (7)
: : : +- * Sort (21)
: : : +- * Project (20)
: : : +- Exchange (19)
: : : +- * Project (18)
: : : +- * Filter (17)
: : : +- * ColumnarToRow (16)
: : : +- Scan parquet (15)
: : +- * Sort (30)
: : +- Exchange (29)
: : +- * Project (28)
: : +- * Filter (27)
: : +- * Scan ExistingRDD (26)
: +- * Sort (39)
: +- ObjectHashAggregate (38)
: +- Exchange (37)
: +- ObjectHashAggregate (36)
: +- * Project (35)
: +- * Filter (34)
: +- * Scan ExistingRDD (33)
+- * Sort (48)
+- ObjectHashAggregate (47)
+- Exchange (46)
+- ObjectHashAggregate (45)
+- * Project (44)
+- * Filter (43)
+- * Scan ExistingRDD (42)
(1) InMemoryTableScan
Output [2]: [quantityKpis#10216306, shardId#10214802]
Arguments: [quantityKpis#10216306, shardId#10214802], [isnotnull(shardId#10214802), (shardId#10214802 = 0_3_10000000540), (size(quantityKpis#10216306, true) > 0)]
(2) InMemoryRelation
Arguments: [shardId#10214802, worklistShardItemId#10215314L, quantityAfterProdPlantOptimization#10215315, qty#10215316, orderProposalId#10215472L, originalReplenishmentRunId#10215475L, supplierGroup#10215482, supplier#10215483, supplyingPlant#10215513, productGroup#10215514, product#10215485, plant#10215486, subrange#10215484, orderDateTime#10215490, deliveryDateTime#10215491, availabilityDateTime#10215492, nextAvailabilityDateTime#10215493, constraintValues#10215507, constraintOperators#10215505, constraintLabels#10215504, logisticUnits#10215509, orderQuantityBaseUom#10215495, orderQuantityBaseUomUuid#10215496, splitIndicator#10215477L, netPriceAmount#10215500, ... 17 more fields], StorageLevel(disk, memory, 2 replicas)
(3) InMemoryTableScan
Output [2]: [shardId#10214802, items#10214804]
Arguments: [shardId#10214802, items#10214804], [(size(items#10214804, true) > 0), isnotnull(items#10214804)]
(4) InMemoryRelation
Arguments: [shardId#10214802, orderProposalId#10214803L, items#10214804, optimizationGroups#10214805, isOptimal#10214806, optimizationInsights#10214808], StorageLevel(disk, memory, 2 replicas)
(5) InMemoryTableScan
Output [6]: [shardId#10214802, orderProposalId#10214803L, items#10214804, optimizationGroups#10214805, isOptimal#10214806, optimizationInsights#10214808]
Arguments: [shardId#10214802, orderProposalId#10214803L, items#10214804, optimizationGroups#10214805, isOptimal#10214806, optimizationInsights#10214808], [isnotnull(shardId#10214802), (shardId#10214802 = 0_3_10000000540)]
(6) InMemoryRelation
Arguments: [shardId#10214802, orderProposalId#10214803L, items#10214804, optimizationGroups#10214805, isOptimal#10214806, lastModified#10214807, optimizationInsights#10214808], StorageLevel(disk, memory, 2 replicas)
(7) Scan ExistingRDD [codegen id : 1]
Output [7]: [shardId#10214802, orderProposalId#10214803L, items#10214804, optimizationGroups#10214805, isOptimal#10214806, lastModified#10214807, optimizationInsights#10214808]
Arguments: [shardId#10214802, orderProposalId#10214803L, items#10214804, optimizationGroups#10214805, isOptimal#10214806, lastModified#10214807, optimizationInsights#10214808], MapPartitionsRDD[434374] at start at FileStorageAdapterImpl.java:596, ExistingRDD, UnknownPartitioning(0)
(8) Filter [codegen id : 1]
Input [7]: [shardId#10214802, orderProposalId#10214803L, items#10214804, optimizationGroups#10214805, isOptimal#10214806, lastModified#10214807, optimizationInsights#10214808]
Condition : (isnotnull(shardId#10214802) AND (shardId#10214802 = 0_3_10000000540))
(9) Filter [codegen id : 1]
Input [6]: [shardId#10214802, orderProposalId#10214803L, items#10214804, optimizationGroups#10214805, isOptimal#10214806, optimizationInsights#10214808]
Condition : (isnotnull(shardId#10214802) AND (shardId#10214802 = 0_3_10000000540))
(10) Filter [codegen id : 1]
Input [2]: [shardId#10214802, items#10214804]
Condition : ((size(items#10214804, true) > 0) AND isnotnull(items#10214804))
(11) Generate [codegen id : 1]
Input [2]: [shardId#10214802, items#10214804]
Arguments: explode(items#10214804), [shardId#10214802], false, [item#10215313]
(12) Project [codegen id : 1]
Output [4]: [shardId#10214802, item#10215313.worklistShardItemId AS worklistShardItemId#10215314L, item#10215313.quantityAfterProdPlantOptimization AS quantityAfterProdPlantOptimization#10215315, item#10215313.qty AS qty#10215316]
Input [2]: [shardId#10214802, item#10215313]
(13) Exchange
Input [4]: [shardId#10214802, worklistShardItemId#10215314L, quantityAfterProdPlantOptimization#10215315, qty#10215316]
Arguments: hashpartitioning(worklistShardItemId#10215314L, 30), ENSURE_REQUIREMENTS, [plan_id=3020494]
(14) Sort [codegen id : 2]
Input [4]: [shardId#10214802, worklistShardItemId#10215314L, quantityAfterProdPlantOptimization#10215315, qty#10215316]
Arguments: [worklistShardItemId#10215314L ASC NULLS FIRST], false, 0
(15) Scan parquet
Output [38]: [orderProposalId#10215515L, orderProposalItemId#10215516, supplierGroup#10215517, supplier#10215518, plant#10215519, deliveryDateTime#10215520, subrange#10215521, supplyingPlant#10215522, productGroup#10215523, product#10215524, orderDateTime#10215525, availabilityDateTime#10215526, nextAvailabilityDateTime#10215527, sourceOfSupplyUuid#10215529, isFallbackOrderOnly#10215532, splitIndicator#10215534L, previousOrderProposal#10215535L, worklistShardItemId#10215538L, orderProposalItemGroupId#10215539, externalProductId#10215540, externalPlantId#10215541, logisticUnits#10215542, orderQuantityBaseUom#10215543, orderQuantityBaseUomUuid#10215544, minimumOrderQuantity#10215545, constraintLabels#10215546, constraintOperators#10215547, constraintValues#10215548, netPriceAmount#10215551, netPriceCurrencyCode#10215552, netPriceQuantity#10215553, netPriceQuantityUom#10215554, netPriceQuantityUomUuid#10215555, measurements#10215556, originalReplenishmentRunId#10215557L, optimizationGroups#10215558, shardId#10215559, sequenceId#10215537]
Batched: true
Location: PreparedDeltaFileIndex [hdlfs://7da5304c-1f57-47fa-b75a-0f0b4349c280.files.hdl.prod-eu20.hanacloud.ondemand.com:443/crp-order-qty-opt-service/internal/prod-plant-snapshot/10000000540]
PartitionFilters: [isnotnull(shardId#10215559), isnotnull(sequenceId#10215537), (shardId#10215559 = 0_3_10000000540), (sequenceId#10215537 = 12)]
PushedFilters: [IsNotNull(worklistShardItemId)]
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,sourceOfSupplyUuid:string,isFallbackOrderOnly:boolean,splitIndicator:bigint,previousOrderProposal: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>,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>>
(16) ColumnarToRow [codegen id : 3]
Input [38]: [orderProposalId#10215515L, orderProposalItemId#10215516, supplierGroup#10215517, supplier#10215518, plant#10215519, deliveryDateTime#10215520, subrange#10215521, supplyingPlant#10215522, productGroup#10215523, product#10215524, orderDateTime#10215525, availabilityDateTime#10215526, nextAvailabilityDateTime#10215527, sourceOfSupplyUuid#10215529, isFallbackOrderOnly#10215532, splitIndicator#10215534L, previousOrderProposal#10215535L, worklistShardItemId#10215538L, orderProposalItemGroupId#10215539, externalProductId#10215540, externalPlantId#10215541, logisticUnits#10215542, orderQuantityBaseUom#10215543, orderQuantityBaseUomUuid#10215544, minimumOrderQuantity#10215545, constraintLabels#10215546, constraintOperators#10215547, constraintValues#10215548, netPriceAmount#10215551, netPriceCurrencyCode#10215552, netPriceQuantity#10215553, netPriceQuantityUom#10215554, netPriceQuantityUomUuid#10215555, measurements#10215556, originalReplenishmentRunId#10215557L, optimizationGroups#10215558, shardId#10215559, sequenceId#10215537]
(17) Filter [codegen id : 3]
Input [38]: [orderProposalId#10215515L, orderProposalItemId#10215516, supplierGroup#10215517, supplier#10215518, plant#10215519, deliveryDateTime#10215520, subrange#10215521, supplyingPlant#10215522, productGroup#10215523, product#10215524, orderDateTime#10215525, availabilityDateTime#10215526, nextAvailabilityDateTime#10215527, sourceOfSupplyUuid#10215529, isFallbackOrderOnly#10215532, splitIndicator#10215534L, previousOrderProposal#10215535L, worklistShardItemId#10215538L, orderProposalItemGroupId#10215539, externalProductId#10215540, externalPlantId#10215541, logisticUnits#10215542, orderQuantityBaseUom#10215543, orderQuantityBaseUomUuid#10215544, minimumOrderQuantity#10215545, constraintLabels#10215546, constraintOperators#10215547, constraintValues#10215548, netPriceAmount#10215551, netPriceCurrencyCode#10215552, netPriceQuantity#10215553, netPriceQuantityUom#10215554, netPriceQuantityUomUuid#10215555, measurements#10215556, originalReplenishmentRunId#10215557L, optimizationGroups#10215558, shardId#10215559, sequenceId#10215537]
Condition : isnotnull(worklistShardItemId#10215538L)
(18) Project [codegen id : 3]
Output [36]: [orderProposalId#10215515L, orderProposalItemId#10215516, supplierGroup#10215517, supplier#10215518, plant#10215519, deliveryDateTime#10215520, subrange#10215521, supplyingPlant#10215522, productGroup#10215523, product#10215524, orderDateTime#10215525, availabilityDateTime#10215526, nextAvailabilityDateTime#10215527, sourceOfSupplyUuid#10215529, isFallbackOrderOnly#10215532, splitIndicator#10215534L, previousOrderProposal#10215535L, worklistShardItemId#10215538L, orderProposalItemGroupId#10215539, externalProductId#10215540, externalPlantId#10215541, logisticUnits#10215542, orderQuantityBaseUom#10215543, orderQuantityBaseUomUuid#10215544, minimumOrderQuantity#10215545, constraintLabels#10215546, constraintOperators#10215547, constraintValues#10215548, netPriceAmount#10215551, netPriceCurrencyCode#10215552, netPriceQuantity#10215553, netPriceQuantityUom#10215554, netPriceQuantityUomUuid#10215555, measurements#10215556, originalReplenishmentRunId#10215557L, optimizationGroups#10215558]
Input [38]: [orderProposalId#10215515L, orderProposalItemId#10215516, supplierGroup#10215517, supplier#10215518, plant#10215519, deliveryDateTime#10215520, subrange#10215521, supplyingPlant#10215522, productGroup#10215523, product#10215524, orderDateTime#10215525, availabilityDateTime#10215526, nextAvailabilityDateTime#10215527, sourceOfSupplyUuid#10215529, isFallbackOrderOnly#10215532, splitIndicator#10215534L, previousOrderProposal#10215535L, worklistShardItemId#10215538L, orderProposalItemGroupId#10215539, externalProductId#10215540, externalPlantId#10215541, logisticUnits#10215542, orderQuantityBaseUom#10215543, orderQuantityBaseUomUuid#10215544, minimumOrderQuantity#10215545, constraintLabels#10215546, constraintOperators#10215547, constraintValues#10215548, netPriceAmount#10215551, netPriceCurrencyCode#10215552, netPriceQuantity#10215553, netPriceQuantityUom#10215554, netPriceQuantityUomUuid#10215555, measurements#10215556, originalReplenishmentRunId#10215557L, optimizationGroups#10215558, shardId#10215559, sequenceId#10215537]
(19) Exchange
Input [36]: [orderProposalId#10215515L, orderProposalItemId#10215516, supplierGroup#10215517, supplier#10215518, plant#10215519, deliveryDateTime#10215520, subrange#10215521, supplyingPlant#10215522, productGroup#10215523, product#10215524, orderDateTime#10215525, availabilityDateTime#10215526, nextAvailabilityDateTime#10215527, sourceOfSupplyUuid#10215529, isFallbackOrderOnly#10215532, splitIndicator#10215534L, previousOrderProposal#10215535L, worklistShardItemId#10215538L, orderProposalItemGroupId#10215539, externalProductId#10215540, externalPlantId#10215541, logisticUnits#10215542, orderQuantityBaseUom#10215543, orderQuantityBaseUomUuid#10215544, minimumOrderQuantity#10215545, constraintLabels#10215546, constraintOperators#10215547, constraintValues#10215548, netPriceAmount#10215551, netPriceCurrencyCode#10215552, netPriceQuantity#10215553, netPriceQuantityUom#10215554, netPriceQuantityUomUuid#10215555, measurements#10215556, originalReplenishmentRunId#10215557L, optimizationGroups#10215558]
Arguments: hashpartitioning(worklistShardItemId#10215538L, 30), REPARTITION_BY_NUM, [plan_id=3020504]
(20) Project [codegen id : 4]
Output [36]: [worklistShardItemId#10215538L, orderProposalId#10215515L, orderProposalItemId#10215516, orderProposalItemGroupId#10215539, originalReplenishmentRunId#10215557L, splitIndicator#10215534L, previousOrderProposal#10215535L, sourceOfSupplyUuid#10215529, supplierGroup#10215517, supplier#10215518, subrange#10215521, product#10215524, plant#10215519, orderDateTime#10215525, deliveryDateTime#10215520, availabilityDateTime#10215526, nextAvailabilityDateTime#10215527, isFallbackOrderOnly#10215532, orderQuantityBaseUom#10215543, orderQuantityBaseUomUuid#10215544, netPriceQuantity#10215553, netPriceQuantityUom#10215554, netPriceQuantityUomUuid#10215555, netPriceAmount#10215551, netPriceCurrencyCode#10215552, measurements#10215556, minimumOrderQuantity#10215545, constraintLabels#10215546, constraintOperators#10215547, constraintValues#10215548, logisticUnits#10215542, optimizationGroups#10215558, externalProductId#10215540, externalPlantId#10215541, supplyingPlant#10215522, productGroup#10215523]
Input [36]: [orderProposalId#10215515L, orderProposalItemId#10215516, supplierGroup#10215517, supplier#10215518, plant#10215519, deliveryDateTime#10215520, subrange#10215521, supplyingPlant#10215522, productGroup#10215523, product#10215524, orderDateTime#10215525, availabilityDateTime#10215526, nextAvailabilityDateTime#10215527, sourceOfSupplyUuid#10215529, isFallbackOrderOnly#10215532, splitIndicator#10215534L, previousOrderProposal#10215535L, worklistShardItemId#10215538L, orderProposalItemGroupId#10215539, externalProductId#10215540, externalPlantId#10215541, logisticUnits#10215542, orderQuantityBaseUom#10215543, orderQuantityBaseUomUuid#10215544, minimumOrderQuantity#10215545, constraintLabels#10215546, constraintOperators#10215547, constraintValues#10215548, netPriceAmount#10215551, netPriceCurrencyCode#10215552, netPriceQuantity#10215553, netPriceQuantityUom#10215554, netPriceQuantityUomUuid#10215555, measurements#10215556, originalReplenishmentRunId#10215557L, optimizationGroups#10215558]
(21) Sort [codegen id : 4]
Input [36]: [worklistShardItemId#10215538L, orderProposalId#10215515L, orderProposalItemId#10215516, orderProposalItemGroupId#10215539, originalReplenishmentRunId#10215557L, splitIndicator#10215534L, previousOrderProposal#10215535L, sourceOfSupplyUuid#10215529, supplierGroup#10215517, supplier#10215518, subrange#10215521, product#10215524, plant#10215519, orderDateTime#10215525, deliveryDateTime#10215520, availabilityDateTime#10215526, nextAvailabilityDateTime#10215527, isFallbackOrderOnly#10215532, orderQuantityBaseUom#10215543, orderQuantityBaseUomUuid#10215544, netPriceQuantity#10215553, netPriceQuantityUom#10215554, netPriceQuantityUomUuid#10215555, netPriceAmount#10215551, netPriceCurrencyCode#10215552, measurements#10215556, minimumOrderQuantity#10215545, constraintLabels#10215546, constraintOperators#10215547, constraintValues#10215548, logisticUnits#10215542, optimizationGroups#10215558, externalProductId#10215540, externalPlantId#10215541, supplyingPlant#10215522, productGroup#10215523]
Arguments: [worklistShardItemId#10215538L ASC NULLS FIRST], false, 0
(22) SortMergeJoin [codegen id : 5]
Left keys [1]: [worklistShardItemId#10215314L]
Right keys [1]: [worklistShardItemId#10215538L]
Join type: LeftOuter
Join condition: (shardId#10214802 = 0_3_10000000540)
(23) Project [codegen id : 5]
Output [39]: [shardId#10214802, worklistShardItemId#10215314L, quantityAfterProdPlantOptimization#10215315, qty#10215316, orderProposalId#10215515L, originalReplenishmentRunId#10215557L, supplierGroup#10215517, supplier#10215518, supplyingPlant#10215522, productGroup#10215523, product#10215524, plant#10215519, subrange#10215521, orderDateTime#10215525, deliveryDateTime#10215520, availabilityDateTime#10215526, nextAvailabilityDateTime#10215527, constraintValues#10215548, constraintOperators#10215547, constraintLabels#10215546, logisticUnits#10215542, orderQuantityBaseUom#10215543, orderQuantityBaseUomUuid#10215544, splitIndicator#10215534L, netPriceAmount#10215551, netPriceCurrencyCode#10215552, netPriceQuantity#10215553, netPriceQuantityUom#10215554, netPriceQuantityUomUuid#10215555, sourceOfSupplyUuid#10215529, minimumOrderQuantity#10215545, orderProposalItemId#10215516, orderProposalItemGroupId#10215539, optimizationGroups#10215558, measurements#10215556, externalProductId#10215540, externalPlantId#10215541, previousOrderProposal#10215535L, isFallbackOrderOnly#10215532]
Input [40]: [shardId#10214802, worklistShardItemId#10215314L, quantityAfterProdPlantOptimization#10215315, qty#10215316, worklistShardItemId#10215538L, orderProposalId#10215515L, orderProposalItemId#10215516, orderProposalItemGroupId#10215539, originalReplenishmentRunId#10215557L, splitIndicator#10215534L, previousOrderProposal#10215535L, sourceOfSupplyUuid#10215529, supplierGroup#10215517, supplier#10215518, subrange#10215521, product#10215524, plant#10215519, orderDateTime#10215525, deliveryDateTime#10215520, availabilityDateTime#10215526, nextAvailabilityDateTime#10215527, isFallbackOrderOnly#10215532, orderQuantityBaseUom#10215543, orderQuantityBaseUomUuid#10215544, netPriceQuantity#10215553, netPriceQuantityUom#10215554, netPriceQuantityUomUuid#10215555, netPriceAmount#10215551, netPriceCurrencyCode#10215552, measurements#10215556, minimumOrderQuantity#10215545, constraintLabels#10215546, constraintOperators#10215547, constraintValues#10215548, logisticUnits#10215542, optimizationGroups#10215558, externalProductId#10215540, externalPlantId#10215541, supplyingPlant#10215522, productGroup#10215523]
(24) Exchange
Input [39]: [shardId#10214802, worklistShardItemId#10215314L, quantityAfterProdPlantOptimization#10215315, qty#10215316, orderProposalId#10215515L, originalReplenishmentRunId#10215557L, supplierGroup#10215517, supplier#10215518, supplyingPlant#10215522, productGroup#10215523, product#10215524, plant#10215519, subrange#10215521, orderDateTime#10215525, deliveryDateTime#10215520, availabilityDateTime#10215526, nextAvailabilityDateTime#10215527, constraintValues#10215548, constraintOperators#10215547, constraintLabels#10215546, logisticUnits#10215542, orderQuantityBaseUom#10215543, orderQuantityBaseUomUuid#10215544, splitIndicator#10215534L, netPriceAmount#10215551, netPriceCurrencyCode#10215552, netPriceQuantity#10215553, netPriceQuantityUom#10215554, netPriceQuantityUomUuid#10215555, sourceOfSupplyUuid#10215529, minimumOrderQuantity#10215545, orderProposalItemId#10215516, orderProposalItemGroupId#10215539, optimizationGroups#10215558, measurements#10215556, externalProductId#10215540, externalPlantId#10215541, previousOrderProposal#10215535L, isFallbackOrderOnly#10215532]
Arguments: hashpartitioning(shardId#10214802, worklistShardItemId#10215314L, 30), ENSURE_REQUIREMENTS, [plan_id=3020513]
(25) Sort [codegen id : 6]
Input [39]: [shardId#10214802, worklistShardItemId#10215314L, quantityAfterProdPlantOptimization#10215315, qty#10215316, orderProposalId#10215515L, originalReplenishmentRunId#10215557L, supplierGroup#10215517, supplier#10215518, supplyingPlant#10215522, productGroup#10215523, product#10215524, plant#10215519, subrange#10215521, orderDateTime#10215525, deliveryDateTime#10215520, availabilityDateTime#10215526, nextAvailabilityDateTime#10215527, constraintValues#10215548, constraintOperators#10215547, constraintLabels#10215546, logisticUnits#10215542, orderQuantityBaseUom#10215543, orderQuantityBaseUomUuid#10215544, splitIndicator#10215534L, netPriceAmount#10215551, netPriceCurrencyCode#10215552, netPriceQuantity#10215553, netPriceQuantityUom#10215554, netPriceQuantityUomUuid#10215555, sourceOfSupplyUuid#10215529, minimumOrderQuantity#10215545, orderProposalItemId#10215516, orderProposalItemGroupId#10215539, optimizationGroups#10215558, measurements#10215556, externalProductId#10215540, externalPlantId#10215541, previousOrderProposal#10215535L, isFallbackOrderOnly#10215532]
Arguments: [shardId#10214802 ASC NULLS FIRST, worklistShardItemId#10215314L ASC NULLS FIRST], false, 0
(26) Scan ExistingRDD [codegen id : 7]
Output [6]: [shardId#10216271, worklistShardItemId#10216272L, qty#10216273, demandChannel#10216274, demandStream#10216275, kpis#10216276]
Arguments: [shardId#10216271, worklistShardItemId#10216272L, qty#10216273, demandChannel#10216274, demandStream#10216275, kpis#10216276], MapPartitionsRDD[434456] at start at FileStorageAdapterImpl.java:596, ExistingRDD, UnknownPartitioning(0)
(27) Filter [codegen id : 7]
Input [6]: [shardId#10216271, worklistShardItemId#10216272L, qty#10216273, demandChannel#10216274, demandStream#10216275, kpis#10216276]
Condition : (((isnull(qty#10216273) AND isnull(demandChannel#10216274)) AND isnull(demandStream#10216275)) AND (isnotnull(shardId#10216271) AND isnotnull(worklistShardItemId#10216272L)))
(28) Project [codegen id : 7]
Output [3]: [shardId#10216271, worklistShardItemId#10216272L, coalesce(kpis#10216276, []) AS prodLocSpecificKpis#10216277]
Input [6]: [shardId#10216271, worklistShardItemId#10216272L, qty#10216273, demandChannel#10216274, demandStream#10216275, kpis#10216276]
(29) Exchange
Input [3]: [shardId#10216271, worklistShardItemId#10216272L, prodLocSpecificKpis#10216277]
Arguments: hashpartitioning(shardId#10216271, worklistShardItemId#10216272L, 30), ENSURE_REQUIREMENTS, [plan_id=3020519]
(30) Sort [codegen id : 8]
Input [3]: [shardId#10216271, worklistShardItemId#10216272L, prodLocSpecificKpis#10216277]
Arguments: [shardId#10216271 ASC NULLS FIRST, worklistShardItemId#10216272L ASC NULLS FIRST], false, 0
(31) SortMergeJoin [codegen id : 9]
Left keys [2]: [shardId#10214802, worklistShardItemId#10215314L]
Right keys [2]: [shardId#10216271, worklistShardItemId#10216272L]
Join type: LeftOuter
Join condition: None
(32) Project [codegen id : 9]
Output [40]: [shardId#10214802, worklistShardItemId#10215314L, quantityAfterProdPlantOptimization#10215315, qty#10215316, orderProposalId#10215515L, originalReplenishmentRunId#10215557L, supplierGroup#10215517, supplier#10215518, supplyingPlant#10215522, productGroup#10215523, product#10215524, plant#10215519, subrange#10215521, orderDateTime#10215525, deliveryDateTime#10215520, availabilityDateTime#10215526, nextAvailabilityDateTime#10215527, constraintValues#10215548, constraintOperators#10215547, constraintLabels#10215546, logisticUnits#10215542, orderQuantityBaseUom#10215543, orderQuantityBaseUomUuid#10215544, splitIndicator#10215534L, netPriceAmount#10215551, netPriceCurrencyCode#10215552, netPriceQuantity#10215553, netPriceQuantityUom#10215554, netPriceQuantityUomUuid#10215555, sourceOfSupplyUuid#10215529, minimumOrderQuantity#10215545, orderProposalItemId#10215516, orderProposalItemGroupId#10215539, optimizationGroups#10215558, measurements#10215556, externalProductId#10215540, externalPlantId#10215541, previousOrderProposal#10215535L, isFallbackOrderOnly#10215532, coalesce(prodLocSpecificKpis#10216277, []) AS prodLocSpecificKpis#10216278]
Input [42]: [shardId#10214802, worklistShardItemId#10215314L, quantityAfterProdPlantOptimization#10215315, qty#10215316, orderProposalId#10215515L, originalReplenishmentRunId#10215557L, supplierGroup#10215517, supplier#10215518, supplyingPlant#10215522, productGroup#10215523, product#10215524, plant#10215519, subrange#10215521, orderDateTime#10215525, deliveryDateTime#10215520, availabilityDateTime#10215526, nextAvailabilityDateTime#10215527, constraintValues#10215548, constraintOperators#10215547, constraintLabels#10215546, logisticUnits#10215542, orderQuantityBaseUom#10215543, orderQuantityBaseUomUuid#10215544, splitIndicator#10215534L, netPriceAmount#10215551, netPriceCurrencyCode#10215552, netPriceQuantity#10215553, netPriceQuantityUom#10215554, netPriceQuantityUomUuid#10215555, sourceOfSupplyUuid#10215529, minimumOrderQuantity#10215545, orderProposalItemId#10215516, orderProposalItemGroupId#10215539, optimizationGroups#10215558, measurements#10215556, externalProductId#10215540, externalPlantId#10215541, previousOrderProposal#10215535L, isFallbackOrderOnly#10215532, shardId#10216271, worklistShardItemId#10216272L, prodLocSpecificKpis#10216277]
(33) Scan ExistingRDD [codegen id : 10]
Output [6]: [shardId#10216287, worklistShardItemId#10216288L, qty#10216289, demandChannel#10216290, demandStream#10216291, kpis#10216292]
Arguments: [shardId#10216287, worklistShardItemId#10216288L, qty#10216289, demandChannel#10216290, demandStream#10216291, kpis#10216292], MapPartitionsRDD[434456] at start at FileStorageAdapterImpl.java:596, ExistingRDD, UnknownPartitioning(0)
(34) Filter [codegen id : 10]
Input [6]: [shardId#10216287, worklistShardItemId#10216288L, qty#10216289, demandChannel#10216290, demandStream#10216291, kpis#10216292]
Condition : ((((isnull(qty#10216289) AND isnotnull(demandChannel#10216290)) AND isnotnull(demandStream#10216291)) AND (size(kpis#10216292, true) > 0)) AND (isnotnull(shardId#10216287) AND isnotnull(worklistShardItemId#10216288L)))
(35) Project [codegen id : 10]
Output [5]: [shardId#10216287, worklistShardItemId#10216288L, demandChannel#10216290, demandStream#10216291, kpis#10216292]
Input [6]: [shardId#10216287, worklistShardItemId#10216288L, qty#10216289, demandChannel#10216290, demandStream#10216291, kpis#10216292]
(36) ObjectHashAggregate
Input [5]: [shardId#10216287, worklistShardItemId#10216288L, demandChannel#10216290, demandStream#10216291, kpis#10216292]
Keys [2]: [shardId#10216287, worklistShardItemId#10216288L]
Functions [1]: [partial_collect_list(struct(demandChannel, demandChannel#10216290, demandStream, demandStream#10216291, kpis, kpis#10216292), 0, 0)]
Aggregate Attributes [1]: [buf#10216467]
Results [3]: [shardId#10216287, worklistShardItemId#10216288L, buf#10216468]
(37) Exchange
Input [3]: [shardId#10216287, worklistShardItemId#10216288L, buf#10216468]
Arguments: hashpartitioning(shardId#10216287, worklistShardItemId#10216288L, 30), ENSURE_REQUIREMENTS, [plan_id=3020530]
(38) ObjectHashAggregate
Input [3]: [shardId#10216287, worklistShardItemId#10216288L, buf#10216468]
Keys [2]: [shardId#10216287, worklistShardItemId#10216288L]
Functions [1]: [collect_list(struct(demandChannel, demandChannel#10216290, demandStream, demandStream#10216291, kpis, kpis#10216292), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(demandChannel, demandChannel#10216290, demandStream, demandStream#10216291, kpis, kpis#10216292), 0, 0)#10216286]
Results [3]: [shardId#10216287, worklistShardItemId#10216288L, collect_list(struct(demandChannel, demandChannel#10216290, demandStream, demandStream#10216291, kpis, kpis#10216292), 0, 0)#10216286 AS channelStreamSpecificKpis#10216279]
(39) Sort [codegen id : 11]
Input [3]: [shardId#10216287, worklistShardItemId#10216288L, channelStreamSpecificKpis#10216279]
Arguments: [shardId#10216287 ASC NULLS FIRST, worklistShardItemId#10216288L ASC NULLS FIRST], false, 0
(40) SortMergeJoin [codegen id : 12]
Left keys [2]: [shardId#10214802, worklistShardItemId#10215314L]
Right keys [2]: [shardId#10216287, worklistShardItemId#10216288L]
Join type: LeftOuter
Join condition: None
(41) Project [codegen id : 12]
Output [41]: [shardId#10214802, worklistShardItemId#10215314L, quantityAfterProdPlantOptimization#10215315, qty#10215316, orderProposalId#10215515L, originalReplenishmentRunId#10215557L, supplierGroup#10215517, supplier#10215518, supplyingPlant#10215522, productGroup#10215523, product#10215524, plant#10215519, subrange#10215521, orderDateTime#10215525, deliveryDateTime#10215520, availabilityDateTime#10215526, nextAvailabilityDateTime#10215527, constraintValues#10215548, constraintOperators#10215547, constraintLabels#10215546, logisticUnits#10215542, orderQuantityBaseUom#10215543, orderQuantityBaseUomUuid#10215544, splitIndicator#10215534L, netPriceAmount#10215551, netPriceCurrencyCode#10215552, netPriceQuantity#10215553, netPriceQuantityUom#10215554, netPriceQuantityUomUuid#10215555, sourceOfSupplyUuid#10215529, minimumOrderQuantity#10215545, orderProposalItemId#10215516, orderProposalItemGroupId#10215539, optimizationGroups#10215558, measurements#10215556, externalProductId#10215540, externalPlantId#10215541, previousOrderProposal#10215535L, isFallbackOrderOnly#10215532, prodLocSpecificKpis#10216278, coalesce(channelStreamSpecificKpis#10216279, []) AS channelStreamSpecificKpis#10216293]
Input [43]: [shardId#10214802, worklistShardItemId#10215314L, quantityAfterProdPlantOptimization#10215315, qty#10215316, orderProposalId#10215515L, originalReplenishmentRunId#10215557L, supplierGroup#10215517, supplier#10215518, supplyingPlant#10215522, productGroup#10215523, product#10215524, plant#10215519, subrange#10215521, orderDateTime#10215525, deliveryDateTime#10215520, availabilityDateTime#10215526, nextAvailabilityDateTime#10215527, constraintValues#10215548, constraintOperators#10215547, constraintLabels#10215546, logisticUnits#10215542, orderQuantityBaseUom#10215543, orderQuantityBaseUomUuid#10215544, splitIndicator#10215534L, netPriceAmount#10215551, netPriceCurrencyCode#10215552, netPriceQuantity#10215553, netPriceQuantityUom#10215554, netPriceQuantityUomUuid#10215555, sourceOfSupplyUuid#10215529, minimumOrderQuantity#10215545, orderProposalItemId#10215516, orderProposalItemGroupId#10215539, optimizationGroups#10215558, measurements#10215556, externalProductId#10215540, externalPlantId#10215541, previousOrderProposal#10215535L, isFallbackOrderOnly#10215532, prodLocSpecificKpis#10216278, shardId#10216287, worklistShardItemId#10216288L, channelStreamSpecificKpis#10216279]
(42) Scan ExistingRDD [codegen id : 13]
Output [6]: [shardId#10216300, worklistShardItemId#10216301L, qty#10216302, demandChannel#10216303, demandStream#10216304, kpis#10216305]
Arguments: [shardId#10216300, worklistShardItemId#10216301L, qty#10216302, demandChannel#10216303, demandStream#10216304, kpis#10216305], MapPartitionsRDD[434456] at start at FileStorageAdapterImpl.java:596, ExistingRDD, UnknownPartitioning(0)
(43) Filter [codegen id : 13]
Input [6]: [shardId#10216300, worklistShardItemId#10216301L, qty#10216302, demandChannel#10216303, demandStream#10216304, kpis#10216305]
Condition : ((isnotnull(qty#10216302) AND isnotnull(kpis#10216305)) AND (isnotnull(shardId#10216300) AND isnotnull(worklistShardItemId#10216301L)))
(44) Project [codegen id : 13]
Output [4]: [shardId#10216300, worklistShardItemId#10216301L, qty#10216302, kpis#10216305]
Input [6]: [shardId#10216300, worklistShardItemId#10216301L, qty#10216302, demandChannel#10216303, demandStream#10216304, kpis#10216305]
(45) ObjectHashAggregate
Input [4]: [shardId#10216300, worklistShardItemId#10216301L, qty#10216302, kpis#10216305]
Keys [2]: [shardId#10216300, worklistShardItemId#10216301L]
Functions [1]: [partial_collect_list(struct(qty, qty#10216302, kpis, kpis#10216305), 0, 0)]
Aggregate Attributes [1]: [buf#10216469]
Results [3]: [shardId#10216300, worklistShardItemId#10216301L, buf#10216470]
(46) Exchange
Input [3]: [shardId#10216300, worklistShardItemId#10216301L, buf#10216470]
Arguments: hashpartitioning(shardId#10216300, worklistShardItemId#10216301L, 30), ENSURE_REQUIREMENTS, [plan_id=3020542]
(47) ObjectHashAggregate
Input [3]: [shardId#10216300, worklistShardItemId#10216301L, buf#10216470]
Keys [2]: [shardId#10216300, worklistShardItemId#10216301L]
Functions [1]: [collect_list(struct(qty, qty#10216302, kpis, kpis#10216305), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(qty, qty#10216302, kpis, kpis#10216305), 0, 0)#10216299]
Results [3]: [shardId#10216300, worklistShardItemId#10216301L, map_from_entries(collect_list(struct(qty, qty#10216302, kpis, kpis#10216305), 0, 0)#10216299) AS quantityKpis#10216294]
(48) Sort [codegen id : 14]
Input [3]: [shardId#10216300, worklistShardItemId#10216301L, quantityKpis#10216294]
Arguments: [shardId#10216300 ASC NULLS FIRST, worklistShardItemId#10216301L ASC NULLS FIRST], false, 0
(49) SortMergeJoin [codegen id : 15]
Left keys [2]: [shardId#10214802, worklistShardItemId#10215314L]
Right keys [2]: [shardId#10216300, worklistShardItemId#10216301L]
Join type: LeftOuter
Join condition: None
(50) Project [codegen id : 15]
Output [42]: [shardId#10214802, worklistShardItemId#10215314L, quantityAfterProdPlantOptimization#10215315, qty#10215316, orderProposalId#10215515L, originalReplenishmentRunId#10215557L, supplierGroup#10215517, supplier#10215518, supplyingPlant#10215522, productGroup#10215523, product#10215524, plant#10215519, subrange#10215521, orderDateTime#10215525, deliveryDateTime#10215520, availabilityDateTime#10215526, nextAvailabilityDateTime#10215527, constraintValues#10215548, constraintOperators#10215547, constraintLabels#10215546, logisticUnits#10215542, orderQuantityBaseUom#10215543, orderQuantityBaseUomUuid#10215544, splitIndicator#10215534L, netPriceAmount#10215551, netPriceCurrencyCode#10215552, netPriceQuantity#10215553, netPriceQuantityUom#10215554, netPriceQuantityUomUuid#10215555, sourceOfSupplyUuid#10215529, minimumOrderQuantity#10215545, orderProposalItemId#10215516, orderProposalItemGroupId#10215539, optimizationGroups#10215558, measurements#10215556, externalProductId#10215540, externalPlantId#10215541, previousOrderProposal#10215535L, isFallbackOrderOnly#10215532, prodLocSpecificKpis#10216278, channelStreamSpecificKpis#10216293, coalesce(quantityKpis#10216294, map(keys: [], values: [])) AS quantityKpis#10216306]
Input [44]: [shardId#10214802, worklistShardItemId#10215314L, quantityAfterProdPlantOptimization#10215315, qty#10215316, orderProposalId#10215515L, originalReplenishmentRunId#10215557L, supplierGroup#10215517, supplier#10215518, supplyingPlant#10215522, productGroup#10215523, product#10215524, plant#10215519, subrange#10215521, orderDateTime#10215525, deliveryDateTime#10215520, availabilityDateTime#10215526, nextAvailabilityDateTime#10215527, constraintValues#10215548, constraintOperators#10215547, constraintLabels#10215546, logisticUnits#10215542, orderQuantityBaseUom#10215543, orderQuantityBaseUomUuid#10215544, splitIndicator#10215534L, netPriceAmount#10215551, netPriceCurrencyCode#10215552, netPriceQuantity#10215553, netPriceQuantityUom#10215554, netPriceQuantityUomUuid#10215555, sourceOfSupplyUuid#10215529, minimumOrderQuantity#10215545, orderProposalItemId#10215516, orderProposalItemGroupId#10215539, optimizationGroups#10215558, measurements#10215556, externalProductId#10215540, externalPlantId#10215541, previousOrderProposal#10215535L, isFallbackOrderOnly#10215532, prodLocSpecificKpis#10216278, channelStreamSpecificKpis#10216293, shardId#10216300, worklistShardItemId#10216301L, quantityKpis#10216294]
(51) Filter [codegen id : 1]
Input [2]: [quantityKpis#10216306, shardId#10214802]
Condition : ((isnotnull(shardId#10214802) AND (shardId#10214802 = 0_3_10000000540)) AND (size(quantityKpis#10216306, true) > 0))
(52) Project [codegen id : 1]
Output [1]: [quantityKpis#10216306]
Input [2]: [quantityKpis#10216306, shardId#10214802]
(53) Generate [codegen id : 1]
Input [1]: [quantityKpis#10216306]
Arguments: explode(quantityKpis#10216306), false, [orderQuantityInBaseUnit#10219915, kpis#10219916]
(54) Project [codegen id : 1]
Output: []
Input [2]: [orderQuantityInBaseUnit#10219915, kpis#10219916]
(55) CollectLimit
Input: []
Arguments: 1