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

Enable mixed-dtype decimal/scalar binary operations #13171

Merged
merged 4 commits into from
Apr 26, 2023

Conversation

shwina
Copy link
Contributor

@shwina shwina commented Apr 19, 2023

Also closes #13170

@shwina shwina added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Apr 19, 2023
@github-actions github-actions bot added the Python Affects Python cuDF API. label Apr 19, 2023
@shwina
Copy link
Contributor Author

shwina commented Apr 19, 2023

Note to reviewers: this PR removes some previously xfailing tests.

@shwina shwina marked this pull request as ready for review April 19, 2023 18:02
@shwina shwina requested a review from a team as a code owner April 19, 2023 18:02
@shwina shwina requested review from wence- and skirui-source April 19, 2023 18:02
@shwina
Copy link
Contributor Author

shwina commented Apr 20, 2023

/merge

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.

One query

metadata = other.as_tuple()
precision = max(len(metadata.digits), metadata.exponent)
scale = -metadata.exponent
return cudf.Scalar(
Copy link
Contributor

Choose a reason for hiding this comment

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

If other is Decimal should this not somehow end up going through the same normalisation as above with cudf.Scalar with decimal dtypes? Or does it not matter?

I'm pretty shaky on all the decimal stuff though, so ...

@wence-
Copy link
Contributor

wence- commented Apr 26, 2023

Merged trunk which will hopefully fix the wheelbuild fails.

@rapids-bot rapids-bot bot merged commit 5df4367 into rapidsai:branch-23.06 Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement / enhancement to an existing function non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] ValueError when multiplying decimal columns of large precision with scalars
4 participants