haohuaijin opened a new pull request, #27820:
URL: https://github.com/apache/datafusion/pull/27820
## Which issue does this PR close?
- Part of #25220 (benchmark baseline for #26776).
## Rationale for this change
Existing benchmarks such as
`equivalence_properties::project/wide_struct_fields`, `sql_planner`, and
`parquet_query_sql` do not separately measure planning and execution time for
ordered Parquet integer projections with exact column statistics. Adding a
dedicated Criterion benchmark on `main` allows reproducible before/after
evaluation of integer-statistics ordering inference across improved, overflow,
bounded-integer wide projection, and no-statistics control workloads.
## What changes are included in this PR?
- Add `datafusion/core/benches/integer_statistics_ordering.rs` and register
it in `datafusion/core/Cargo.toml`.
- Separately benchmark physical planning
(`SessionState::create_physical_plan`) and execution (`collect`) on a
500,000-row sorted Parquet file (`target_partitions = 4`) across four workloads:
- `safe_arithmetic`: `SELECT a + 1 AS x FROM t ORDER BY x` (exact bounds
rule out overflow).
- `overflow_arithmetic`: `SELECT b + 1 AS x FROM t ORDER BY x` (exact
bounds allow overflow, sort cannot be eliminated).
- `bounded_wide_projection`: two-stage 34-column arithmetic projection
over bounded integer columns with `collect_statistics = true` and no sort
removed.
- `unchanged_no_stats_wide_projection`: the same two-stage wide projection
with `collect_statistics = false`.
## What is the testing strategy for this PR?
- `cargo fmt --all`
- `cargo clippy -p datafusion --bench integer_statistics_ordering
--all-features -- -D warnings`
- `cargo test -p datafusion --bench integer_statistics_ordering -- --test`
## Are there any user-facing changes?
No. This adds a new Criterion benchmark target only.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]