You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: remove as_any from aggregate and window functions (#21209)
## Which issue does this PR close?
This is a follow on to #20812
but treats aggregate and window functions.
## Rationale for this change
This PR reduces the amount of boilerplate code that users need to write
for aggregate and window functions.
## What changes are included in this PR?
Now that we have [trait
upcasting](https://blog.rust-lang.org/2025/04/03/Rust-1.86.0/) since
rust 1.86, we no longer need every implementation of these functions to
have the as_any function that returns &self. This PR makes Any an
supertrait and makes the appropriate casts when necessary.
## Are these changes tested?
Existing unit tests.
## Are there any user-facing changes?
Yes, the users simply need to remove the `as_any` function. The upgrade
guide is updated.
---------
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
0 commit comments