-
Notifications
You must be signed in to change notification settings - Fork 901
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 Aggregation Type Promotion: Ensure Unsigned Input Types Result in Unsigned Output for Sum and Multiply #14679
Fix Aggregation Type Promotion: Ensure Unsigned Input Types Result in Unsigned Output for Sum and Multiply #14679
Conversation
@SurajAralihalli The groupby tests already tests this. Since the tests use cudf/cpp/tests/groupby/sum_tests.cpp Line 38 in 580ee40
Perhaps, adding a separate test for type checking to cover all cases, could be considered too. |
/ok to test |
Signed-off-by: Suraj Aralihalli <suraj.ara16@gmail.com>
Thanks @karthikeyann, the |
/ok to test |
/ok to test |
https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword |
Thanks @karthikeyann, I'll keep that in mind! |
/ok to test |
I don't see any specific handling here for int32/uint32. Is that handled in another way? |
For computing |
/merge |
…esult in Unsigned Output for Sum and Multiply (rapidsai#14679)" This reverts commit a39897c.
This pull request reverses the modifications made to the sum/product aggregation target type, ensuring it always produces int64. The changes implemented by PR [14679](#14679) which led to degraded performance when the aggregation column had an unsigned type, are reverted. Additional details can be found in the issue [14886](#14886). Authors: - Suraj Aralihalli (https://github.com/SurajAralihalli) Approvers: - David Wendt (https://github.com/davidwendt) - Nghia Truong (https://github.com/ttnghia) - Karthikeyan (https://github.com/karthikeyann)
…esult in Unsigned Output for Sum and Multiply (rapidsai#14679)" This reverts commit a39897c.
Description
During aggregation, output types are modified to prevent overflow. Presently, summing INT32 yields INT64, but summing UINT32 still results in INT64 instead of UINT64. This pull request resolves #10149 to ensure the correct output type is used when summing or multiplying integers.
Checklist