RebalancePartitions Unary Logical Operator¶
RebalancePartitions is a unary logical operator that represents a
REBALANCE hint in a logical query plan.
RebalancePartitions takes the following to be created:
- Partition Expressions
- Child logical operator
RebalancePartitions is created when:
ResolveCoalesceHintslogical resolution rule is executed (to resolve a
REBALANCEhint with Adaptive Query Execution enabled)
partitioning is one of the following:
With no partition expressions,
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 a
RebalancePartitions logical operators are planned by BasicOperators execution planning strategy (to ShuffleExchangeExec physical operators).