Skip to main content

Module scalar_fn

Module scalar_fn 

Source
Expand description

Scalar function vtable machinery.

This module contains the ScalarFnVTable trait, the machinery to bind, reduce and execute scalar functions, and in builtin the few functions vortex-array itself is built on. Other scalar functions live in the vortex-functions crate. Expressions (vortex_expr::Expression) reference scalar functions at each node.

Strict functions with row-at-a-time kernels can implement unstable::row::RowFn. It handles decoding, constants, null propagation, output construction, and validity. This API requires the unstable_row_fns feature and has no compatibility guarantees. Implement ScalarFnVTable directly for columnar kernels and functions that alias an input or can produce null from valid inputs.

Modules§

builtin
The scalar functions that vortex-array itself is built on.
display
The expression-tree interface scalar functions format themselves through.
session
unstable
Experimental scalar-function APIs without compatibility guarantees.

Structs§

ArrayReduceNode
A ReduceNode over an array tree.
EmptyOptions
ExpressionReduceNode
A ReduceNode over a bound expression tree.
ScalarFnExecutionResult
The result of a single ScalarFnVTable::execute_step.
ScalarFnOptions
An opaque handle to expression options.
ScalarFnRef
A type-erased scalar function, pairing a vtable with bound options behind a trait object.
ScalarFnSignature
Information about the signature of an expression.
TypedScalarFnInstance
A typed scalar function instance, parameterized by a concrete ScalarFnVTable.
VecExecutionArgs
A concrete ExecutionArgs backed by a Vec<ArrayRef>.

Enums§

Arity
The arity (number of arguments) of a function.
ReduceNodeValidity
ScalarFnExecutionStep
What the scheduler should do after a ScalarFnVTable::execute_step.

Traits§

ExecutionArgs
Arguments for expression execution.
ReduceNode
A node used for implementing abstract reduction rules over a tree of scalar functions.
ScalarFnPlugin
Registry trait for ID-based deserialization of scalar functions.
ScalarFnVTable
This trait defines the interface for scalar function vtables, including methods for serialization, deserialization, validation, child naming, return type computation, and evaluation.
ScalarFnVTableExt
Factory functions for vtables.

Functions§

is_not_null_node
IsNotNull(child) as a reducible node
union_child_validities
“And” over “node’s” non-nullable children

Type Aliases§

ChildName
A reference to the name of a child expression.
ScalarFnId
A unique identifier for a scalar function.
ScalarFnPluginRef
Reference-counted pointer to a scalar function plugin.