-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[Variant] Support variant to Decimal32/64/128/256
#8552
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
alamb
merged 32 commits into
apache:main
from
liamzwbao:issue-8477-variant-to-arrow-decimal
Oct 15, 2025
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
f25b499
[Variant] Support variant to `Decimal32/64/128/256`
liamzwbao 7a32191
Simplify logic
liamzwbao 02d29de
Using macro to generalize
liamzwbao f498db5
Support i256 and Decimal256
liamzwbao 964e45a
Simplify decimal builders
liamzwbao 43d579d
Merge branch 'main' into issue-8477-variant-to-arrow-decimal
liamzwbao 6f39a2a
fmt
liamzwbao 8f0f53c
Add comment
liamzwbao d88fd7f
assert precision and scale in tests
liamzwbao 522b26a
Merge branch 'main' into issue-8477-variant-to-arrow-decimal
liamzwbao 9b6d0e1
address comments
liamzwbao 54237fe
add more overflow cases and valid cases that will overflow in current…
liamzwbao e0b18da
WIP
liamzwbao 1f19580
Refactor common logic
liamzwbao c163a91
Refactor common logic
liamzwbao 274a028
Refactor common logic
liamzwbao a7cdd33
Use rescale_decimal for variant decimal scaling
liamzwbao 94d60c0
Fix clippy
liamzwbao 338defe
Merge branch 'main' into issue-8477-variant-to-arrow-decimal
liamzwbao e1febf6
Address comments
liamzwbao 51648fd
Move rescale_decimal into variant-compute
liamzwbao a48bbf4
Revert changes in arrow-cast
liamzwbao cb2576c
Fix doc
liamzwbao 5ffab93
Merge branch 'main' into issue-8477-variant-to-arrow-decimal
liamzwbao ef62474
Return value instead of fn
liamzwbao 21a83ed
Merge branch 'main' into issue-8477-variant-to-arrow-decimal
liamzwbao 25e4aa9
Fix large scale reduction case
liamzwbao 539d73f
Reuse DecimalCast
liamzwbao dfe9960
Merge branch 'main' into issue-8477-variant-to-arrow-decimal
liamzwbao cfc8580
Use trait VariantDecimalType
liamzwbao 9ed0d7a
Add doc
liamzwbao 0567cb6
Refactor tests to use `into`
liamzwbao 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.
Uh oh!
There was an error while loading. Please reload this page.