MCPcopy Create free account
hub / github.com/apache/datafusion / partial_cmp

Method partial_cmp

datafusion/expr/src/udaf.rs:936–943  ·  view source on GitHub ↗
(&self, other: &Self)

Source from the content-addressed store, hash-verified

934
935impl 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`].

Callers

nothing calls this directly

Calls 3

filterMethod · 0.45
nameMethod · 0.45
signatureMethod · 0.45

Tested by

no test coverage detected