Skip to main content

propagate_options

Function propagate_options 

Source
pub fn propagate_options(
    func: &dyn ScalarFunction,
    ctx: &ScalarFunctionContext<'_>,
) -> Option<ScalarFunctionResult<ColumnData>>
Expand description

Helper for scalar functions to opt into Option propagation.

If any argument column is ColumnData::Option, this unwraps the Option wrappers, calls func.scalar() recursively on the inner data, and re-wraps the result with the combined bitvec.

Returns None when no Option columns are present (the caller should proceed with its normal typed logic).

Functions that need raw access to Options (e.g. is::some, is::none) simply don’t call this helper.