-
Notifications
You must be signed in to change notification settings - Fork 873
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
Add support for decimal128
#9483
Conversation
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.
Approving ops-codeowner
file changes
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.
From the java side of things this looks good. I am still running through tests after the last upmerge, but they passed previously so I assume they will still. I'll post if I find any failure.
@revans2 Is there a simple fix for the |
Not super simple. If you want me to send you a patch I can, but because it is not blocking the merge I just figured you would merge yours in and then we would merge in #9485 shortly after. |
No patch necessary. We can just aim to merge one after the other. |
@revans2 and @codereport sounds like a good plan (merging this with Java not passing then getting #9485) in right after. |
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.
Epic undertaking, @codereport !
@codereport the style check has failed for one of the tests you added. |
Thanks! I had the fix locally but forgot to push it. |
This depends on #9483 There may be a few more changes coming to this, but it should be fairly complete
Resolves: #10031 Depends on #9483, #9986 Note: The CI for this PR is not going to pass until #9986 is admin-merged(Admin merge needed since #9986 requires this PR changes too). - [x] Introduced `Decimal128Dtype` and `Decimal128Column`. - [x] Enabled python side support for the above both. - [x] Enables complete support for `Decimal32Column` which is currently lacking. - [x] Enabled orc writer to use decimal128. - [x] Enabled parquet to read a decimal128 type. - [x] Enabled Scalar support for `Decimal128Dtype`. - [x] Covered all decimal types in `string` <-> `decimal` conversions. - [x] **Made `Decimal128Dtype` the default type while reading in a Decimal Series or Scalar. User can specify to choose a specific decimal type by passing a `dtype`.** (Breaking) - [x] **Fixed issues in the binop precision & scale calculation logic to correctly choose a decimal type.** (Breaking) - [x] Fixed type metadata handling issues seen across APIs while making changes. - [x] Added parametrizations for all missing `decimal32` tests. - [x] Added parametrizations for `decimal128` along with existing decimal type-specific tests. Authors: - GALI PREM SAGAR (https://github.com/galipremsagar) - Robert (Bobby) Evans (https://github.com/revans2) - Conor Hoekstra (https://github.com/codereport) Approvers: - Devavret Makkar (https://github.com/devavret) - Vyas Ramasubramani (https://github.com/vyasr) URL: #9533
Fixes #9597
Fixes #9565
Previously,
fixed_point
along withdecimal32
anddecimal64
were added to support DecimalType (see #3556 for a list of major and minor PRs). With support for__int128_t
now in CUDA 11.5, we can supportdecimal128.
This PR enablesdecimal128
.