You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Preserve Partitioning::Range output partitioning through joins #23450
Is your feature request related to a problem or challenge?
#23184 lets partitioned joins preserve compatible range-partitioned inputs, but join output currently degrades to non-range partitioning. Downstream operators then may insert avoidable hash repartitions after a range co-partitioned join.
The join output should preserve Partitioning::Range when the range key survives the join output. The aggregate above the join should not need an additional hash repartition.
Describe the solution you'd like
Teach join property calculation to preserve or rewrite Partitioning::Range when it is correct for the join output.
Acceptance criteria
Preserve range output only when the output still contains the range key expressions with correct column remapping.
Handle projection, swapped joins, and join semantics conservatively.
Fall back to UnknownPartitioning when range properties cannot be proven.
Add SLT or optimizer tests for nested joins and join-to-aggregate plans.
Activity
EdsonPetry commentedon Jul 10, 2026
take
fix: preserve range partitioning through joins (apache#23584)
fix: preserve range partitioning through joins (apache#23584)
fix: preserve range partitioning through joins (apache#23584)
fix: preserve range partitioning through joins (apache#23584)