aggregate fns to have grouped aggregate kernels for sum and count#8314
Open
onursatici wants to merge 4 commits into
Open
aggregate fns to have grouped aggregate kernels for sum and count#8314onursatici wants to merge 4 commits into
onursatici wants to merge 4 commits into
Conversation
4337366 to
4fd94bc
Compare
Signed-off-by: Onur Satici <onur@spiraldb.com>
joseph-isaacs
left a comment
Contributor
There was a problem hiding this comment.
This seems like a good idea
4fd94bc to
7b85f05
Compare
Merging this PR will improve performance by 73.54%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ❌ | Simulation | bitwise_not_vortex_buffer_mut[128] |
216.9 ns | 275.3 ns | -21.19% |
| ❌ | Simulation | bitwise_not_vortex_buffer_mut[1024] |
278.6 ns | 336.9 ns | -17.31% |
| ❌ | Simulation | chunked_varbinview_opt_canonical_into[(1000, 10)] |
191.4 µs | 226.8 µs | -15.6% |
| ❌ | Simulation | chunked_varbinview_opt_into_canonical[(1000, 10)] |
205.7 µs | 241.4 µs | -14.81% |
| ❌ | Simulation | bitwise_not_vortex_buffer_mut[2048] |
342.2 ns | 400.6 ns | -14.56% |
| ⚡ | Simulation | count_i32_clustered_nulls |
672.6 µs | 55.2 µs | ×12 |
| ⚡ | Simulation | sum_i32_clustered_nulls |
581.2 µs | 72.5 µs | ×8 |
| ⚡ | Simulation | sum_i32_nullable_all_valid |
350.4 µs | 74.2 µs | ×4.7 |
| ⚡ | Simulation | count_varbinview |
259.4 µs | 76.1 µs | ×3.4 |
| ⚡ | Simulation | chunked_bool_canonical_into[(1000, 10)] |
46.9 µs | 31.8 µs | +47.75% |
| ⚡ | Simulation | chunked_varbinview_canonical_into[(100, 100)] |
311.3 µs | 274.4 µs | +13.47% |
| ⚡ | Simulation | chunked_varbinview_into_canonical[(100, 100)] |
363.2 µs | 327.2 µs | +11% |
| ⚡ | Simulation | encode_varbin[(1000, 2)] |
177.1 µs | 160.3 µs | +10.51% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing os/grouped-agg (ef4ae99) with develop (068e1ad)
Signed-off-by: Onur Satici <onur@spiraldb.com>
Signed-off-by: Onur Satici <onur@spiraldb.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
aggregate functions to be able to do grouped aggregations before the fallback that slices group by group.
Implements count for all arrays and sum for primitives.
API Changes
Grouped aggregate kernels now receive a single
GroupedArrayenum, coveringListViewArrayandFixedSizeListArray, instead of exposing separate methods for each list representation