Skip to content

Move aggregates out of vortex-array into vortex-aggregates - #10769

Open
robert3005 wants to merge 31 commits into
developfrom
rk/split-array-04-aggregates
Open

robert3005 wants to merge 31 commits into
developfrom
rk/split-array-04-aggregates

Conversation

@robert3005

@robert3005 robert3005 commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Move the built-in aggregate functions into vortex-aggregates so they can depend on the array framework without making vortex-array own their implementations. The new crate registers the built-ins with the session.

OpenAI Codex assisted with the PR update.

@robert3005
robert3005 added this pull request to stack #10770 October 24, 2026 12:37
@robert3005
robert3005 force-pushed the rk/split-array-04-aggregates branch from 350aebd to 4c3f491 Compare October 24, 2026 13:40
@robert3005
robert3005 force-pushed the rk/split-array-04-aggregates branch 2 times, most recently from d066dd6 to 87719b7 Compare October 25, 2026 06:42
@robert3005
robert3005 force-pushed the rk/split-array-04-aggregates branch from 87719b7 to b0ee3df Compare October 26, 2026 10:44
@robert3005
robert3005 force-pushed the rk/split-array-04-aggregates branch from b0ee3df to 83935e2 Compare October 26, 2026 11:25
@robert3005
robert3005 force-pushed the rk/split-array-04-aggregates branch 2 times, most recently from cc7fe74 to f39d5fe Compare November 9, 2026 03:36
@robert3005
robert3005 force-pushed the rk/split-array-04-aggregates branch from f39d5fe to 304b10d Compare November 9, 2026 12:13
@robert3005
robert3005 force-pushed the rk/split-array-04-aggregates branch from 304b10d to 72e1603 Compare November 9, 2026 12:46
@robert3005
robert3005 force-pushed the rk/split-array-04-aggregates branch from 72e1603 to a0c6714 Compare November 9, 2026 19:46
@robert3005
robert3005 force-pushed the rk/split-array-04-aggregates branch from a0c6714 to dfed159 Compare November 10, 2026 15:06
robert3005 and others added 7 commits December 1, 2026 16:25
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ps4mp7KF5c4p66aoSoXx5j
Signed-off-by: Robert Kruszewski <robert@spiraldb.com>
Signed-off-by: Robert Kruszewski <github@robertk.io>
Signed-off-by: Robert Kruszewski <github@robertk.io>
Register the built-in aggregates and kernels in benchmark sessions that exercise RunEnd aggregates, list_sum, DecimalByteParts/Widen aggregates, Sparse pushdown, and BtrBlocks compression statistics, and sync Cargo.lock for vortex-spatial.

Signed-off-by: Robert Kruszewski <github@robertk.io>
- Short-circuit DType::Null in is_sorted_impl and StatsSetRef::compute_stat for IsConstant, IsSorted, and IsStrictSorted, with regression tests
- Initialize vortex-aggregates in encoding consistency test sessions so slice-aggregate conformance checks run
- Fix vortex-expr test imports for NullCount/Sum and broken rustdoc link in vortex-aggregates

Signed-off-by: Will Manning <will@spiraldb.com>
Co-Authored-By: Will Manning <will@spiraldb.com>
…doctest

- Rename `vortex-aggregates/src/framework_tests` (along with `combined_tests` and `grouped_tests`) to `vortex-aggregates/src/tests`.
- Restore the `ExtensionStoragePushdown` doctest in `vortex-array/src/aggregate_fn/storage_pushdown.rs`.
- Remove `vortex-array/src/aggregate_fn/stat_aggregates.rs` and restore aggregate IDs, `IsSortedOptions`, `sum_decimal_dtype`, `has_nan_values`, and `UncompressedSizeInBytes`/`All*` checks to their home modules.

Signed-off-by: Robert Kruszewski <github@robertk.io>
- Cache bound stat aggregate functions in AggregateFnSession so compute_stat and integer_bounds do not serialize and deserialize protobuf options or re-allocate AggregateFnRef and AggregateDTypes on every uncached lookup.
- Add AggregateFnRef::aggregate to run single-array aggregations on the stack without boxing DynAccumulator, and avoid protobuf serialization in Stat::from_aggregate_fn for built-in option types.
- Count canonical host BoolArray validities directly in ArrayRef::valid_count while caching Stat::Sum, addressing the null_count_run_end and sparse_null_count benchmark regressions.
- Cover RunEnd and Widen in core_encodings_aggregate_consistency.

