Skip to content

Add immutable finalized aggregate results - #10226

Closed
connortsui20 wants to merge 1 commit into
developfrom
ct/stats-aggregate-results
Closed

connortsui20 wants to merge 1 commit into
developfrom
ct/stats-aggregate-results

Conversation

@connortsui20

@connortsui20 connortsui20 commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Superseded by #10235, which groups this change with the related statistics work. The original commits and branch are preserved.

Original PR description

Tracking Issue: #10177

Summary

Stored statistics need a common representation keyed by the aggregate function and its options. Finalized answers must remain distinct from mergeable accumulator states: a sortedness boolean, for example, does not contain the boundary values needed to merge sorted batches.

Changes

Add immutable AggregateResults with lookup and iteration over exact results and bounds. Missing entries remain distinct from exact nulls, including overflow results. Construction checks scalar types and duplicate keys. This introduces the result representation for the migration while the existing array cache and footer APIs remain available.

Stack

Migration stack #10229, in review order: #10226 → #10227 → #10232 → #10235 → #10236 → #10252 → #10253 → #10257 → #10258 → #10259 → #10260 → #10261. Independent fixes: file Sum overflow #10228 and empty Constant aggregate states #10254.

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

Labels

changelog/feature A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant