-
Notifications
You must be signed in to change notification settings - Fork 901
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
Fix decimal -> float cast in ast code #16038
Fix decimal -> float cast in ast code #16038
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.
LGTM. Just curious if we can reuse or consolidate the convert_fixed_to_floating
at https://github.com/rapidsai/cudf/blob/branch-24.08/cpp/include/cudf/unary.hpp#L80 to avoid code duplication?
Yeah, that's what I wanted to do, but the code is relying on that decltype(static_cast(f)) to SFINAE-out would-be casts like string_view -> double that would otherwise cause compile-time errors. |
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.
One small improvement request that I forgot to mention.
Co-authored-by: Bradley Dice <bdice@bradleydice.com>
/merge |
Fix decimal -> float cast in ast code that was missed during the earlier code refactoring for making the cast explicit. This closes [issue 16023](rapidsai#16023) Authors: - Paul Mattione (https://github.com/pmattione-nvidia) Approvers: - Muhammad Haseeb (https://github.com/mhaseeb123) - Bradley Dice (https://github.com/bdice) URL: rapidsai#16038
Fix decimal -> float cast in ast code that was missed during the earlier code refactoring for making the cast explicit. This closes [issue 16023](rapidsai#16023) Authors: - Paul Mattione (https://github.com/pmattione-nvidia) Approvers: - Muhammad Haseeb (https://github.com/mhaseeb123) - Bradley Dice (https://github.com/bdice) URL: rapidsai#16038
Fix decimal -> float cast in ast code that was missed during the earlier code refactoring for making the cast explicit.
This closes issue 16023
Checklist