Skip to content

Conversation

findepi
Copy link
Member

@findepi findepi commented Sep 3, 2025

Extract AggregateUDFImpl method that have complex implementations. This makes it feasible to implement that trait with
#[warn(clippy::missing_trait_methods)] Clippy check enabled. That check is very helpful when the type implementing AggregateUDFImpl delegates many methods to another AggregateUDFImpl implementation and therefore does not want to unconsciously rely on default implementation. Sadly, Rust does not allow explicitly delegating to trait method's default implementation. Extracting the logic to standalone functions works around that limitation.

Extract AggregateUDFImpl method that have complex implementations. This
makes it feasible to implement that trait with
`#[warn(clippy::missing_trait_methods)]` Clippy check enabled. That
check is very helpful when the type implementing `AggregateUDFImpl`
delegates many methods to another `AggregateUDFImpl` implementation and
therefore does not want to unconsciously rely on default implementation.
Sadly, Rust does not allow explicitly delegating to trait method's
default implementation. Extracting the logic to standalone functions
works around that limitation.
@github-actions github-actions bot added the logical-expr Logical plan and expressions label Sep 3, 2025
@findepi findepi requested review from alamb and timsaucer September 4, 2025 08:34
@findepi findepi force-pushed the findepi/extract-complex-default-impls-from-aggregateudfimpl-trait-dfff56 branch from 072a94c to 13f4a1c Compare September 4, 2025 17:04
@findepi findepi requested a review from comphead September 5, 2025 08:58
…plex-default-impls-from-aggregateudfimpl-trait-dfff56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logical-expr Logical plan and expressions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants