== 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#3398242, shardId#3394574]
Arguments: [quantityKpis#3398242, shardId#3394574], [isnotnull(shardId#3394574), (shardId#3394574 = 0_7_10000000532), (size(quantityKpis#3398242, true) > 0)]
(2) InMemoryRelation
Arguments: [shardId#3394574, worklistShardItemId#3395327L, quantityAfterProdPlantOptimization#3395328, qty#3395329, orderProposalId#3395775L, originalReplenishmentRunId#3395778L, supplierGroup#3395785, supplier#3395786, supplyingPlant#3395816, productGroup#3395817, product#3395788, plant#3395789, subrange#3395787, orderDateTime#3395793, deliveryDateTime#3395794, availabilityDateTime#3395795, nextAvailabilityDateTime#3395796, constraintValues#3395810, constraintOperators#3395808, constraintLabels#3395807, logisticUnits#3395812, orderQuantityBaseUom#3395798, orderQuantityBaseUomUuid#3395799, splitIndicator#3395780L, netPriceAmount#3395803, ... 17 more fields], StorageLevel(disk, memory, 2 replicas)
(3) InMemoryTableScan
Output [2]: [shardId#3394574, items#3394576]
Arguments: [shardId#3394574, items#3394576], [(size(items#3394576, true) > 0), isnotnull(items#3394576)]
(4) InMemoryRelation
Arguments: [shardId#3394574, orderProposalId#3394575L, items#3394576, optimizationGroups#3394577, isOptimal#3394578, optimizationInsights#3394580], StorageLevel(disk, memory, 2 replicas)
(5) InMemoryTableScan
Output [6]: [shardId#3394574, orderProposalId#3394575L, items#3394576, optimizationGroups#3394577, isOptimal#3394578, optimizationInsights#3394580]
Arguments: [shardId#3394574, orderProposalId#3394575L, items#3394576, optimizationGroups#3394577, isOptimal#3394578, optimizationInsights#3394580], [isnotnull(shardId#3394574), (shardId#3394574 = 0_7_10000000532)]
(6) InMemoryRelation
Arguments: [shardId#3394574, orderProposalId#3394575L, items#3394576, optimizationGroups#3394577, isOptimal#3394578, lastModified#3394579, optimizationInsights#3394580], StorageLevel(disk, memory, 2 replicas)
(7) Scan ExistingRDD [codegen id : 1]
Output [7]: [shardId#3394574, orderProposalId#3394575L, items#3394576, optimizationGroups#3394577, isOptimal#3394578, lastModified#3394579, optimizationInsights#3394580]
Arguments: [shardId#3394574, orderProposalId#3394575L, items#3394576, optimizationGroups#3394577, isOptimal#3394578, lastModified#3394579, optimizationInsights#3394580], MapPartitionsRDD[144316] at start at FileStorageAdapterImpl.java:596, ExistingRDD, UnknownPartitioning(0)
(8) Filter [codegen id : 1]
Input [7]: [shardId#3394574, orderProposalId#3394575L, items#3394576, optimizationGroups#3394577, isOptimal#3394578, lastModified#3394579, optimizationInsights#3394580]
Condition : (isnotnull(shardId#3394574) AND (shardId#3394574 = 0_7_10000000532))
(9) Filter [codegen id : 1]
Input [6]: [shardId#3394574, orderProposalId#3394575L, items#3394576, optimizationGroups#3394577, isOptimal#3394578, optimizationInsights#3394580]
Condition : (isnotnull(shardId#3394574) AND (shardId#3394574 = 0_7_10000000532))
(10) Filter [codegen id : 1]
Input [2]: [shardId#3394574, items#3394576]
Condition : ((size(items#3394576, true) > 0) AND isnotnull(items#3394576))
(11) Generate [codegen id : 1]
Input [2]: [shardId#3394574, items#3394576]
Arguments: explode(items#3394576), [shardId#3394574], false, [item#3395326]
(12) Project [codegen id : 1]
Output [4]: [shardId#3394574, item#3395326.worklistShardItemId AS worklistShardItemId#3395327L, item#3395326.quantityAfterProdPlantOptimization AS quantityAfterProdPlantOptimization#3395328, item#3395326.qty AS qty#3395329]
Input [2]: [shardId#3394574, item#3395326]
(13) Exchange
Input [4]: [shardId#3394574, worklistShardItemId#3395327L, quantityAfterProdPlantOptimization#3395328, qty#3395329]
Arguments: hashpartitioning(worklistShardItemId#3395327L, 30), ENSURE_REQUIREMENTS, [plan_id=979131]
(14) Sort [codegen id : 2]
Input [4]: [shardId#3394574, worklistShardItemId#3395327L, quantityAfterProdPlantOptimization#3395328, qty#3395329]
Arguments: [worklistShardItemId#3395327L ASC NULLS FIRST], false, 0
(15) Scan parquet
Output [38]: [orderProposalId#3395976L, orderProposalItemId#3395977, supplierGroup#3395978, supplier#3395979, plant#3395980, deliveryDateTime#3395981, subrange#3395982, supplyingPlant#3395983, productGroup#3395984, product#3395985, orderDateTime#3395986, availabilityDateTime#3395987, nextAvailabilityDateTime#3395988, sourceOfSupplyUuid#3395990, isFallbackOrderOnly#3395993, splitIndicator#3395995L, previousOrderProposal#3395996L, worklistShardItemId#3395999L, orderProposalItemGroupId#3396000, externalProductId#3396001, externalPlantId#3396002, logisticUnits#3396003, orderQuantityBaseUom#3396004, orderQuantityBaseUomUuid#3396005, minimumOrderQuantity#3396006, constraintLabels#3396007, constraintOperators#3396008, constraintValues#3396009, netPriceAmount#3396012, netPriceCurrencyCode#3396013, netPriceQuantity#3396014, netPriceQuantityUom#3396015, netPriceQuantityUomUuid#3396016, measurements#3396017, originalReplenishmentRunId#3396018L, optimizationGroups#3396019, shardId#3396020, sequenceId#3395998]
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/10000000532]
PartitionFilters: [isnotnull(shardId#3396020), isnotnull(sequenceId#3395998), (shardId#3396020 = 0_7_10000000532), (sequenceId#3395998 = 6)]
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#3395976L, orderProposalItemId#3395977, supplierGroup#3395978, supplier#3395979, plant#3395980, deliveryDateTime#3395981, subrange#3395982, supplyingPlant#3395983, productGroup#3395984, product#3395985, orderDateTime#3395986, availabilityDateTime#3395987, nextAvailabilityDateTime#3395988, sourceOfSupplyUuid#3395990, isFallbackOrderOnly#3395993, splitIndicator#3395995L, previousOrderProposal#3395996L, worklistShardItemId#3395999L, orderProposalItemGroupId#3396000, externalProductId#3396001, externalPlantId#3396002, logisticUnits#3396003, orderQuantityBaseUom#3396004, orderQuantityBaseUomUuid#3396005, minimumOrderQuantity#3396006, constraintLabels#3396007, constraintOperators#3396008, constraintValues#3396009, netPriceAmount#3396012, netPriceCurrencyCode#3396013, netPriceQuantity#3396014, netPriceQuantityUom#3396015, netPriceQuantityUomUuid#3396016, measurements#3396017, originalReplenishmentRunId#3396018L, optimizationGroups#3396019, shardId#3396020, sequenceId#3395998]
(17) Filter [codegen id : 3]
Input [38]: [orderProposalId#3395976L, orderProposalItemId#3395977, supplierGroup#3395978, supplier#3395979, plant#3395980, deliveryDateTime#3395981, subrange#3395982, supplyingPlant#3395983, productGroup#3395984, product#3395985, orderDateTime#3395986, availabilityDateTime#3395987, nextAvailabilityDateTime#3395988, sourceOfSupplyUuid#3395990, isFallbackOrderOnly#3395993, splitIndicator#3395995L, previousOrderProposal#3395996L, worklistShardItemId#3395999L, orderProposalItemGroupId#3396000, externalProductId#3396001, externalPlantId#3396002, logisticUnits#3396003, orderQuantityBaseUom#3396004, orderQuantityBaseUomUuid#3396005, minimumOrderQuantity#3396006, constraintLabels#3396007, constraintOperators#3396008, constraintValues#3396009, netPriceAmount#3396012, netPriceCurrencyCode#3396013, netPriceQuantity#3396014, netPriceQuantityUom#3396015, netPriceQuantityUomUuid#3396016, measurements#3396017, originalReplenishmentRunId#3396018L, optimizationGroups#3396019, shardId#3396020, sequenceId#3395998]
Condition : isnotnull(worklistShardItemId#3395999L)
(18) Project [codegen id : 3]
Output [36]: [orderProposalId#3395976L, orderProposalItemId#3395977, supplierGroup#3395978, supplier#3395979, plant#3395980, deliveryDateTime#3395981, subrange#3395982, supplyingPlant#3395983, productGroup#3395984, product#3395985, orderDateTime#3395986, availabilityDateTime#3395987, nextAvailabilityDateTime#3395988, sourceOfSupplyUuid#3395990, isFallbackOrderOnly#3395993, splitIndicator#3395995L, previousOrderProposal#3395996L, worklistShardItemId#3395999L, orderProposalItemGroupId#3396000, externalProductId#3396001, externalPlantId#3396002, logisticUnits#3396003, orderQuantityBaseUom#3396004, orderQuantityBaseUomUuid#3396005, minimumOrderQuantity#3396006, constraintLabels#3396007, constraintOperators#3396008, constraintValues#3396009, netPriceAmount#3396012, netPriceCurrencyCode#3396013, netPriceQuantity#3396014, netPriceQuantityUom#3396015, netPriceQuantityUomUuid#3396016, measurements#3396017, originalReplenishmentRunId#3396018L, optimizationGroups#3396019]
Input [38]: [orderProposalId#3395976L, orderProposalItemId#3395977, supplierGroup#3395978, supplier#3395979, plant#3395980, deliveryDateTime#3395981, subrange#3395982, supplyingPlant#3395983, productGroup#3395984, product#3395985, orderDateTime#3395986, availabilityDateTime#3395987, nextAvailabilityDateTime#3395988, sourceOfSupplyUuid#3395990, isFallbackOrderOnly#3395993, splitIndicator#3395995L, previousOrderProposal#3395996L, worklistShardItemId#3395999L, orderProposalItemGroupId#3396000, externalProductId#3396001, externalPlantId#3396002, logisticUnits#3396003, orderQuantityBaseUom#3396004, orderQuantityBaseUomUuid#3396005, minimumOrderQuantity#3396006, constraintLabels#3396007, constraintOperators#3396008, constraintValues#3396009, netPriceAmount#3396012, netPriceCurrencyCode#3396013, netPriceQuantity#3396014, netPriceQuantityUom#3396015, netPriceQuantityUomUuid#3396016, measurements#3396017, originalReplenishmentRunId#3396018L, optimizationGroups#3396019, shardId#3396020, sequenceId#3395998]
(19) Exchange
Input [36]: [orderProposalId#3395976L, orderProposalItemId#3395977, supplierGroup#3395978, supplier#3395979, plant#3395980, deliveryDateTime#3395981, subrange#3395982, supplyingPlant#3395983, productGroup#3395984, product#3395985, orderDateTime#3395986, availabilityDateTime#3395987, nextAvailabilityDateTime#3395988, sourceOfSupplyUuid#3395990, isFallbackOrderOnly#3395993, splitIndicator#3395995L, previousOrderProposal#3395996L, worklistShardItemId#3395999L, orderProposalItemGroupId#3396000, externalProductId#3396001, externalPlantId#3396002, logisticUnits#3396003, orderQuantityBaseUom#3396004, orderQuantityBaseUomUuid#3396005, minimumOrderQuantity#3396006, constraintLabels#3396007, constraintOperators#3396008, constraintValues#3396009, netPriceAmount#3396012, netPriceCurrencyCode#3396013, netPriceQuantity#3396014, netPriceQuantityUom#3396015, netPriceQuantityUomUuid#3396016, measurements#3396017, originalReplenishmentRunId#3396018L, optimizationGroups#3396019]
Arguments: hashpartitioning(worklistShardItemId#3395999L, 30), REPARTITION_BY_NUM, [plan_id=979141]
(20) Project [codegen id : 4]
Output [36]: [worklistShardItemId#3395999L, orderProposalId#3395976L, orderProposalItemId#3395977, orderProposalItemGroupId#3396000, originalReplenishmentRunId#3396018L, splitIndicator#3395995L, previousOrderProposal#3395996L, sourceOfSupplyUuid#3395990, supplierGroup#3395978, supplier#3395979, subrange#3395982, product#3395985, plant#3395980, orderDateTime#3395986, deliveryDateTime#3395981, availabilityDateTime#3395987, nextAvailabilityDateTime#3395988, isFallbackOrderOnly#3395993, orderQuantityBaseUom#3396004, orderQuantityBaseUomUuid#3396005, netPriceQuantity#3396014, netPriceQuantityUom#3396015, netPriceQuantityUomUuid#3396016, netPriceAmount#3396012, netPriceCurrencyCode#3396013, measurements#3396017, minimumOrderQuantity#3396006, constraintLabels#3396007, constraintOperators#3396008, constraintValues#3396009, logisticUnits#3396003, optimizationGroups#3396019, externalProductId#3396001, externalPlantId#3396002, supplyingPlant#3395983, productGroup#3395984]
Input [36]: [orderProposalId#3395976L, orderProposalItemId#3395977, supplierGroup#3395978, supplier#3395979, plant#3395980, deliveryDateTime#3395981, subrange#3395982, supplyingPlant#3395983, productGroup#3395984, product#3395985, orderDateTime#3395986, availabilityDateTime#3395987, nextAvailabilityDateTime#3395988, sourceOfSupplyUuid#3395990, isFallbackOrderOnly#3395993, splitIndicator#3395995L, previousOrderProposal#3395996L, worklistShardItemId#3395999L, orderProposalItemGroupId#3396000, externalProductId#3396001, externalPlantId#3396002, logisticUnits#3396003, orderQuantityBaseUom#3396004, orderQuantityBaseUomUuid#3396005, minimumOrderQuantity#3396006, constraintLabels#3396007, constraintOperators#3396008, constraintValues#3396009, netPriceAmount#3396012, netPriceCurrencyCode#3396013, netPriceQuantity#3396014, netPriceQuantityUom#3396015, netPriceQuantityUomUuid#3396016, measurements#3396017, originalReplenishmentRunId#3396018L, optimizationGroups#3396019]
(21) Sort [codegen id : 4]
Input [36]: [worklistShardItemId#3395999L, orderProposalId#3395976L, orderProposalItemId#3395977, orderProposalItemGroupId#3396000, originalReplenishmentRunId#3396018L, splitIndicator#3395995L, previousOrderProposal#3395996L, sourceOfSupplyUuid#3395990, supplierGroup#3395978, supplier#3395979, subrange#3395982, product#3395985, plant#3395980, orderDateTime#3395986, deliveryDateTime#3395981, availabilityDateTime#3395987, nextAvailabilityDateTime#3395988, isFallbackOrderOnly#3395993, orderQuantityBaseUom#3396004, orderQuantityBaseUomUuid#3396005, netPriceQuantity#3396014, netPriceQuantityUom#3396015, netPriceQuantityUomUuid#3396016, netPriceAmount#3396012, netPriceCurrencyCode#3396013, measurements#3396017, minimumOrderQuantity#3396006, constraintLabels#3396007, constraintOperators#3396008, constraintValues#3396009, logisticUnits#3396003, optimizationGroups#3396019, externalProductId#3396001, externalPlantId#3396002, supplyingPlant#3395983, productGroup#3395984]
Arguments: [worklistShardItemId#3395999L ASC NULLS FIRST], false, 0
(22) SortMergeJoin [codegen id : 5]
Left keys [1]: [worklistShardItemId#3395327L]
Right keys [1]: [worklistShardItemId#3395999L]
Join type: LeftOuter
Join condition: (shardId#3394574 = 0_7_10000000532)
(23) Project [codegen id : 5]
Output [39]: [shardId#3394574, worklistShardItemId#3395327L, quantityAfterProdPlantOptimization#3395328, qty#3395329, orderProposalId#3395976L, originalReplenishmentRunId#3396018L, supplierGroup#3395978, supplier#3395979, supplyingPlant#3395983, productGroup#3395984, product#3395985, plant#3395980, subrange#3395982, orderDateTime#3395986, deliveryDateTime#3395981, availabilityDateTime#3395987, nextAvailabilityDateTime#3395988, constraintValues#3396009, constraintOperators#3396008, constraintLabels#3396007, logisticUnits#3396003, orderQuantityBaseUom#3396004, orderQuantityBaseUomUuid#3396005, splitIndicator#3395995L, netPriceAmount#3396012, netPriceCurrencyCode#3396013, netPriceQuantity#3396014, netPriceQuantityUom#3396015, netPriceQuantityUomUuid#3396016, sourceOfSupplyUuid#3395990, minimumOrderQuantity#3396006, orderProposalItemId#3395977, orderProposalItemGroupId#3396000, optimizationGroups#3396019, measurements#3396017, externalProductId#3396001, externalPlantId#3396002, previousOrderProposal#3395996L, isFallbackOrderOnly#3395993]
Input [40]: [shardId#3394574, worklistShardItemId#3395327L, quantityAfterProdPlantOptimization#3395328, qty#3395329, worklistShardItemId#3395999L, orderProposalId#3395976L, orderProposalItemId#3395977, orderProposalItemGroupId#3396000, originalReplenishmentRunId#3396018L, splitIndicator#3395995L, previousOrderProposal#3395996L, sourceOfSupplyUuid#3395990, supplierGroup#3395978, supplier#3395979, subrange#3395982, product#3395985, plant#3395980, orderDateTime#3395986, deliveryDateTime#3395981, availabilityDateTime#3395987, nextAvailabilityDateTime#3395988, isFallbackOrderOnly#3395993, orderQuantityBaseUom#3396004, orderQuantityBaseUomUuid#3396005, netPriceQuantity#3396014, netPriceQuantityUom#3396015, netPriceQuantityUomUuid#3396016, netPriceAmount#3396012, netPriceCurrencyCode#3396013, measurements#3396017, minimumOrderQuantity#3396006, constraintLabels#3396007, constraintOperators#3396008, constraintValues#3396009, logisticUnits#3396003, optimizationGroups#3396019, externalProductId#3396001, externalPlantId#3396002, supplyingPlant#3395983, productGroup#3395984]
(24) Exchange
Input [39]: [shardId#3394574, worklistShardItemId#3395327L, quantityAfterProdPlantOptimization#3395328, qty#3395329, orderProposalId#3395976L, originalReplenishmentRunId#3396018L, supplierGroup#3395978, supplier#3395979, supplyingPlant#3395983, productGroup#3395984, product#3395985, plant#3395980, subrange#3395982, orderDateTime#3395986, deliveryDateTime#3395981, availabilityDateTime#3395987, nextAvailabilityDateTime#3395988, constraintValues#3396009, constraintOperators#3396008, constraintLabels#3396007, logisticUnits#3396003, orderQuantityBaseUom#3396004, orderQuantityBaseUomUuid#3396005, splitIndicator#3395995L, netPriceAmount#3396012, netPriceCurrencyCode#3396013, netPriceQuantity#3396014, netPriceQuantityUom#3396015, netPriceQuantityUomUuid#3396016, sourceOfSupplyUuid#3395990, minimumOrderQuantity#3396006, orderProposalItemId#3395977, orderProposalItemGroupId#3396000, optimizationGroups#3396019, measurements#3396017, externalProductId#3396001, externalPlantId#3396002, previousOrderProposal#3395996L, isFallbackOrderOnly#3395993]
Arguments: hashpartitioning(shardId#3394574, worklistShardItemId#3395327L, 30), ENSURE_REQUIREMENTS, [plan_id=979150]
(25) Sort [codegen id : 6]
Input [39]: [shardId#3394574, worklistShardItemId#3395327L, quantityAfterProdPlantOptimization#3395328, qty#3395329, orderProposalId#3395976L, originalReplenishmentRunId#3396018L, supplierGroup#3395978, supplier#3395979, supplyingPlant#3395983, productGroup#3395984, product#3395985, plant#3395980, subrange#3395982, orderDateTime#3395986, deliveryDateTime#3395981, availabilityDateTime#3395987, nextAvailabilityDateTime#3395988, constraintValues#3396009, constraintOperators#3396008, constraintLabels#3396007, logisticUnits#3396003, orderQuantityBaseUom#3396004, orderQuantityBaseUomUuid#3396005, splitIndicator#3395995L, netPriceAmount#3396012, netPriceCurrencyCode#3396013, netPriceQuantity#3396014, netPriceQuantityUom#3396015, netPriceQuantityUomUuid#3396016, sourceOfSupplyUuid#3395990, minimumOrderQuantity#3396006, orderProposalItemId#3395977, orderProposalItemGroupId#3396000, optimizationGroups#3396019, measurements#3396017, externalProductId#3396001, externalPlantId#3396002, previousOrderProposal#3395996L, isFallbackOrderOnly#3395993]
Arguments: [shardId#3394574 ASC NULLS FIRST, worklistShardItemId#3395327L ASC NULLS FIRST], false, 0
(26) Scan ExistingRDD [codegen id : 7]
Output [6]: [shardId#3398207, worklistShardItemId#3398208L, qty#3398209, demandChannel#3398210, demandStream#3398211, kpis#3398212]
Arguments: [shardId#3398207, worklistShardItemId#3398208L, qty#3398209, demandChannel#3398210, demandStream#3398211, kpis#3398212], MapPartitionsRDD[144530] at start at FileStorageAdapterImpl.java:596, ExistingRDD, UnknownPartitioning(0)
(27) Filter [codegen id : 7]
Input [6]: [shardId#3398207, worklistShardItemId#3398208L, qty#3398209, demandChannel#3398210, demandStream#3398211, kpis#3398212]
Condition : (((isnull(qty#3398209) AND isnull(demandChannel#3398210)) AND isnull(demandStream#3398211)) AND (isnotnull(shardId#3398207) AND isnotnull(worklistShardItemId#3398208L)))
(28) Project [codegen id : 7]
Output [3]: [shardId#3398207, worklistShardItemId#3398208L, coalesce(kpis#3398212, []) AS prodLocSpecificKpis#3398213]
Input [6]: [shardId#3398207, worklistShardItemId#3398208L, qty#3398209, demandChannel#3398210, demandStream#3398211, kpis#3398212]
(29) Exchange
Input [3]: [shardId#3398207, worklistShardItemId#3398208L, prodLocSpecificKpis#3398213]
Arguments: hashpartitioning(shardId#3398207, worklistShardItemId#3398208L, 30), ENSURE_REQUIREMENTS, [plan_id=979156]
(30) Sort [codegen id : 8]
Input [3]: [shardId#3398207, worklistShardItemId#3398208L, prodLocSpecificKpis#3398213]
Arguments: [shardId#3398207 ASC NULLS FIRST, worklistShardItemId#3398208L ASC NULLS FIRST], false, 0
(31) SortMergeJoin [codegen id : 9]
Left keys [2]: [shardId#3394574, worklistShardItemId#3395327L]
Right keys [2]: [shardId#3398207, worklistShardItemId#3398208L]
Join type: LeftOuter
Join condition: None
(32) Project [codegen id : 9]
Output [40]: [shardId#3394574, worklistShardItemId#3395327L, quantityAfterProdPlantOptimization#3395328, qty#3395329, orderProposalId#3395976L, originalReplenishmentRunId#3396018L, supplierGroup#3395978, supplier#3395979, supplyingPlant#3395983, productGroup#3395984, product#3395985, plant#3395980, subrange#3395982, orderDateTime#3395986, deliveryDateTime#3395981, availabilityDateTime#3395987, nextAvailabilityDateTime#3395988, constraintValues#3396009, constraintOperators#3396008, constraintLabels#3396007, logisticUnits#3396003, orderQuantityBaseUom#3396004, orderQuantityBaseUomUuid#3396005, splitIndicator#3395995L, netPriceAmount#3396012, netPriceCurrencyCode#3396013, netPriceQuantity#3396014, netPriceQuantityUom#3396015, netPriceQuantityUomUuid#3396016, sourceOfSupplyUuid#3395990, minimumOrderQuantity#3396006, orderProposalItemId#3395977, orderProposalItemGroupId#3396000, optimizationGroups#3396019, measurements#3396017, externalProductId#3396001, externalPlantId#3396002, previousOrderProposal#3395996L, isFallbackOrderOnly#3395993, coalesce(prodLocSpecificKpis#3398213, []) AS prodLocSpecificKpis#3398214]
Input [42]: [shardId#3394574, worklistShardItemId#3395327L, quantityAfterProdPlantOptimization#3395328, qty#3395329, orderProposalId#3395976L, originalReplenishmentRunId#3396018L, supplierGroup#3395978, supplier#3395979, supplyingPlant#3395983, productGroup#3395984, product#3395985, plant#3395980, subrange#3395982, orderDateTime#3395986, deliveryDateTime#3395981, availabilityDateTime#3395987, nextAvailabilityDateTime#3395988, constraintValues#3396009, constraintOperators#3396008, constraintLabels#3396007, logisticUnits#3396003, orderQuantityBaseUom#3396004, orderQuantityBaseUomUuid#3396005, splitIndicator#3395995L, netPriceAmount#3396012, netPriceCurrencyCode#3396013, netPriceQuantity#3396014, netPriceQuantityUom#3396015, netPriceQuantityUomUuid#3396016, sourceOfSupplyUuid#3395990, minimumOrderQuantity#3396006, orderProposalItemId#3395977, orderProposalItemGroupId#3396000, optimizationGroups#3396019, measurements#3396017, externalProductId#3396001, externalPlantId#3396002, previousOrderProposal#3395996L, isFallbackOrderOnly#3395993, shardId#3398207, worklistShardItemId#3398208L, prodLocSpecificKpis#3398213]
(33) Scan ExistingRDD [codegen id : 10]
Output [6]: [shardId#3398223, worklistShardItemId#3398224L, qty#3398225, demandChannel#3398226, demandStream#3398227, kpis#3398228]
Arguments: [shardId#3398223, worklistShardItemId#3398224L, qty#3398225, demandChannel#3398226, demandStream#3398227, kpis#3398228], MapPartitionsRDD[144530] at start at FileStorageAdapterImpl.java:596, ExistingRDD, UnknownPartitioning(0)
(34) Filter [codegen id : 10]
Input [6]: [shardId#3398223, worklistShardItemId#3398224L, qty#3398225, demandChannel#3398226, demandStream#3398227, kpis#3398228]
Condition : ((((isnull(qty#3398225) AND isnotnull(demandChannel#3398226)) AND isnotnull(demandStream#3398227)) AND (size(kpis#3398228, true) > 0)) AND (isnotnull(shardId#3398223) AND isnotnull(worklistShardItemId#3398224L)))
(35) Project [codegen id : 10]
Output [5]: [shardId#3398223, worklistShardItemId#3398224L, demandChannel#3398226, demandStream#3398227, kpis#3398228]
Input [6]: [shardId#3398223, worklistShardItemId#3398224L, qty#3398225, demandChannel#3398226, demandStream#3398227, kpis#3398228]
(36) ObjectHashAggregate
Input [5]: [shardId#3398223, worklistShardItemId#3398224L, demandChannel#3398226, demandStream#3398227, kpis#3398228]
Keys [2]: [shardId#3398223, worklistShardItemId#3398224L]
Functions [1]: [partial_collect_list(struct(demandChannel, demandChannel#3398226, demandStream, demandStream#3398227, kpis, kpis#3398228), 0, 0)]
Aggregate Attributes [1]: [buf#3398403]
Results [3]: [shardId#3398223, worklistShardItemId#3398224L, buf#3398404]
(37) Exchange
Input [3]: [shardId#3398223, worklistShardItemId#3398224L, buf#3398404]
Arguments: hashpartitioning(shardId#3398223, worklistShardItemId#3398224L, 30), ENSURE_REQUIREMENTS, [plan_id=979167]
(38) ObjectHashAggregate
Input [3]: [shardId#3398223, worklistShardItemId#3398224L, buf#3398404]
Keys [2]: [shardId#3398223, worklistShardItemId#3398224L]
Functions [1]: [collect_list(struct(demandChannel, demandChannel#3398226, demandStream, demandStream#3398227, kpis, kpis#3398228), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(demandChannel, demandChannel#3398226, demandStream, demandStream#3398227, kpis, kpis#3398228), 0, 0)#3398222]
Results [3]: [shardId#3398223, worklistShardItemId#3398224L, collect_list(struct(demandChannel, demandChannel#3398226, demandStream, demandStream#3398227, kpis, kpis#3398228), 0, 0)#3398222 AS channelStreamSpecificKpis#3398215]
(39) Sort [codegen id : 11]
Input [3]: [shardId#3398223, worklistShardItemId#3398224L, channelStreamSpecificKpis#3398215]
Arguments: [shardId#3398223 ASC NULLS FIRST, worklistShardItemId#3398224L ASC NULLS FIRST], false, 0
(40) SortMergeJoin [codegen id : 12]
Left keys [2]: [shardId#3394574, worklistShardItemId#3395327L]
Right keys [2]: [shardId#3398223, worklistShardItemId#3398224L]
Join type: LeftOuter
Join condition: None
(41) Project [codegen id : 12]
Output [41]: [shardId#3394574, worklistShardItemId#3395327L, quantityAfterProdPlantOptimization#3395328, qty#3395329, orderProposalId#3395976L, originalReplenishmentRunId#3396018L, supplierGroup#3395978, supplier#3395979, supplyingPlant#3395983, productGroup#3395984, product#3395985, plant#3395980, subrange#3395982, orderDateTime#3395986, deliveryDateTime#3395981, availabilityDateTime#3395987, nextAvailabilityDateTime#3395988, constraintValues#3396009, constraintOperators#3396008, constraintLabels#3396007, logisticUnits#3396003, orderQuantityBaseUom#3396004, orderQuantityBaseUomUuid#3396005, splitIndicator#3395995L, netPriceAmount#3396012, netPriceCurrencyCode#3396013, netPriceQuantity#3396014, netPriceQuantityUom#3396015, netPriceQuantityUomUuid#3396016, sourceOfSupplyUuid#3395990, minimumOrderQuantity#3396006, orderProposalItemId#3395977, orderProposalItemGroupId#3396000, optimizationGroups#3396019, measurements#3396017, externalProductId#3396001, externalPlantId#3396002, previousOrderProposal#3395996L, isFallbackOrderOnly#3395993, prodLocSpecificKpis#3398214, coalesce(channelStreamSpecificKpis#3398215, []) AS channelStreamSpecificKpis#3398229]
Input [43]: [shardId#3394574, worklistShardItemId#3395327L, quantityAfterProdPlantOptimization#3395328, qty#3395329, orderProposalId#3395976L, originalReplenishmentRunId#3396018L, supplierGroup#3395978, supplier#3395979, supplyingPlant#3395983, productGroup#3395984, product#3395985, plant#3395980, subrange#3395982, orderDateTime#3395986, deliveryDateTime#3395981, availabilityDateTime#3395987, nextAvailabilityDateTime#3395988, constraintValues#3396009, constraintOperators#3396008, constraintLabels#3396007, logisticUnits#3396003, orderQuantityBaseUom#3396004, orderQuantityBaseUomUuid#3396005, splitIndicator#3395995L, netPriceAmount#3396012, netPriceCurrencyCode#3396013, netPriceQuantity#3396014, netPriceQuantityUom#3396015, netPriceQuantityUomUuid#3396016, sourceOfSupplyUuid#3395990, minimumOrderQuantity#3396006, orderProposalItemId#3395977, orderProposalItemGroupId#3396000, optimizationGroups#3396019, measurements#3396017, externalProductId#3396001, externalPlantId#3396002, previousOrderProposal#3395996L, isFallbackOrderOnly#3395993, prodLocSpecificKpis#3398214, shardId#3398223, worklistShardItemId#3398224L, channelStreamSpecificKpis#3398215]
(42) Scan ExistingRDD [codegen id : 13]
Output [6]: [shardId#3398236, worklistShardItemId#3398237L, qty#3398238, demandChannel#3398239, demandStream#3398240, kpis#3398241]
Arguments: [shardId#3398236, worklistShardItemId#3398237L, qty#3398238, demandChannel#3398239, demandStream#3398240, kpis#3398241], MapPartitionsRDD[144530] at start at FileStorageAdapterImpl.java:596, ExistingRDD, UnknownPartitioning(0)
(43) Filter [codegen id : 13]
Input [6]: [shardId#3398236, worklistShardItemId#3398237L, qty#3398238, demandChannel#3398239, demandStream#3398240, kpis#3398241]
Condition : ((isnotnull(qty#3398238) AND isnotnull(kpis#3398241)) AND (isnotnull(shardId#3398236) AND isnotnull(worklistShardItemId#3398237L)))
(44) Project [codegen id : 13]
Output [4]: [shardId#3398236, worklistShardItemId#3398237L, qty#3398238, kpis#3398241]
Input [6]: [shardId#3398236, worklistShardItemId#3398237L, qty#3398238, demandChannel#3398239, demandStream#3398240, kpis#3398241]
(45) ObjectHashAggregate
Input [4]: [shardId#3398236, worklistShardItemId#3398237L, qty#3398238, kpis#3398241]
Keys [2]: [shardId#3398236, worklistShardItemId#3398237L]
Functions [1]: [partial_collect_list(struct(qty, qty#3398238, kpis, kpis#3398241), 0, 0)]
Aggregate Attributes [1]: [buf#3398405]
Results [3]: [shardId#3398236, worklistShardItemId#3398237L, buf#3398406]
(46) Exchange
Input [3]: [shardId#3398236, worklistShardItemId#3398237L, buf#3398406]
Arguments: hashpartitioning(shardId#3398236, worklistShardItemId#3398237L, 30), ENSURE_REQUIREMENTS, [plan_id=979179]
(47) ObjectHashAggregate
Input [3]: [shardId#3398236, worklistShardItemId#3398237L, buf#3398406]
Keys [2]: [shardId#3398236, worklistShardItemId#3398237L]
Functions [1]: [collect_list(struct(qty, qty#3398238, kpis, kpis#3398241), 0, 0)]
Aggregate Attributes [1]: [collect_list(struct(qty, qty#3398238, kpis, kpis#3398241), 0, 0)#3398235]
Results [3]: [shardId#3398236, worklistShardItemId#3398237L, map_from_entries(collect_list(struct(qty, qty#3398238, kpis, kpis#3398241), 0, 0)#3398235) AS quantityKpis#3398230]
(48) Sort [codegen id : 14]
Input [3]: [shardId#3398236, worklistShardItemId#3398237L, quantityKpis#3398230]
Arguments: [shardId#3398236 ASC NULLS FIRST, worklistShardItemId#3398237L ASC NULLS FIRST], false, 0
(49) SortMergeJoin [codegen id : 15]
Left keys [2]: [shardId#3394574, worklistShardItemId#3395327L]
Right keys [2]: [shardId#3398236, worklistShardItemId#3398237L]
Join type: LeftOuter
Join condition: None
(50) Project [codegen id : 15]
Output [42]: [shardId#3394574, worklistShardItemId#3395327L, quantityAfterProdPlantOptimization#3395328, qty#3395329, orderProposalId#3395976L, originalReplenishmentRunId#3396018L, supplierGroup#3395978, supplier#3395979, supplyingPlant#3395983, productGroup#3395984, product#3395985, plant#3395980, subrange#3395982, orderDateTime#3395986, deliveryDateTime#3395981, availabilityDateTime#3395987, nextAvailabilityDateTime#3395988, constraintValues#3396009, constraintOperators#3396008, constraintLabels#3396007, logisticUnits#3396003, orderQuantityBaseUom#3396004, orderQuantityBaseUomUuid#3396005, splitIndicator#3395995L, netPriceAmount#3396012, netPriceCurrencyCode#3396013, netPriceQuantity#3396014, netPriceQuantityUom#3396015, netPriceQuantityUomUuid#3396016, sourceOfSupplyUuid#3395990, minimumOrderQuantity#3396006, orderProposalItemId#3395977, orderProposalItemGroupId#3396000, optimizationGroups#3396019, measurements#3396017, externalProductId#3396001, externalPlantId#3396002, previousOrderProposal#3395996L, isFallbackOrderOnly#3395993, prodLocSpecificKpis#3398214, channelStreamSpecificKpis#3398229, coalesce(quantityKpis#3398230, map(keys: [], values: [])) AS quantityKpis#3398242]
Input [44]: [shardId#3394574, worklistShardItemId#3395327L, quantityAfterProdPlantOptimization#3395328, qty#3395329, orderProposalId#3395976L, originalReplenishmentRunId#3396018L, supplierGroup#3395978, supplier#3395979, supplyingPlant#3395983, productGroup#3395984, product#3395985, plant#3395980, subrange#3395982, orderDateTime#3395986, deliveryDateTime#3395981, availabilityDateTime#3395987, nextAvailabilityDateTime#3395988, constraintValues#3396009, constraintOperators#3396008, constraintLabels#3396007, logisticUnits#3396003, orderQuantityBaseUom#3396004, orderQuantityBaseUomUuid#3396005, splitIndicator#3395995L, netPriceAmount#3396012, netPriceCurrencyCode#3396013, netPriceQuantity#3396014, netPriceQuantityUom#3396015, netPriceQuantityUomUuid#3396016, sourceOfSupplyUuid#3395990, minimumOrderQuantity#3396006, orderProposalItemId#3395977, orderProposalItemGroupId#3396000, optimizationGroups#3396019, measurements#3396017, externalProductId#3396001, externalPlantId#3396002, previousOrderProposal#3395996L, isFallbackOrderOnly#3395993, prodLocSpecificKpis#3398214, channelStreamSpecificKpis#3398229, shardId#3398236, worklistShardItemId#3398237L, quantityKpis#3398230]
(51) Filter [codegen id : 1]
Input [2]: [quantityKpis#3398242, shardId#3394574]
Condition : ((isnotnull(shardId#3394574) AND (shardId#3394574 = 0_7_10000000532)) AND (size(quantityKpis#3398242, true) > 0))
(52) Project [codegen id : 1]
Output [1]: [quantityKpis#3398242]
Input [2]: [quantityKpis#3398242, shardId#3394574]
(53) Generate [codegen id : 1]
Input [1]: [quantityKpis#3398242]
Arguments: explode(quantityKpis#3398242), false, [orderQuantityInBaseUnit#3408350, kpis#3408351]
(54) Project [codegen id : 1]
Output: []
Input [2]: [orderQuantityInBaseUnit#3408350, kpis#3408351]
(55) CollectLimit
Input: []
Arguments: 1