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

Fix groupby reductions that perform operations on source type instead of target type #10250

Merged
merged 4 commits into from
Feb 14, 2022

Conversation

ttnghia
Copy link
Contributor

@ttnghia ttnghia commented Feb 8, 2022

In groupby reductions, some operations such as SUM on integers have the output type different from the source type. For example, target type is int64 while the source type is int32. This is to prevent overflow of the computation result.

This fixes a bug in groupby reductions that perform computation using the data in source type instead of target type.

Closes #10246.

@ttnghia ttnghia added bug Something isn't working 3 - Ready for Review Ready for review by team libcudf Affects libcudf (C++/CUDA) code. Spark Functionality that helps Spark RAPIDS non-breaking Non-breaking change labels Feb 8, 2022
@ttnghia ttnghia requested a review from jrhemstad February 8, 2022 18:23
@ttnghia ttnghia self-assigned this Feb 8, 2022
@ttnghia ttnghia requested a review from a team as a code owner February 8, 2022 18:23
@ttnghia ttnghia requested a review from cwharris February 8, 2022 18:23
@codecov

This comment was marked as off-topic.

@ttnghia ttnghia removed the request for review from nvdbaranec February 11, 2022 14:44
Copy link
Contributor

@hyperbolic2346 hyperbolic2346 left a comment

Choose a reason for hiding this comment

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

Nice work!

Copy link
Contributor

@codereport codereport left a comment

Choose a reason for hiding this comment

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

👍

@ttnghia
Copy link
Contributor Author

ttnghia commented Feb 14, 2022

@gpucibot merge

@rapids-bot rapids-bot bot merged commit c21cca9 into rapidsai:branch-22.04 Feb 14, 2022
@ttnghia ttnghia deleted the fix_groupby_sum branch February 14, 2022 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team bug Something isn't working libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change Spark Functionality that helps Spark RAPIDS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Sorted sum aggregations are not performed in the result type
4 participants