Signed-off-by: Robert Kruszewski <github@robertk.io>
@robert3005
robert3005 force-pushed the rk/split-array-04-aggregates branch from 2aa6011 to 6e8397b Compare December 1, 2026 16:39
…aggregates

Signed-off-by: Will Manning <will@spiraldb.com>
Co-Authored-By: Will Manning <will@spiraldb.com>

# Conflicts:
#	vortex-aggregates/src/is_constant/fixed_size_binary.rs
#	vortex-aggregates/src/is_constant/supported.rs
#	vortex-compressor/src/compressor/constant/mod.rs

@vortex-roborev-bot vortex-roborev-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line comments for the roborev review of ee1798b. The roborev PR comment has the full review.

Comment thread vortex-array/src/arrays/bool/bounds.rs Resolved
…aggregates

Signed-off-by: Will Manning <will@spiraldb.com>
Co-Authored-By: Will Manning <will@spiraldb.com>
Signed-off-by: Will Manning <will@spiraldb.com>
Co-Authored-By: Will Manning <will@spiraldb.com>
Signed-off-by: Will Manning <will@spiraldb.com>
Co-Authored-By: Will Manning <will@spiraldb.com>

@vortex-roborev-bot vortex-roborev-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line comments for the roborev review of af189f2. The roborev PR comment has the full review.

Comment thread vortex-aggregates/src/min/mod.rs Resolved
Comment thread vortex-array/src/arrays/bool/bounds.rs Resolved
Comment thread vortex-aggregates/src/min_max/mod.rs Resolved
…aggregates

Signed-off-by: Will Manning <will@spiraldb.com>
Co-Authored-By: Will Manning <will@spiraldb.com>

# Conflicts:
#	vortex-layout/src/layouts/zoned/writer.rs
…_min_max, MinMax golden proto test

Signed-off-by: Will Manning <will@spiraldb.com>
Co-Authored-By: Will Manning <will@spiraldb.com>

@vortex-roborev-bot vortex-roborev-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line comments for the roborev review of 280fa58. The roborev PR comment has the full review.

Comment thread vortex-array/src/stats/stat.rs Resolved
…eduplicate sum_decimal_dtype

Signed-off-by: Will Manning <will@spiraldb.com>
Co-Authored-By: Will Manning <will@spiraldb.com>
Signed-off-by: Will Manning <will@spiraldb.com>
Co-Authored-By: Will Manning <will@spiraldb.com>
…aggregates

Signed-off-by: Will Manning <will@spiraldb.com>
Co-Authored-By: Will Manning <will@spiraldb.com>

# Conflicts:
#	vortex-layout/src/layouts/constant.rs
Signed-off-by: Will Manning <will@spiraldb.com>
Co-Authored-By: Will Manning <will@spiraldb.com>

@vortex-roborev-bot vortex-roborev-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line comments for the roborev review of e010c2d. The roborev PR comment has the full review.

Signed-off-by: Will Manning <will@spiraldb.com>
Co-Authored-By: Will Manning <will@spiraldb.com>

@vortex-roborev-bot vortex-roborev-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line comments for the roborev review of 3ee5dd2. The roborev PR comment has the full review.

…gs plus sliced/filtered inputs

Signed-off-by: Will Manning <will@spiraldb.com>
Co-Authored-By: Will Manning <will@spiraldb.com>
…stat

Signed-off-by: Will Manning <will@spiraldb.com>
Co-Authored-By: Will Manning <will@spiraldb.com>

@vortex-roborev-bot vortex-roborev-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line comments for the roborev review of 0fe57cf. The roborev PR comment has the full review.

lwwmanning and others added 3 commits December 2, 2026 02:13
Signed-off-by: Will Manning <will@spiraldb.com>
Co-Authored-By: Will Manning <will@spiraldb.com>
Signed-off-by: Will Manning <will@spiraldb.com>
Co-Authored-By: Will Manning <will@spiraldb.com>
Signed-off-by: Will Manning <will@spiraldb.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/break A breaking API change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants