(Go: >> BACK << -|- >> HOME <<)

Skip to content
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

Fall back when casting a timestamp to numeric in cudf-polars #16232

Conversation

brandon-b-miller
Copy link
Contributor

This PR adds logic that falls back to CPU when a cudf-polars query would cast a timestamp column to a numeric type, an unsupported operation in libcudf, which should fix a few polars tests. It could be cleaned up a bit with some of the utilities that will be added in #16150.

@brandon-b-miller brandon-b-miller added bug Something isn't working non-breaking Non-breaking change cudf.polars Issues specific to cudf.polars labels Jul 9, 2024
@brandon-b-miller brandon-b-miller requested a review from a team as a code owner July 9, 2024 03:10
@github-actions github-actions bot added the Python Affects Python cuDF API. label Jul 9, 2024
python/cudf_polars/cudf_polars/dsl/expr.py Outdated Show resolved Hide resolved
python/cudf_polars/cudf_polars/dsl/expr.py Outdated Show resolved Hide resolved
Co-authored-by: Lawrence Mitchell <wence@gmx.li>
Comment on lines +1164 to +1166
raise NotImplementedError(
f"Can't cast {self.dtype.id().name} to {value.dtype.id().name}"
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test this branch please.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a2858e6 should cover things

Copy link
Contributor
@wence- wence- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Brandon.

@wence-
Copy link
Contributor
wence- commented Jul 23, 2024

/merge

@rapids-bot rapids-bot bot merged commit e6d412c into rapidsai:branch-24.08 Jul 23, 2024
86 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cudf.polars Issues specific to cudf.polars non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants