-
Notifications
You must be signed in to change notification settings - Fork 4.2k
GH-35166: [C++][Compute] Increase precision of decimals in sum aggregates #44184
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
Merged
zanmato1984
merged 38 commits into
apache:main
from
khwilson:increase-precision-of-decimals
Jul 3, 2025
Merged
Changes from 34 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
b8f1d4b
Increase the precision of decimals during compute
khwilson 89f743d
migrate utility function to codegen
khwilson 2564dcc
fix else condition
khwilson 63340d7
improve casts
khwilson 8a6959b
linting
khwilson d98ad4a
fix _pointer_ in casts
khwilson 8c92b74
extract common code
khwilson cb6e0ed
continue simplifying code
khwilson f59a421
add doc and export
khwilson a426640
fix c++ tests
khwilson 094e7e4
linting and doc fixes
khwilson 1b45583
include hash aggregate sums
khwilson e87902e
fix more formatting
khwilson 7c0d8d0
fix hash aggregate test
khwilson 7c69607
update c++ docs on decimal aggregates
khwilson 8dd4c49
move change to hash_aggregate_numeric
khwilson 1b2eb85
Move type definition to the init and only keep for Sum
khwilson c4aa1c5
optionally promote a decimal in the hash aggregates
khwilson 42addcd
fix and remove decimal32/64
khwilson 4f50e27
lint
khwilson a27628a
fixes
khwilson 8f2b752
Small simplification wrt WidenDecimalToMaxPrecision
zanmato1984 41fafbf
add tests and fix docs
khwilson 08ac345
lint
khwilson ace7973
Make SFINAE check a virtual function
khwilson 6e0551e
Format
zanmato1984 8e3da1f
Update cpp/src/arrow/compute/kernels/aggregate_test.cc
khwilson bdc4dbf
Update docs/source/cpp/compute.rst
khwilson 55a2f46
remove extraneous template argument
khwilson 432c57d
format
khwilson be4a043
add overflow test
khwilson 7502951
fix merge conflict with main
khwilson 540fb19
update submodule
khwilson 5b666f8
slight doc modification
khwilson cc20e96
Update docs/source/cpp/compute.rst
zanmato1984 8a0acde
Use // to replace ///
zanmato1984 8d7e1b3
Refine bullet points for decimal promotion for sum in doc
zanmato1984 d97e8b2
Use // to replace ///
zanmato1984 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These comments might be unnecessary now?