-
Notifications
You must be signed in to change notification settings - Fork 915
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] Scalar.astype is ill-defined #7835
Comments
I think there can be three scenarios when
Most of the time we'll obtain a numpy scalar and we can just use numpy casting to get the new scalar. But we'll need special handling for strings and decimals. |
This issue has been labeled |
This issue has been labeled |
What is the expected behavior of
Scalar.astype
?During implementing #7182, I realized
cudf.Scalar.astype
's behavior is not well-defined. Since cudf Scalar has a host-side and a device-side, which oneastype
should operate on and what is the expected behavior? In addition, device side scalar is not really operable since libcudf does not cast scalars types. How to resolve for the discrepancy?cc @kkraus14 @brandon-b-miller
The text was updated successfully, but these errors were encountered: