Skip to content

bench: add benchmarks for first_value, last_value#21409

Open
theirix wants to merge 2 commits intoapache:mainfrom
theirix:bench-first_last
Open

bench: add benchmarks for first_value, last_value#21409
theirix wants to merge 2 commits intoapache:mainfrom
theirix:bench-first_last

Conversation

@theirix
Copy link
Copy Markdown
Contributor

@theirix theirix commented Apr 6, 2026

Which issue does this PR close?

Rationale for this change

Spin-off of #21383 to have a bench for First_Value, Last_Value available before a PR with logic change.

What changes are included in this PR?

  • Add benchmark for GroupsAccumulator. It's pretty complicated to test aggregates with grouping, since many operations are stateful, so I introduced end-to-end evaluate test (to actually test taking state) and convert_to_state (as in other benches)
  • A bench for a simple Accumulator

Are these changes tested?

  • Manual bench run

Are there any user-facing changes?

@github-actions github-actions bot added the functions Changes to functions implementation label Apr 6, 2026
@theirix theirix changed the title Add bench for first_last bench: add benchmarks for first_value, last_value Apr 6, 2026
@theirix theirix marked this pull request as ready for review April 6, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

functions Changes to functions implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant