Expand description
Expression constructors for this crate’s scalar functions.
These complement the constructors in vortex_expr.
Modules§
Functions§
- between
- Creates an expression that checks if values are between two bounds.
- bound_
between - Creates a bound expression that checks if values are between two bounds.
- bound_
byte_ length - Creates a bound expression that computes each element’s byte length.
- bound_
case_ when - Creates a bound CASE WHEN expression with one WHEN/THEN pair and an ELSE value.
- bound_
case_ when_ no_ else - Creates a bound CASE WHEN expression with one WHEN/THEN pair and no ELSE value.
- bound_
dynamic - Creates a bound dynamic comparison expression.
- bound_
dynamic_ expression - Creates a bound dynamic expression that evaluates the current predicate of
source. - bound_
dynamic_ with_ options - Creates a bound dynamic comparison expression from its complete options.
- bound_
ext_ storage - Creates a bound expression that extracts an extension array’s storage values.
- bound_
ilike - Creates a bound case-insensitive SQL ILIKE expression.
- bound_
in_ list - Creates a bound
needle IN (list)with SQL null semantics. Seein_list. - bound_
is_ nan - Creates a bound expression that checks for NaN values.
- bound_
is_ null - Creates a bound expression that checks for null values.
- bound_
like - Creates a bound SQL LIKE expression.
- bound_
list_ contains - Creates a bound expression that checks whether a list contains a value.
- bound_
list_ length - Creates a bound expression that computes the number of elements in each list.
- bound_
list_ sum - Creates a bound expression that sums the elements of each list.
- bound_
list_ sum_ opts - Creates a bound list-sum expression with explicit aggregate options.
- bound_
merge - Creates a bound expression that merges struct expressions.
- bound_
merge_ opts - Creates a bound merge expression with explicit duplicate handling.
- bound_
nested_ case_ when - Creates a bound n-ary CASE WHEN expression from WHEN/THEN pairs and an optional ELSE value.
- bound_
not_ ilike - Creates a bound negated case-insensitive SQL NOT ILIKE expression.
- bound_
not_ like - Creates a bound negated SQL NOT LIKE expression.
- bound_
replace_ time_ zone - Create a bound timezone replacement expression.
- bound_
select - Creates a bound expression that selects specific fields from a struct expression.
- bound_
select_ exclude - Creates a bound expression that excludes specific fields from a struct expression.
- bound_
variant_ get - Creates a bound expression that extracts a path from a Variant expression.
- bound_
zip_ expr - Creates a bound zip expression that conditionally selects between two arrays.
- byte_
length - Creates an expression that computes the byte length of each element. This is akin to ANSI SQL OCTET_LENGTH(), or DuckDB’s strlen().
- case_
when - Creates a CASE WHEN expression with one WHEN/THEN pair and an ELSE value.
- case_
when_ no_ else - Creates a CASE WHEN expression with one WHEN/THEN pair and no ELSE value.
- change_
time_ unit - Convert a
Date,Time, orTimestampto a coarserunitwith an explicitTemporalRounding. - convert_
time_ zone - Change the time zone of a
Timestampand keep its instant, so the stored count does not change. - dynamic
- Creates a dynamic comparison expression.
- dynamic_
expression - Creates a dynamic expression that evaluates the current predicate of
source. - dynamic_
with_ options - Constructors for expressions whose children have already been bound and type-checked.
- ext_
storage - Creates an expression that extracts the storage values from an extension array.
- ilike
- Creates a case-insensitive SQL ILIKE expression.
- in_list
- Creates
needle IN (list)with SQL null semantics: a null element is an unknown value, so a needle that matches no element yieldsnullrather thanfalsewhen the list holds one, andnot(in_list(..))never admits such a row. - in_
list_ of - Creates
needle IN (elements)with SQL null semantics for a list of constant elements ofelement_dtype, ignoring nullability. An element can also be an untyped null. - is_nan
- Creates an expression that checks for NaN values.
- is_null
- Creates an expression that checks for null values.
- like
- Creates a SQL LIKE expression.
- list_
contains - Creates an expression that checks whether a list contains a value.
- list_
contains_ opts - Creates an expression that checks whether a list contains a value, with explicit
ListContainsOptions. - list_
length - Creates an expression that computes the number of elements in each list
for
ListandFixedSizeListinputs. This is akin to ANSI SQLCARDINALITY(), or DuckDB’slen()/array_length(). - list_
sum - Creates an expression that sums the elements of each list for
ListandFixedSizeListinputs, akin to DuckDB’slist_sum(). - list_
sum_ opts - Creates a
list_sumexpression with explicitNumericalAggregateOpts, controlling whether NaN float elements are skipped (the default) or poison the list’s sum to NaN. - list_
transform - Creates an expression that applies a lambda to every element of each list.
- lower
- Creates an expression that computes the Unicode lowercase of each string, like SQL
lower. - merge
- Creates an expression that merges struct expressions into a single struct.
- merge_
opts - Creates a merge expression with explicit duplicate handling.
- nested_
case_ when - Creates an n-ary CASE WHEN expression from WHEN/THEN pairs and an optional ELSE value.
- not_
ilike - Creates a negated case-insensitive SQL NOT ILIKE expression.
- not_
like - Creates a negated SQL NOT LIKE expression.
- replace_
time_ zone - Reinterpret timestamp wall times in
options.time_zone, preserving the time unit. - select
- Creates an expression that selects (includes) specific fields from an array.
- select_
exclude - Creates an expression that excludes specific fields from an array.
- strpos
- Creates an expression that computes the one-based character position of
searchininput, or zero when absent, like SQLstrpos. - timestamp_
to_ date - Extract the local calendar date of a
Timestampas aDatein days. - timestamp_
to_ time - Extract the local time of day of a
Timestampas aTimein the same unit. - variant_
get - Creates an expression that extracts a path from a Variant expression.
- zip_
expr - Creates a zip expression that conditionally selects between two arrays.