Module case

Module case 

Source

StructsΒ§

CaseBody πŸ”’
The body of a CASE expression which consists of an optional base expression, the β€œwhen/then” branches and an optional β€œelse” branch.
CaseExpr
The CASE expression is similar to a series of nested if/else and there are two forms that can be used. The first form consists of a series of boolean β€œwhen” expressions with corresponding β€œthen” expressions, and an optional β€œelse” expression.
PartialResultIndex πŸ”’
An index into the partial results array that’s more compact than usize.
ProjectedCaseBody πŸ”’
A derived case body that can be used to evaluate a case expression after projecting record batches using a projection vector.
ResultBuilder πŸ”’
A builder for constructing result arrays for CASE expressions.

EnumsΒ§

EvalMethod πŸ”’
ResultState πŸ”’

ConstantsΒ§

NONE_VALUE πŸ”’

FunctionsΒ§

case
Create a CASE expression
create_filter πŸ”’
Creates a [FilterPredicate] from a boolean array.
filter_array πŸ”’
filter_record_batch πŸ”’
is_cheap_and_infallible πŸ”’
This is a specialization for a specific use case where we can take a fast path for expressions that are infallible and can be cheaply computed for the entire record batch rather than just for the rows where the predicate is true. For now, this is limited to use with Column expressions but could potentially be used for other expressions in the future
merge πŸ”’
merge_n πŸ”’
Merges elements by index from a list of [ArrayData], creating a new [ColumnarValue] from those values.
multiple_arrays πŸ”’

Type AliasesΒ§

WhenThen πŸ”’