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
Commit 1248881
Browse filesBrowse the repository at this point in the historyBrowse files
feat: allow Partitioning::Range to satisfy window Distribution::KeyPartitioned requirements (apache#23416)
## Which issue does this PR close?
- Closesapache#23289.
Rebased on main now that apache#23184 has merged. Overlaps with apache#23355, which
also opts the window execs into range satisfaction as part of its
PartitionedTopK work — happy to rebase whichever lands second.
## What changes are included in this PR?
In one commit:
* Opt `WindowAggExec` and `BoundedWindowAggExec` with partition keys
into range satisfaction via
`InputDistributionRequirements::allow_range_satisfaction_for_key_partitioning`,
mirroring `AggregateExec`. Compatible range-partitioned inputs then
satisfy the window key requirement without a hash repartition; subset
satisfaction and the hash fallback for incompatible keys come from the
existing satisfaction machinery. Windows without `PARTITION BY` keep
requiring a single partition.
## Are these changes tested?
Yes: new `slt` tests in `range_partitioning.slt` (exact and subset
reuse, rehash on incompatible keys, `subset_repartition_threshold` /
`preserve_file_partitions` / `target_partitions` behavior,
`WindowAggExec` via an unbounded frame, and no-`PARTITION BY`), plus
plan-shape tests in `enforce_distribution.rs` and acceptance/rejection
tests in `sanity_checker.rs`.
## Are there any user-facing changes?
No: only plan changes.
0 commit comments