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.
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
fixed_point
+cudf::binary_operation
API Changes #7435fixed_point
+cudf::binary_operation
API Changes #7435Changes from 31 commits
d07c35f
0f528de
223fe40
f8ec02b
e0bf2c6
2476eab
ba38c80
f1a62b3
c0769f1
65d071f
0c8b7e0
83070e8
4860f22
aa2b5fe
e76979b
0f9a043
9388748
4f85dd4
fada90b
7517f73
64c3f40
3d325f8
5063738
055bf1a
ff1926f
d90b69b
f86f720
ff540c3
98f4411
8178320
c638707
efe92a3
a1e3887
440bf52
43c2def
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
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.
Would it make sense for the
Decimal64Dtype
constructor to defaultprecision
to 18?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.
So we can avoid the magic number
18
all over our code?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.
It helps for hooking into libcudf APIS, so as long as it doesn't cause issues in the Python code - sounds like a decent idea to me :)
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.
@kkraus14 any objections?
18
being the max precision the type can support. Note that this will deviate from PyArrow which requires the user to specify a precision explicitly.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.
I made the changes locally and it cleans up the code nicely. Will wait on @kkraus14 before I push
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.
@codereport can we make
MAX_PRECISION
a class attribute and use that here instead?In
dtypes.py
:Here:
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.
Pushed the changes. Turns out we already had
MAX_PRECISION
🤦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.
I'm not seeing these changes, did you push them?
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.
@codereport instead of hardcoding 18 here we should use the dtypes
MAX_PRECISION
attribute that we definedThere 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.
🤦 sry, I changed 1 occurrence of 18, missed the 2nd. pushed now.