coerce_float_vector

Function coerce_float_vector 

Source
pub fn coerce_float_vector(
    input: &Float32Array,
    float_type: FloatType,
) -> Result<Arc<dyn Array>, ArrowError>
Expand description

Convert a float32 array to another float array

This is used during queries as query vectors are always provided as float32 arrays and need to be converted to the appropriate float type for the index.