pub enum AggregateFunction {
Min,
Max,
ArrayAgg,
}
Expand description
Enum of all built-in aggregate functions
Variants§
Implementations§
source§impl AggregateFunction
impl AggregateFunction
sourcepub fn return_type(
&self,
input_expr_types: &[DataType],
input_expr_nullable: &[bool],
) -> Result<DataType, DataFusionError>
pub fn return_type( &self, input_expr_types: &[DataType], input_expr_nullable: &[bool], ) -> Result<DataType, DataFusionError>
Returns the datatype of the aggregate function given its argument types
This is used to get the returned data type for aggregate expr.
sourcepub fn nullable(&self) -> Result<bool, DataFusionError>
pub fn nullable(&self) -> Result<bool, DataFusionError>
Returns if the return type of the aggregate function is nullable given its argument nullability
Trait Implementations§
source§impl Clone for AggregateFunction
impl Clone for AggregateFunction
source§fn clone(&self) -> AggregateFunction
fn clone(&self) -> AggregateFunction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AggregateFunction
impl Debug for AggregateFunction
source§impl Display for AggregateFunction
impl Display for AggregateFunction
source§impl FromStr for AggregateFunction
impl FromStr for AggregateFunction
§type Err = DataFusionError
type Err = DataFusionError
The associated error which can be returned from parsing.
source§fn from_str(name: &str) -> Result<AggregateFunction, DataFusionError>
fn from_str(name: &str) -> Result<AggregateFunction, DataFusionError>
Parses a string
s
to return a value of this type. Read moresource§impl Hash for AggregateFunction
impl Hash for AggregateFunction
source§impl IntoEnumIterator for AggregateFunction
impl IntoEnumIterator for AggregateFunction
type Iterator = AggregateFunctionIter
fn iter() -> AggregateFunctionIter ⓘ
source§impl PartialEq for AggregateFunction
impl PartialEq for AggregateFunction
source§fn eq(&self, other: &AggregateFunction) -> bool
fn eq(&self, other: &AggregateFunction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AggregateFunction
impl PartialOrd for AggregateFunction
source§fn partial_cmp(&self, other: &AggregateFunction) -> Option<Ordering>
fn partial_cmp(&self, other: &AggregateFunction) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for AggregateFunction
impl StructuralPartialEq for AggregateFunction
Auto Trait Implementations§
impl Freeze for AggregateFunction
impl RefUnwindSafe for AggregateFunction
impl Send for AggregateFunction
impl Sync for AggregateFunction
impl Unpin for AggregateFunction
impl UnwindSafe for AggregateFunction
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more