== Physical Plan ==
AdaptiveSparkPlan (30)
+- == Final Plan ==
ResultQueryStage (2), Statistics(sizeInBytes=8.0 EiB)
+- EmptyRelation (1)
+- LogicalQueryStage (unknown)
+- == Initial Plan ==
HashAggregate (29)
+- Exchange (28)
+- HashAggregate (27)
+- Project (26)
+- Filter (25)
+- InMemoryTableScan (3)
+- InMemoryRelation (4)
+- AdaptiveSparkPlan (24)
+- == Final Plan ==
ResultQueryStage (22)
+- * Project (21)
+- TableCacheQueryStage (20), Statistics(sizeInBytes=15.5 MiB)
+- InMemoryTableScan (5)
+- InMemoryRelation (6)
+- AdaptiveSparkPlan (19)
+- == Final Plan ==
ResultQueryStage (14)
+- * Project (13)
+- ShuffleQueryStage (12), Statistics(sizeInBytes=154.3 MiB, rowCount=1.19E+5)
+- Exchange (11)
+- * Project (10)
+- * Filter (9)
+- * ColumnarToRow (8)
+- Scan parquet (7)
+- == Initial Plan ==
Project (18)
+- Exchange (17)
+- Project (16)
+- Filter (15)
+- Scan parquet (7)
+- == Initial Plan ==
Project (23)
+- InMemoryTableScan (5)
+- InMemoryRelation (6)
+- AdaptiveSparkPlan (19)
+- == Final Plan ==
ResultQueryStage (14)
+- * Project (13)
+- ShuffleQueryStage (12), Statistics(sizeInBytes=154.3 MiB, rowCount=1.19E+5)
+- Exchange (11)
+- * Project (10)
+- * Filter (9)
+- * ColumnarToRow (8)
+- Scan parquet (7)
+- == Initial Plan ==
Project (18)
+- Exchange (17)
+- Project (16)
+- Filter (15)
+- Scan parquet (7)
(1) EmptyRelation
Output [1]: [shardId#3530498]
Arguments: [plan_id=1012943]
(2) ResultQueryStage
Output [1]: [shardId#3530498]
Arguments: 2
(3) InMemoryTableScan
Output [2]: [shardId#3530498, version#3534039]
Arguments: [shardId#3530498, version#3534039], [(version#3534039 > 0)]
(4) InMemoryRelation
Arguments: [shardId#3530498, worklistShardItemId#3530499L, product#3530513, plant#3530514, periodStart#3534040, periodEnd#3534041, version#3534039, qty#3534042], StorageLevel(disk, memory, 2 replicas)
(5) InMemoryTableScan
Output [6]: [availabilityDateTime#3160026, nextAvailabilityDateTime#3160027, plant#3160020, product#3160019, shardId#3160004, worklistShardItemId#3160005L]
Arguments: [availabilityDateTime#3160026, nextAvailabilityDateTime#3160027, plant#3160020, product#3160019, shardId#3160004, worklistShardItemId#3160005L]
(6) InMemoryRelation
Arguments: [shardId#3160004, worklistShardItemId#3160005L, orderProposalId#3160006L, orderProposalItemId#3160007, orderProposalItemGroupId#3160008, originalReplenishmentRunId#3160009L, orderProposalHorizonGroupingId#3160010L, splitIndicator#3160011L, previousOrderProposal#3160012L, clusterId#3160013L, sequenceId#3160014L, sourceOfSupplyUuid#3160015, supplierGroup#3160016, supplier#3160017, subrange#3160018, product#3160019, plant#3160020, purchasingOrg#3160021, purchasingGroup#3160022, mrpController#3160023, orderDateTime#3160024, deliveryDateTime#3160025, availabilityDateTime#3160026, nextAvailabilityDateTime#3160027, isFallbackOrderOnly#3160028, ... 20 more fields], StorageLevel(disk, memory, 2 replicas)
(7) Scan parquet
Output [45]: [orderProposalId#3161208L, orderProposalItemId#3161209, supplierGroup#3161210, supplier#3161211, plant#3161212, deliveryDateTime#3161213, subrange#3161214, supplyingPlant#3161215, productGroup#3161216, product#3161217, orderDateTime#3161218, availabilityDateTime#3161219, nextAvailabilityDateTime#3161220, mrpController#3161221, sourceOfSupplyUuid#3161222, purchasingOrg#3161223, purchasingGroup#3161224, isFallbackOrderOnly#3161225, orderProposalHorizonGroupingId#3161226L, splitIndicator#3161227L, previousOrderProposal#3161228L, clusterId#3161229L, worklistShardItemId#3161231L, orderProposalItemGroupId#3161232, externalProductId#3161233, externalPlantId#3161234, logisticUnits#3161235, orderQuantityBaseUom#3161236, orderQuantityBaseUomUuid#3161237, minimumOrderQuantity#3161238, constraintLabels#3161239, constraintOperators#3161240, constraintValues#3161241, constraintRanks#3161242, constraintIsActive#3161243, netPriceAmount#3161244, netPriceCurrencyCode#3161245, netPriceQuantity#3161246, netPriceQuantityUom#3161247, netPriceQuantityUomUuid#3161248, measurements#3161249, originalReplenishmentRunId#3161250L, optimizationGroups#3161251, shardId#3161252, sequenceId#3161230]
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#3161252), isnotnull(sequenceId#3161230), (shardId#3161252 = 0_3_10000000532), (sequenceId#3161230 = 2)]
PushedFilters: [IsNotNull(availabilityDateTime), IsNotNull(nextAvailabilityDateTime)]
ReadSchema: struct<orderProposalId:bigint,orderProposalItemId:string,supplierGroup:string,supplier:string,plant:string,deliveryDateTime:timestamp,subrange:string,supplyingPlant:string,productGroup:string,product:string,orderDateTime:timestamp,availabilityDateTime:timestamp,nextAvailabilityDateTime:timestamp,mrpController:string,sourceOfSupplyUuid:string,purchasingOrg:string,purchasingGroup:string,isFallbackOrderOnly:boolean,orderProposalHorizonGroupingId:bigint,splitIndicator:bigint,previousOrderProposal:bigint,clusterId:bigint,worklistShardItemId:bigint,orderProposalItemGroupId:string,externalProductId:string,externalPlantId:string,logisticUnits:array<struct<uom:string,uomUuid:string,numerator:int,denominator:int,isOrderUnit:boolean,isPreferred:boolean>>,orderQuantityBaseUom:string,orderQuantityBaseUomUuid:string,minimumOrderQuantity:double,constraintLabels:array<string>,constraintOperators:array<string>,constraintValues:array<double>,constraintRanks:array<int>,constraintIsActive:array<boolean>,netPriceAmount:double,netPriceCurrencyCode:string,netPriceQuantity:double,netPriceQuantityUom:string,netPriceQuantityUomUuid:string,measurements:array<struct<value:double,dimensionType:int,dimensionCode:string,dimensionCodeUuid:string,isoCode:string>>,originalReplenishmentRunId:bigint,optimizationGroups:array<string>>
(8) ColumnarToRow [codegen id : 1]
Input [45]: [orderProposalId#3161208L, orderProposalItemId#3161209, supplierGroup#3161210, supplier#3161211, plant#3161212, deliveryDateTime#3161213, subrange#3161214, supplyingPlant#3161215, productGroup#3161216, product#3161217, orderDateTime#3161218, availabilityDateTime#3161219, nextAvailabilityDateTime#3161220, mrpController#3161221, sourceOfSupplyUuid#3161222, purchasingOrg#3161223, purchasingGroup#3161224, isFallbackOrderOnly#3161225, orderProposalHorizonGroupingId#3161226L, splitIndicator#3161227L, previousOrderProposal#3161228L, clusterId#3161229L, worklistShardItemId#3161231L, orderProposalItemGroupId#3161232, externalProductId#3161233, externalPlantId#3161234, logisticUnits#3161235, orderQuantityBaseUom#3161236, orderQuantityBaseUomUuid#3161237, minimumOrderQuantity#3161238, constraintLabels#3161239, constraintOperators#3161240, constraintValues#3161241, constraintRanks#3161242, constraintIsActive#3161243, netPriceAmount#3161244, netPriceCurrencyCode#3161245, netPriceQuantity#3161246, netPriceQuantityUom#3161247, netPriceQuantityUomUuid#3161248, measurements#3161249, originalReplenishmentRunId#3161250L, optimizationGroups#3161251, shardId#3161252, sequenceId#3161230]
(9) Filter [codegen id : 1]
Input [45]: [orderProposalId#3161208L, orderProposalItemId#3161209, supplierGroup#3161210, supplier#3161211, plant#3161212, deliveryDateTime#3161213, subrange#3161214, supplyingPlant#3161215, productGroup#3161216, product#3161217, orderDateTime#3161218, availabilityDateTime#3161219, nextAvailabilityDateTime#3161220, mrpController#3161221, sourceOfSupplyUuid#3161222, purchasingOrg#3161223, purchasingGroup#3161224, isFallbackOrderOnly#3161225, orderProposalHorizonGroupingId#3161226L, splitIndicator#3161227L, previousOrderProposal#3161228L, clusterId#3161229L, worklistShardItemId#3161231L, orderProposalItemGroupId#3161232, externalProductId#3161233, externalPlantId#3161234, logisticUnits#3161235, orderQuantityBaseUom#3161236, orderQuantityBaseUomUuid#3161237, minimumOrderQuantity#3161238, constraintLabels#3161239, constraintOperators#3161240, constraintValues#3161241, constraintRanks#3161242, constraintIsActive#3161243, netPriceAmount#3161244, netPriceCurrencyCode#3161245, netPriceQuantity#3161246, netPriceQuantityUom#3161247, netPriceQuantityUomUuid#3161248, measurements#3161249, originalReplenishmentRunId#3161250L, optimizationGroups#3161251, shardId#3161252, sequenceId#3161230]
Condition : ((isnotnull(availabilityDateTime#3161219) AND isnotnull(nextAvailabilityDateTime#3161220)) AND (nextAvailabilityDateTime#3161220 > availabilityDateTime#3161219))
(10) Project [codegen id : 1]
Output [44]: [orderProposalId#3161208L, orderProposalItemId#3161209, supplierGroup#3161210, supplier#3161211, plant#3161212, deliveryDateTime#3161213, subrange#3161214, supplyingPlant#3161215, productGroup#3161216, product#3161217, orderDateTime#3161218, availabilityDateTime#3161219, nextAvailabilityDateTime#3161220, mrpController#3161221, sourceOfSupplyUuid#3161222, purchasingOrg#3161223, purchasingGroup#3161224, isFallbackOrderOnly#3161225, orderProposalHorizonGroupingId#3161226L, splitIndicator#3161227L, previousOrderProposal#3161228L, clusterId#3161229L, sequenceId#3161230, worklistShardItemId#3161231L, orderProposalItemGroupId#3161232, externalProductId#3161233, externalPlantId#3161234, logisticUnits#3161235, orderQuantityBaseUom#3161236, orderQuantityBaseUomUuid#3161237, minimumOrderQuantity#3161238, constraintLabels#3161239, constraintOperators#3161240, constraintValues#3161241, constraintRanks#3161242, constraintIsActive#3161243, netPriceAmount#3161244, netPriceCurrencyCode#3161245, netPriceQuantity#3161246, netPriceQuantityUom#3161247, netPriceQuantityUomUuid#3161248, measurements#3161249, originalReplenishmentRunId#3161250L, optimizationGroups#3161251]
Input [45]: [orderProposalId#3161208L, orderProposalItemId#3161209, supplierGroup#3161210, supplier#3161211, plant#3161212, deliveryDateTime#3161213, subrange#3161214, supplyingPlant#3161215, productGroup#3161216, product#3161217, orderDateTime#3161218, availabilityDateTime#3161219, nextAvailabilityDateTime#3161220, mrpController#3161221, sourceOfSupplyUuid#3161222, purchasingOrg#3161223, purchasingGroup#3161224, isFallbackOrderOnly#3161225, orderProposalHorizonGroupingId#3161226L, splitIndicator#3161227L, previousOrderProposal#3161228L, clusterId#3161229L, worklistShardItemId#3161231L, orderProposalItemGroupId#3161232, externalProductId#3161233, externalPlantId#3161234, logisticUnits#3161235, orderQuantityBaseUom#3161236, orderQuantityBaseUomUuid#3161237, minimumOrderQuantity#3161238, constraintLabels#3161239, constraintOperators#3161240, constraintValues#3161241, constraintRanks#3161242, constraintIsActive#3161243, netPriceAmount#3161244, netPriceCurrencyCode#3161245, netPriceQuantity#3161246, netPriceQuantityUom#3161247, netPriceQuantityUomUuid#3161248, measurements#3161249, originalReplenishmentRunId#3161250L, optimizationGroups#3161251, shardId#3161252, sequenceId#3161230]
(11) Exchange
Input [44]: [orderProposalId#3161208L, orderProposalItemId#3161209, supplierGroup#3161210, supplier#3161211, plant#3161212, deliveryDateTime#3161213, subrange#3161214, supplyingPlant#3161215, productGroup#3161216, product#3161217, orderDateTime#3161218, availabilityDateTime#3161219, nextAvailabilityDateTime#3161220, mrpController#3161221, sourceOfSupplyUuid#3161222, purchasingOrg#3161223, purchasingGroup#3161224, isFallbackOrderOnly#3161225, orderProposalHorizonGroupingId#3161226L, splitIndicator#3161227L, previousOrderProposal#3161228L, clusterId#3161229L, sequenceId#3161230, worklistShardItemId#3161231L, orderProposalItemGroupId#3161232, externalProductId#3161233, externalPlantId#3161234, logisticUnits#3161235, orderQuantityBaseUom#3161236, orderQuantityBaseUomUuid#3161237, minimumOrderQuantity#3161238, constraintLabels#3161239, constraintOperators#3161240, constraintValues#3161241, constraintRanks#3161242, constraintIsActive#3161243, netPriceAmount#3161244, netPriceCurrencyCode#3161245, netPriceQuantity#3161246, netPriceQuantityUom#3161247, netPriceQuantityUomUuid#3161248, measurements#3161249, originalReplenishmentRunId#3161250L, optimizationGroups#3161251]
Arguments: hashpartitioning(worklistShardItemId#3161231L, 37), REPARTITION_BY_NUM, [plan_id=916431]
(12) ShuffleQueryStage
Output [44]: [orderProposalId#3161208L, orderProposalItemId#3161209, supplierGroup#3161210, supplier#3161211, plant#3161212, deliveryDateTime#3161213, subrange#3161214, supplyingPlant#3161215, productGroup#3161216, product#3161217, orderDateTime#3161218, availabilityDateTime#3161219, nextAvailabilityDateTime#3161220, mrpController#3161221, sourceOfSupplyUuid#3161222, purchasingOrg#3161223, purchasingGroup#3161224, isFallbackOrderOnly#3161225, orderProposalHorizonGroupingId#3161226L, splitIndicator#3161227L, previousOrderProposal#3161228L, clusterId#3161229L, sequenceId#3161230, worklistShardItemId#3161231L, orderProposalItemGroupId#3161232, externalProductId#3161233, externalPlantId#3161234, logisticUnits#3161235, orderQuantityBaseUom#3161236, orderQuantityBaseUomUuid#3161237, minimumOrderQuantity#3161238, constraintLabels#3161239, constraintOperators#3161240, constraintValues#3161241, constraintRanks#3161242, constraintIsActive#3161243, netPriceAmount#3161244, netPriceCurrencyCode#3161245, netPriceQuantity#3161246, netPriceQuantityUom#3161247, netPriceQuantityUomUuid#3161248, measurements#3161249, originalReplenishmentRunId#3161250L, optimizationGroups#3161251]
Arguments: 0
(13) Project [codegen id : 2]
Output [45]: [0_3_10000000532 AS shardId#3160004, worklistShardItemId#3161231L, orderProposalId#3161208L, orderProposalItemId#3161209, orderProposalItemGroupId#3161232, originalReplenishmentRunId#3161250L, orderProposalHorizonGroupingId#3161226L, splitIndicator#3161227L, previousOrderProposal#3161228L, clusterId#3161229L, cast(sequenceId#3161230 as bigint) AS sequenceId#3160014L, sourceOfSupplyUuid#3161222, supplierGroup#3161210, supplier#3161211, subrange#3161214, product#3161217, plant#3161212, purchasingOrg#3161223, purchasingGroup#3161224, mrpController#3161221, orderDateTime#3161218, deliveryDateTime#3161213, availabilityDateTime#3161219, nextAvailabilityDateTime#3161220, isFallbackOrderOnly#3161225, orderQuantityBaseUom#3161236, orderQuantityBaseUomUuid#3161237, netPriceQuantity#3161246, netPriceQuantityUom#3161247, netPriceQuantityUomUuid#3161248, netPriceAmount#3161244, netPriceCurrencyCode#3161245, measurements#3161249, minimumOrderQuantity#3161238, constraintLabels#3161239, constraintOperators#3161240, constraintRanks#3161242, constraintValues#3161241, constraintIsActive#3161243, logisticUnits#3161235, optimizationGroups#3161251, externalProductId#3161233, externalPlantId#3161234, supplyingPlant#3161215, productGroup#3161216]
Input [44]: [orderProposalId#3161208L, orderProposalItemId#3161209, supplierGroup#3161210, supplier#3161211, plant#3161212, deliveryDateTime#3161213, subrange#3161214, supplyingPlant#3161215, productGroup#3161216, product#3161217, orderDateTime#3161218, availabilityDateTime#3161219, nextAvailabilityDateTime#3161220, mrpController#3161221, sourceOfSupplyUuid#3161222, purchasingOrg#3161223, purchasingGroup#3161224, isFallbackOrderOnly#3161225, orderProposalHorizonGroupingId#3161226L, splitIndicator#3161227L, previousOrderProposal#3161228L, clusterId#3161229L, sequenceId#3161230, worklistShardItemId#3161231L, orderProposalItemGroupId#3161232, externalProductId#3161233, externalPlantId#3161234, logisticUnits#3161235, orderQuantityBaseUom#3161236, orderQuantityBaseUomUuid#3161237, minimumOrderQuantity#3161238, constraintLabels#3161239, constraintOperators#3161240, constraintValues#3161241, constraintRanks#3161242, constraintIsActive#3161243, netPriceAmount#3161244, netPriceCurrencyCode#3161245, netPriceQuantity#3161246, netPriceQuantityUom#3161247, netPriceQuantityUomUuid#3161248, measurements#3161249, originalReplenishmentRunId#3161250L, optimizationGroups#3161251]
(14) ResultQueryStage
Output [45]: [shardId#3160004, worklistShardItemId#3161231L, orderProposalId#3161208L, orderProposalItemId#3161209, orderProposalItemGroupId#3161232, originalReplenishmentRunId#3161250L, orderProposalHorizonGroupingId#3161226L, splitIndicator#3161227L, previousOrderProposal#3161228L, clusterId#3161229L, sequenceId#3160014L, sourceOfSupplyUuid#3161222, supplierGroup#3161210, supplier#3161211, subrange#3161214, product#3161217, plant#3161212, purchasingOrg#3161223, purchasingGroup#3161224, mrpController#3161221, orderDateTime#3161218, deliveryDateTime#3161213, availabilityDateTime#3161219, nextAvailabilityDateTime#3161220, isFallbackOrderOnly#3161225, orderQuantityBaseUom#3161236, orderQuantityBaseUomUuid#3161237, netPriceQuantity#3161246, netPriceQuantityUom#3161247, netPriceQuantityUomUuid#3161248, netPriceAmount#3161244, netPriceCurrencyCode#3161245, measurements#3161249, minimumOrderQuantity#3161238, constraintLabels#3161239, constraintOperators#3161240, constraintRanks#3161242, constraintValues#3161241, constraintIsActive#3161243, logisticUnits#3161235, optimizationGroups#3161251, externalProductId#3161233, externalPlantId#3161234, supplyingPlant#3161215, productGroup#3161216]
Arguments: 1
(15) Filter
Input [45]: [orderProposalId#3161208L, orderProposalItemId#3161209, supplierGroup#3161210, supplier#3161211, plant#3161212, deliveryDateTime#3161213, subrange#3161214, supplyingPlant#3161215, productGroup#3161216, product#3161217, orderDateTime#3161218, availabilityDateTime#3161219, nextAvailabilityDateTime#3161220, mrpController#3161221, sourceOfSupplyUuid#3161222, purchasingOrg#3161223, purchasingGroup#3161224, isFallbackOrderOnly#3161225, orderProposalHorizonGroupingId#3161226L, splitIndicator#3161227L, previousOrderProposal#3161228L, clusterId#3161229L, worklistShardItemId#3161231L, orderProposalItemGroupId#3161232, externalProductId#3161233, externalPlantId#3161234, logisticUnits#3161235, orderQuantityBaseUom#3161236, orderQuantityBaseUomUuid#3161237, minimumOrderQuantity#3161238, constraintLabels#3161239, constraintOperators#3161240, constraintValues#3161241, constraintRanks#3161242, constraintIsActive#3161243, netPriceAmount#3161244, netPriceCurrencyCode#3161245, netPriceQuantity#3161246, netPriceQuantityUom#3161247, netPriceQuantityUomUuid#3161248, measurements#3161249, originalReplenishmentRunId#3161250L, optimizationGroups#3161251, shardId#3161252, sequenceId#3161230]
Condition : ((isnotnull(availabilityDateTime#3161219) AND isnotnull(nextAvailabilityDateTime#3161220)) AND (nextAvailabilityDateTime#3161220 > availabilityDateTime#3161219))
(16) Project
Output [44]: [orderProposalId#3161208L, orderProposalItemId#3161209, supplierGroup#3161210, supplier#3161211, plant#3161212, deliveryDateTime#3161213, subrange#3161214, supplyingPlant#3161215, productGroup#3161216, product#3161217, orderDateTime#3161218, availabilityDateTime#3161219, nextAvailabilityDateTime#3161220, mrpController#3161221, sourceOfSupplyUuid#3161222, purchasingOrg#3161223, purchasingGroup#3161224, isFallbackOrderOnly#3161225, orderProposalHorizonGroupingId#3161226L, splitIndicator#3161227L, previousOrderProposal#3161228L, clusterId#3161229L, sequenceId#3161230, worklistShardItemId#3161231L, orderProposalItemGroupId#3161232, externalProductId#3161233, externalPlantId#3161234, logisticUnits#3161235, orderQuantityBaseUom#3161236, orderQuantityBaseUomUuid#3161237, minimumOrderQuantity#3161238, constraintLabels#3161239, constraintOperators#3161240, constraintValues#3161241, constraintRanks#3161242, constraintIsActive#3161243, netPriceAmount#3161244, netPriceCurrencyCode#3161245, netPriceQuantity#3161246, netPriceQuantityUom#3161247, netPriceQuantityUomUuid#3161248, measurements#3161249, originalReplenishmentRunId#3161250L, optimizationGroups#3161251]
Input [45]: [orderProposalId#3161208L, orderProposalItemId#3161209, supplierGroup#3161210, supplier#3161211, plant#3161212, deliveryDateTime#3161213, subrange#3161214, supplyingPlant#3161215, productGroup#3161216, product#3161217, orderDateTime#3161218, availabilityDateTime#3161219, nextAvailabilityDateTime#3161220, mrpController#3161221, sourceOfSupplyUuid#3161222, purchasingOrg#3161223, purchasingGroup#3161224, isFallbackOrderOnly#3161225, orderProposalHorizonGroupingId#3161226L, splitIndicator#3161227L, previousOrderProposal#3161228L, clusterId#3161229L, worklistShardItemId#3161231L, orderProposalItemGroupId#3161232, externalProductId#3161233, externalPlantId#3161234, logisticUnits#3161235, orderQuantityBaseUom#3161236, orderQuantityBaseUomUuid#3161237, minimumOrderQuantity#3161238, constraintLabels#3161239, constraintOperators#3161240, constraintValues#3161241, constraintRanks#3161242, constraintIsActive#3161243, netPriceAmount#3161244, netPriceCurrencyCode#3161245, netPriceQuantity#3161246, netPriceQuantityUom#3161247, netPriceQuantityUomUuid#3161248, measurements#3161249, originalReplenishmentRunId#3161250L, optimizationGroups#3161251, shardId#3161252, sequenceId#3161230]
(17) Exchange
Input [44]: [orderProposalId#3161208L, orderProposalItemId#3161209, supplierGroup#3161210, supplier#3161211, plant#3161212, deliveryDateTime#3161213, subrange#3161214, supplyingPlant#3161215, productGroup#3161216, product#3161217, orderDateTime#3161218, availabilityDateTime#3161219, nextAvailabilityDateTime#3161220, mrpController#3161221, sourceOfSupplyUuid#3161222, purchasingOrg#3161223, purchasingGroup#3161224, isFallbackOrderOnly#3161225, orderProposalHorizonGroupingId#3161226L, splitIndicator#3161227L, previousOrderProposal#3161228L, clusterId#3161229L, sequenceId#3161230, worklistShardItemId#3161231L, orderProposalItemGroupId#3161232, externalProductId#3161233, externalPlantId#3161234, logisticUnits#3161235, orderQuantityBaseUom#3161236, orderQuantityBaseUomUuid#3161237, minimumOrderQuantity#3161238, constraintLabels#3161239, constraintOperators#3161240, constraintValues#3161241, constraintRanks#3161242, constraintIsActive#3161243, netPriceAmount#3161244, netPriceCurrencyCode#3161245, netPriceQuantity#3161246, netPriceQuantityUom#3161247, netPriceQuantityUomUuid#3161248, measurements#3161249, originalReplenishmentRunId#3161250L, optimizationGroups#3161251]
Arguments: hashpartitioning(worklistShardItemId#3161231L, 37), REPARTITION_BY_NUM, [plan_id=916403]
(18) Project
Output [45]: [0_3_10000000532 AS shardId#3160004, worklistShardItemId#3161231L, orderProposalId#3161208L, orderProposalItemId#3161209, orderProposalItemGroupId#3161232, originalReplenishmentRunId#3161250L, orderProposalHorizonGroupingId#3161226L, splitIndicator#3161227L, previousOrderProposal#3161228L, clusterId#3161229L, cast(sequenceId#3161230 as bigint) AS sequenceId#3160014L, sourceOfSupplyUuid#3161222, supplierGroup#3161210, supplier#3161211, subrange#3161214, product#3161217, plant#3161212, purchasingOrg#3161223, purchasingGroup#3161224, mrpController#3161221, orderDateTime#3161218, deliveryDateTime#3161213, availabilityDateTime#3161219, nextAvailabilityDateTime#3161220, isFallbackOrderOnly#3161225, orderQuantityBaseUom#3161236, orderQuantityBaseUomUuid#3161237, netPriceQuantity#3161246, netPriceQuantityUom#3161247, netPriceQuantityUomUuid#3161248, netPriceAmount#3161244, netPriceCurrencyCode#3161245, measurements#3161249, minimumOrderQuantity#3161238, constraintLabels#3161239, constraintOperators#3161240, constraintRanks#3161242, constraintValues#3161241, constraintIsActive#3161243, logisticUnits#3161235, optimizationGroups#3161251, externalProductId#3161233, externalPlantId#3161234, supplyingPlant#3161215, productGroup#3161216]
Input [44]: [orderProposalId#3161208L, orderProposalItemId#3161209, supplierGroup#3161210, supplier#3161211, plant#3161212, deliveryDateTime#3161213, subrange#3161214, supplyingPlant#3161215, productGroup#3161216, product#3161217, orderDateTime#3161218, availabilityDateTime#3161219, nextAvailabilityDateTime#3161220, mrpController#3161221, sourceOfSupplyUuid#3161222, purchasingOrg#3161223, purchasingGroup#3161224, isFallbackOrderOnly#3161225, orderProposalHorizonGroupingId#3161226L, splitIndicator#3161227L, previousOrderProposal#3161228L, clusterId#3161229L, sequenceId#3161230, worklistShardItemId#3161231L, orderProposalItemGroupId#3161232, externalProductId#3161233, externalPlantId#3161234, logisticUnits#3161235, orderQuantityBaseUom#3161236, orderQuantityBaseUomUuid#3161237, minimumOrderQuantity#3161238, constraintLabels#3161239, constraintOperators#3161240, constraintValues#3161241, constraintRanks#3161242, constraintIsActive#3161243, netPriceAmount#3161244, netPriceCurrencyCode#3161245, netPriceQuantity#3161246, netPriceQuantityUom#3161247, netPriceQuantityUomUuid#3161248, measurements#3161249, originalReplenishmentRunId#3161250L, optimizationGroups#3161251]
(19) AdaptiveSparkPlan
Output [45]: [shardId#3160004, worklistShardItemId#3161231L, orderProposalId#3161208L, orderProposalItemId#3161209, orderProposalItemGroupId#3161232, originalReplenishmentRunId#3161250L, orderProposalHorizonGroupingId#3161226L, splitIndicator#3161227L, previousOrderProposal#3161228L, clusterId#3161229L, sequenceId#3160014L, sourceOfSupplyUuid#3161222, supplierGroup#3161210, supplier#3161211, subrange#3161214, product#3161217, plant#3161212, purchasingOrg#3161223, purchasingGroup#3161224, mrpController#3161221, orderDateTime#3161218, deliveryDateTime#3161213, availabilityDateTime#3161219, nextAvailabilityDateTime#3161220, isFallbackOrderOnly#3161225, orderQuantityBaseUom#3161236, orderQuantityBaseUomUuid#3161237, netPriceQuantity#3161246, netPriceQuantityUom#3161247, netPriceQuantityUomUuid#3161248, netPriceAmount#3161244, netPriceCurrencyCode#3161245, measurements#3161249, minimumOrderQuantity#3161238, constraintLabels#3161239, constraintOperators#3161240, constraintRanks#3161242, constraintValues#3161241, constraintIsActive#3161243, logisticUnits#3161235, optimizationGroups#3161251, externalProductId#3161233, externalPlantId#3161234, supplyingPlant#3161215, productGroup#3161216]
Arguments: isFinalPlan=true
(20) TableCacheQueryStage
Output [6]: [availabilityDateTime#3160026, nextAvailabilityDateTime#3160027, plant#3160020, product#3160019, shardId#3160004, worklistShardItemId#3160005L]
Arguments: 0
(21) Project [codegen id : 1]
Output [8]: [shardId#3160004, worklistShardItemId#3160005L, product#3160019, plant#3160020, availabilityDateTime#3160026 AS periodStart#3168380, nextAvailabilityDateTime#3160027 AS periodEnd#3168381, 0 AS version#3168379, null AS qty#3168382]
Input [6]: [availabilityDateTime#3160026, nextAvailabilityDateTime#3160027, plant#3160020, product#3160019, shardId#3160004, worklistShardItemId#3160005L]
(22) ResultQueryStage
Output [8]: [shardId#3160004, worklistShardItemId#3160005L, product#3160019, plant#3160020, periodStart#3168380, periodEnd#3168381, version#3168379, qty#3168382]
Arguments: 1
(23) Project
Output [8]: [shardId#3160004, worklistShardItemId#3160005L, product#3160019, plant#3160020, availabilityDateTime#3160026 AS periodStart#3168380, nextAvailabilityDateTime#3160027 AS periodEnd#3168381, 0 AS version#3168379, null AS qty#3168382]
Input [6]: [availabilityDateTime#3160026, nextAvailabilityDateTime#3160027, plant#3160020, product#3160019, shardId#3160004, worklistShardItemId#3160005L]
(24) AdaptiveSparkPlan
Output [8]: [shardId#3160004, worklistShardItemId#3160005L, product#3160019, plant#3160020, periodStart#3168380, periodEnd#3168381, version#3168379, qty#3168382]
Arguments: isFinalPlan=true
(25) Filter
Input [2]: [shardId#3530498, version#3534039]
Condition : (version#3534039 > 0)
(26) Project
Output [1]: [shardId#3530498]
Input [2]: [shardId#3530498, version#3534039]
(27) HashAggregate
Input [1]: [shardId#3530498]
Keys [1]: [shardId#3530498]
Functions: []
Aggregate Attributes: []
Results [1]: [shardId#3530498]
(28) Exchange
Input [1]: [shardId#3530498]
Arguments: hashpartitioning(shardId#3530498, 37), ENSURE_REQUIREMENTS, [plan_id=1012892]
(29) HashAggregate
Input [1]: [shardId#3530498]
Keys [1]: [shardId#3530498]
Functions: []
Aggregate Attributes: []
Results [1]: [shardId#3530498]
(30) AdaptiveSparkPlan
Output [1]: [shardId#3530498]
Arguments: isFinalPlan=true