-
Notifications
You must be signed in to change notification settings - Fork 902
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
[REVIEW] Enable typecasting between decimal and int #7691
Conversation
Codecov Report
@@ Coverage Diff @@
## branch-0.19 #7691 +/- ##
===============================================
+ Coverage 81.86% 82.52% +0.65%
===============================================
Files 101 101
Lines 16884 17447 +563
===============================================
+ Hits 13822 14398 +576
+ Misses 3062 3049 -13
Continue to review full report at Codecov.
|
This is a workaround, not a fix. I would recommend figuring out what's wrong with the |
result = libcudf.unary.cast(self, dtype) | ||
if isinstance(dtype, cudf.core.dtypes.Decimal64Dtype): | ||
result.dtype.precision = dtype.precision | ||
return result | ||
return libcudf.unary.cast(self, dtype) |
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.
Just a quick side note that this is needed in #7716
@gpucibot merge |
This enables type conversions between
decimal
types andint
types.Closes #7440