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:
ResolveCoalesceHints
logical resolution rule is executed (to resolve aREBALANCE
hint 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:
BasicOperators
execution planning strategy is executed (for aRebalancePartitions
logical operator)
Query Planning¶
RebalancePartitions
logical operators are planned by BasicOperators execution planning strategy (to ShuffleExchangeExec physical operators).