-
Notifications
You must be signed in to change notification settings - Fork 908
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
[BUG] cudf::ast Module Fails Implicit Cast from Decimal to Double Due to Recent Explicit Conversion Requirement (PR #15438) #16023
Comments
@aocsa Thank you for the issue report! @pmattione-nvidia Would you be able to take a look at this? I'm happy to show you around the AST codebase if you would like. |
Fix decimal -> float cast in ast code that was missed during the earlier code refactoring for making the cast explicit. This closes [issue 16023](#16023) Authors: - Paul Mattione (https://github.com/pmattione-nvidia) Approvers: - Muhammad Haseeb (https://github.com/mhaseeb123) - Bradley Dice (https://github.com/bdice) URL: #16038
I realized that we missed adding a test case for this in #16038. cc: @pmattione-nvidia |
Could this fix be considered for inclusion in a 24.06 hotfix release? |
Add test for AST cast-to-float64 Resolves #16023 Authors: - Paul Mattione (https://github.com/pmattione-nvidia) Approvers: - Vyas Ramasubramani (https://github.com/vyasr) - Bradley Dice (https://github.com/bdice) URL: #16045
Yup, we are currently discussing what will be in our hotfix and the fixes for this issue are on the list. |
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
Add test for AST cast-to-float64 Resolves rapidsai#16023 Authors: - Paul Mattione (https://github.com/pmattione-nvidia) Approvers: - Vyas Ramasubramani (https://github.com/vyasr) - Bradley Dice (https://github.com/bdice) URL: rapidsai#16045
Describe the bug
A recent pull request (PR) #15438 introduced a breaking change requiring that Floating <--> Fixed-Point conversions must be called explicitly, thereby disallowing implicit casts from decimal to double. Consequently, the cudf::ast module, which still employs implicit casting, is affected.
While cuDF version 24.06 has incorporated these changes into various cuDF functions, the necessary updates to the cudf::ast module were missed. This oversight results in the failure of implicit casts from decimal to double within the cudf::ast module, as highlighted in the following code:
cudf/cpp/include/cudf/ast/detail/operators.hpp
Line 825 in 3cb3df3
Steps/Code to reproduce bug
This unit test results in an exception:
C++ exception with description "CUDF failure at:/opt/mambaforge/conda-bld/libcudf-ext_1717805640036/work/cpp/include/cudf/ast/detail/operators.hpp:1063: Invalid unary operation." thrown in the test body.
Expected behavior
This test is expected to pass as it functions correctly in cuDF version 24.04.
Environment: conda
Method of cuDF install: source code
v24.06.00 branch release
The text was updated successfully, but these errors were encountered: