Module expr_fn

Source
Expand description

Functions for creating logical expressions

Structs§

ExprFuncBuilder
Implementation of ExprFunctionExt.
SimpleAggregateUDF
Implements AggregateUDFImpl for functions that have a single signature and return type.
SimpleScalarUDF
Implements ScalarUDFImpl for functions that have a single signature and return type.
SimpleWindowUDF
Implements WindowUDFImpl for functions that have a single signature and return type.

Enums§

ExprFuncKind

Traits§

ExprFunctionExt
Extensions for configuring Expr::AggregateFunction or Expr::WindowFunction

Functions§

and
Return a new expression with a logical AND
binary_expr
Return a new expression left <op> right
bitwise_and
Return a new expression with bitwise AND
bitwise_or
Return a new expression with bitwise OR
bitwise_shift_left
Return a new expression with bitwise SHIFT LEFT
bitwise_shift_right
Return a new expression with bitwise SHIFT RIGHT
bitwise_xor
Return a new expression with bitwise XOR
case
Create a CASE WHEN statement with literal WHEN expressions for comparison to the base expression.
cast
Create a cast expression
col
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_udaf
Creates a new UDAF with a specific signature, state type and return type. The signature and state type must match the Accumulator's implementation.
create_udf
Convenience method to create a new user defined scalar function (UDF) with a specific signature and specific return type.
create_udwf
Creates a new UDWF with a specific signature, state type and return type.
cube
Create a grouping set for all combination of exprs
exists
Create an EXISTS subquery expression
grouping_set
Create a grouping set
ident
Create an unqualified column expression from the provided name, without normalizing the column.
in_list
Create an in_list expression
in_subquery
Create an IN subquery expression
interval_datetime_lit
interval_month_day_nano_lit
interval_year_month_lit
is_false
Create is false expression
is_not_false
Create is not false expression
is_not_true
Create is not true expression
is_not_unknown
Create is not unknown expression
is_null
Create is null expression
is_true
Create is true expression
is_unknown
Create is unknown expression
not
Return a new expression with a logical NOT
not_exists
Create a NOT EXISTS subquery expression
not_in_subquery
Create a NOT IN subquery expression
or
Return a new expression with a logical OR
out_ref_col
Create an out reference column which hold a reference that has been resolved to a field outside of the current plan.
placeholder
Create placeholder value that will be filled in (such as $1)
qualified_wildcard
Create an ‘t.*’ Expr::Wildcard expression that matches all columns from a specific table
qualified_wildcard_with_options
Create an ‘t.*’ Expr::Wildcard expression with the wildcard options
rollup
Create a grouping set for rollup
scalar_subquery
Create a scalar subquery expression
try_cast
Create a try cast expression
unnest
Create a Unnest expression
when
Create a CASE WHEN statement with boolean WHEN expressions and no base expression.
wildcard
Create an ‘*’ Expr::Wildcard expression that matches all columns
wildcard_with_options
Create an ‘*’ Expr::Wildcard expression with the wildcard options