RebalancePartitions Unary Logical Operator¶
RebalancePartitions is a unary logical operator that represents a REBALANCE hint in a logical query plan.
Creating Instance¶
RebalancePartitions takes the following to be created:
- Partition Expressions
- Child logical operator
RebalancePartitions is created when:
ResolveCoalesceHintslogical resolution rule is executed (to resolve aREBALANCEhint with Adaptive Query Execution enabled)
Partitioning¶
partitioning: Partitioning
partitioning is one of the following:
With no partition expressions, partitioning is RoundRobinPartitioning (with the numShufflePartitions). Otherwise, partitioning is a HashPartitioning (with the partition expressions and the numShufflePartitions).
partitioning is used when:
BasicOperatorsexecution planning strategy is executed (for aRebalancePartitionslogical operator)
Query Planning¶
RebalancePartitions logical operators are planned by BasicOperators execution planning strategy (to ShuffleExchangeExec physical operators).