-
Notifications
You must be signed in to change notification settings - Fork 920
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
[FEA] Cleanup on logic inside DeviceRolling::is_supported() #8399
Comments
Pinging @mythrocks |
This issue has been labeled |
@mythrocks @karthikeyann This came up in our meeting today. If you have any additional context on what needs to be done or whether this issue can be closed, feel free to share. The code has moved to a different filename since this issue was filed: cudf/cpp/src/rolling/detail/rolling.cuh Line 83 in 3bf6d1d
|
There is some cleanup that can be done here, but I don't know if there's enough to warrant a pair-up. |
This PR closes #8399. We cleaned up the logic by fixing SUM/MEAN aggregation type support, which also eliminated `TODO` comments in the target type definitions. We kept the restriction that rolling min/max requires fixed width types because min/max aggregations do support non-fixed width in other aggregation implementations (groupby does a argmin-and-gather approach on strings, for instance). This PR is collaborative work with @karthikeyann. Authors: - Bradley Dice (https://github.com/bdice) - Karthikeyan (https://github.com/karthikeyann) Approvers: - Mark Harris (https://github.com/harrism) - David Wendt (https://github.com/davidwendt) URL: #12503
There is some logic in
cudf/cpp/src/rolling/rolling_detail.cuh
Line 82 in 0eeb0c9
is_valid_aggregation
, butis_valid_aggregation
is currently missing some edge cases.Once these edge cases are cleared up, clear out this code. Also, if
is_valid_aggregation
can handle a wide enough set of cases, it might be possible to remove the variousis_supported()
functions entirely and just have a single generic global template (checkingis_valid_aggregation
andhas_corresponding_operator
) used in it's place.The text was updated successfully, but these errors were encountered: