Skip to content

Centralize aggregate stat bridge#7931

Merged
gatesn merged 3 commits into
developfrom
ngates/aggregatefn-stat-bridge-cleanup
May 14, 2026
Merged

Centralize aggregate stat bridge#7931
gatesn merged 3 commits into
developfrom
ngates/aggregatefn-stat-bridge-cleanup

Conversation

@gatesn
Copy link
Copy Markdown
Contributor

@gatesn gatesn commented May 14, 2026

Summary

  • Replace AggregateFnVTable::try_partial_from_stats with a Stat-owned bridge: Stat::aggregate_fn and Stat::from_aggregate_fn.
  • Move exact stat consumption into Accumulator::accumulate so accumulator-based aggregate execution still skips kernel dispatch and decode when a matching exact stat exists.
  • Keep the small public entry-point stat checks in sum, nan_count, and uncompressed_size_in_bytes so cached stats also skip accumulator construction.
  • Remove vortex-array/src/stats/legacy.rs now that the mapping lives on Stat.

Checks

  • cargo test -p vortex-array stat_expr
  • ./scripts/public-api.sh
  • cargo clippy --all-targets --all-features

@gatesn gatesn added the changelog/chore A trivial change label May 14, 2026 — with ChatGPT Codex Connector
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented May 14, 2026

Merging this PR will not alter performance

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

✅ 1216 untouched benchmarks
⏩ 24 skipped benchmarks1


Comparing ngates/aggregatefn-stat-bridge-cleanup (b197676) with develop (8c5a0f1)

Open in CodSpeed

Footnotes

  1. 24 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@gatesn gatesn force-pushed the ngates/aggregatefn-stat-bridge-cleanup branch from 28050c0 to c86068c Compare May 14, 2026 20:20
@gatesn gatesn marked this pull request as ready for review May 14, 2026 20:21
@gatesn gatesn enabled auto-merge (squash) May 14, 2026 20:21
@gatesn gatesn force-pushed the ngates/aggregatefn-stat-bridge-cleanup branch from c86068c to 254f53d Compare May 14, 2026 20:36
@gatesn gatesn marked this pull request as draft May 14, 2026 20:36
auto-merge was automatically disabled May 14, 2026 20:36

Pull request was converted to draft

@gatesn gatesn force-pushed the ngates/aggregatefn-stat-bridge-cleanup branch from 254f53d to 952ca3d Compare May 14, 2026 20:38
@gatesn gatesn marked this pull request as ready for review May 14, 2026 20:39
@gatesn gatesn enabled auto-merge (squash) May 14, 2026 20:39
@gatesn gatesn requested a review from connortsui20 May 14, 2026 20:39
Signed-off-by: Nicholas Gates <nick@nickgates.com>
@gatesn gatesn force-pushed the ngates/aggregatefn-stat-bridge-cleanup branch from 952ca3d to 7b76045 Compare May 14, 2026 21:05
gatesn and others added 2 commits May 14, 2026 22:11
Part of #7707.

Base: #7931
Next: #7930

## Summary

- Add a `NullCount` aggregate wrapper and register it in the aggregate
function session.
- Bridge `Stat::NullCount` through the `Stat` aggregate-function mapping
introduced by #7931.
- Add stats expression constructors used by the current pruning/stat
expression path.

## Checks

- `cargo test -p vortex-array null_count`
- `cargo test -p vortex-array stat_expr`
- `./scripts/public-api.sh`
- `cargo clippy --all-targets --all-features`

Signed-off-by: Nicholas Gates <nick@nickgates.com>
This reverts commit 19e7315.

Signed-off-by: Nicholas Gates <nick@nickgates.com>
@gatesn gatesn merged commit a514cef into develop May 14, 2026
66 checks passed
@gatesn gatesn deleted the ngates/aggregatefn-stat-bridge-cleanup branch May 14, 2026 21:26
gatesn added a commit that referenced this pull request May 14, 2026
Part of #7707.

Replacement for #7929 after the accidental merge was reverted before
#7931 landed.

Base: `develop`
Next: #7930

## Summary

- Add a `NullCount` aggregate wrapper and register it in the aggregate
function session.
- Bridge `Stat::NullCount` through the `Stat` aggregate-function mapping
introduced by #7931.
- Add stats expression constructors used by the current pruning/stat
expression path.

## Checks

- `cargo test -p vortex-array null_count`
- `cargo test -p vortex-array stat_expr`
- `./scripts/public-api.sh`
- `cargo clippy --all-targets --all-features`

Signed-off-by: Nicholas Gates <nick@nickgates.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/chore A trivial change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants