Is your feature request related to a problem or challenge?
Part of #22395.
DataFusion can represent source-declared Partitioning::Range, but inner partitioned hash joins still require hash-partitioned inputs. This can add unnecessary hash repartitions even when both join inputs are already partitioned by compatible ranges on the join keys.
Describe the solution you'd like
Allow inner partitioned hash joins to accept inputs that are co-partitioned on their join keys, including compatible range-partitioned inputs.
- adds a key-based distribution requirement that can be satisfied by hash or range partitioning
- checks that both join sides can be paired by partition index
- keeps incompatible range bounds, mismatched hash counts, and non-inner joins on the existing hash repartition path
- keeps partitioned dynamic filters restricted to hash-compatible routing
Is your feature request related to a problem or challenge?
Part of #22395.
DataFusion can represent source-declared
Partitioning::Range, but inner partitioned hash joins still require hash-partitioned inputs. This can add unnecessary hash repartitions even when both join inputs are already partitioned by compatible ranges on the join keys.Describe the solution you'd like
Allow inner partitioned hash joins to accept inputs that are co-partitioned on their join keys, including compatible range-partitioned inputs.