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
Is your feature request related to a problem or challenge?
#23184 lets compatible range-partitioned inputs satisfy inner partitioned hash joins without repartitioning. Right-side partitioned equi joins still use the repartition path even when both inputs are already co-partitioned by the join keys.
The compatible range inputs are already co-partitioned by partition index. The optimizer should preserve that layout instead of inserting hash repartitions for the right join.
Describe the solution you'd like
Extend InputDistributionRequirements::co_partitioned(...) to right-side partitioned equi hash joins where execution remains partition-local.
Covered join types:
Right
RightSemi
RightAnti
RightMark
Acceptance criteria
Compatible range/range inputs avoid hash repartitioning for the covered join types.
Incompatible split points, partition counts, sort options, or key expressions still trigger repartitioning.
Related:
Is your feature request related to a problem or challenge?
#23184 lets compatible range-partitioned inputs satisfy inner partitioned hash joins without repartitioning. Right-side partitioned equi joins still use the repartition path even when both inputs are already co-partitioned by the join keys.
Example
The compatible range inputs are already co-partitioned by partition index. The optimizer should preserve that layout instead of inserting hash repartitions for the right join.
Describe the solution you'd like
Extend
InputDistributionRequirements::co_partitioned(...)to right-side partitioned equi hash joins where execution remains partition-local.Covered join types:
RightRightSemiRightAntiRightMarkAcceptance criteria
RightMarktests cover null-related marker behavior.Additional context