Skip to main content

option_values_to_arrow_array

Function option_values_to_arrow_array 

Source
pub fn option_values_to_arrow_array(
    values: &[Option<Value>],
    data_type: &DataType,
) -> Result<Arc<dyn Array>, ArrowError>
Expand description

Convert a slice of optional Values to an Arrow array matching the target DataType.

None entries (from ActiveValue::NotSet) become null in the array. Some(Value::Variant(None)) (SQL NULL) also become null.