Skip to main content

wrap_values

Function wrap_values 

Source
pub fn wrap_values(values: ArrayRef, dtype: DType) -> VortexResult<ArrayRef>
Expand description

Returns values when it has dtype, and a Widen of dtype over values otherwise.

dtype must have the nullability of values, because the values hold the validity of the Widen. A mask, a fill null or a take with nullable indices can change the nullability of the values, so those callers take the nullability of the result.