Skip to content

Make dividing a boolean column return f64 dtype in cudf-polars #19443

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

Open
wants to merge 6 commits into
base: branch-25.10
Choose a base branch
from

Conversation

Matt711
Copy link
Contributor

@Matt711 Matt711 commented Jul 21, 2025

Description

Closes #19408

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@Matt711 Matt711 requested a review from a team as a code owner July 21, 2025 18:27
@Matt711 Matt711 added bug Something isn't working non-breaking Non-breaking change labels Jul 21, 2025
@github-actions github-actions bot added Python Affects Python cuDF API. cudf-polars Issues specific to cudf-polars labels Jul 21, 2025
@GPUtester GPUtester moved this to In Progress in cuDF Python Jul 21, 2025
@@ -113,3 +113,12 @@ def test_binop_with_scalar(left_scalar, right_scalar):
q = df.select(lop / rop)

assert_gpu_result_equal(q)


@pytest.mark.parametrize("divisor", [1, 2.0])
Copy link
Contributor Author

@Matt711 Matt711 Jul 22, 2025

Choose a reason for hiding this comment

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

Note: The bug doesn't manifest if the RHS is a pl.lit

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: In Progress
Development

Successfully merging this pull request may close these issues.

[BUG] Division binop with boolean and int produces different results from polars CPU
1 participant