(&self, other: &Self)
| 934 | |
| 935 | impl PartialOrd for dyn AggregateUDFImpl { |
| 936 | fn partial_cmp(&self, other: &Self) -> Option<Ordering> { |
| 937 | match self.name().partial_cmp(other.name()) { |
| 938 | Some(Ordering::Equal) => self.signature().partial_cmp(other.signature()), |
| 939 | cmp => cmp, |
| 940 | } |
| 941 | // TODO (https://github.com/apache/datafusion/issues/17477) avoid recomparing all fields |
| 942 | .filter(|cmp| *cmp != Ordering::Equal || self == other) |
| 943 | } |
| 944 | } |
| 945 | |
| 946 | /// Encapsulates default implementation of [`AggregateUDFImpl::schema_name`]. |