Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Groups accumulator primitive #177

Merged
merged 2 commits into from
Nov 26, 2024
Merged

Groups accumulator primitive #177

merged 2 commits into from
Nov 26, 2024

Conversation

srh
Copy link
Member

@srh srh commented Nov 26, 2024

Related: cube-js/arrow-rs#45 needs to be merged before this. Because Cargo.lock is not committed in this repo, no pointer update will be needed.

This adds PrimitiveGroupsAccumulator and makes the Sum GroupsAccumulator much faster by directly building a PrimitiveArray instead of using a Vec<ScalarValue>. This is based on upstream datafusion code. Note that NullState is also based on upstream datafusion code. Some of it is adapted, kind of awkwardly, to existing Arrow datatypes that are slightly different, in how they have offsets or lengths.

@srh
Copy link
Member Author

srh commented Nov 26, 2024

(Squashed the style changes together and force-pushed to get the github checks to rerun, now that the arrow-rs branch is merged.)

@srh srh force-pushed the groups-accumulator-primitive branch from 3c49011 to 594d1ff Compare November 26, 2024 20:46
@srh srh merged commit 64ae03e into cube Nov 26, 2024
11 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants