Module datafusion_expr::expr_fn
source · Expand description
Functions for creating logical expressions
Structs§
- Implements
AggregateUDFImpl
for functions that have a single signature and return type. - Implements
ScalarUDFImpl
for functions that have a single signature and return type. - Implements
WindowUDFImpl
for functions that have a single signature and return type.
Functions§
- Return a new expression with a logical AND
- Returns the approximate number of distinct input values. This function provides an approximation of count(DISTINCT x). Zero is returned if all input values are null. This function should produce a standard error of 0.81%, which is the standard deviation of the (approximately normal) error distribution over all possible sets. It does not guarantee an upper bound on the error for any specific input set.
- Calculate an approximation of the median for
expr
. - Calculate an approximation of the specified
percentile
forexpr
. - Calculate an approximation of the specified
percentile
forexpr
andweight_expr
. - Create an expression to represent the array_agg() aggregate function
- Create an expression to represent the avg() aggregate function
- Return a new expression
left <op> right
- Return a new expression with bitwise AND
- Return a new expression with bitwise OR
- Return a new expression with bitwise SHIFT LEFT
- Return a new expression with bitwise SHIFT RIGHT
- Return a new expression with bitwise XOR
- Create a CASE WHEN statement with literal WHEN expressions for comparison to the base expression.
- Create a cast expression
- Create a column expression based on a qualified or unqualified column name. Will normalize unquoted identifiers according to SQL rules (identifiers will become lowercase).
- Create an expression to represent the count() aggregate function
- Create an expression to represent the count(distinct) aggregate function
- Creates a new UDAF with a specific signature, state type and return type. The signature and state type must match the
Accumulator's implementation
. - Convenience method to create a new user defined scalar function (UDF) with a specific signature and specific return type.
- Creates a new UDWF with a specific signature, state type and return type.
- Create a grouping set for all combination of
exprs
- Create an EXISTS subquery expression
- Create a grouping set
- Create an unqualified column expression from the provided name, without normalizing the column.
- Create an in_list expression
- Create an IN subquery expression
- Create is false expression
- Create is not false expression
- Create is not true expression
- Create is not unknown expression
- Create is null expression
- Create is true expression
- Create is unknown expression
- Create an expression to represent the max() aggregate function
- Create an expression to represent the min() aggregate function
- Return a new expression with a logical NOT
- Create a NOT EXISTS subquery expression
- Create a NOT IN subquery expression
- Return a new expression with a logical OR
- Create an out reference column which hold a reference that has been resolved to a field outside of the current plan.
- Create placeholder value that will be filled in (such as
$1
) - Create a grouping set for rollup
- Create a scalar subquery expression
- Create an expression to represent the stddev() aggregate function
- Create an expression to represent the sum() aggregate function
- Create a try cast expression
- Create a Unnest expression
- Create a CASE WHEN statement with boolean WHEN expressions and no base expression.
- Create an ‘*’
Expr::Wildcard
expression that matches all columns