Skip to main content

Module expr

Module expr 

Source
Expand description

Expression constructors for this crate’s scalar functions.

These complement the constructors in vortex_expr.

Modules§

bound

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. See in_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, or Timestamp to a coarser unit with an explicit TemporalRounding.
convert_time_zone
Change the time zone of a Timestamp and 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 yields null rather than false when the list holds one, and not(in_list(..)) never admits such a row.
in_list_of
Creates needle IN (elements) with SQL null semantics for a list of constant elements of element_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 List and FixedSizeList inputs. This is akin to ANSI SQL CARDINALITY(), or DuckDB’s len()/array_length().
list_sum
Creates an expression that sums the elements of each list for List and FixedSizeList inputs, akin to DuckDB’s list_sum().
list_sum_opts
Creates a list_sum expression with explicit NumericalAggregateOpts, 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 search in input, or zero when absent, like SQL strpos.
timestamp_to_date
Extract the local calendar date of a Timestamp as a Date in days.
timestamp_to_time
Extract the local time of day of a Timestamp as a Time in 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.