smartnoise_runtime::components::cast
pub fn cast_float(data: &Array) -> Result<ArrayD<Float>>
Cast data to type f64.
f64
If data are bool, map true => 1. and false => 0.
bool
true => 1.
false => 0.
If data are String, attempt to parse as f64 and return NAN otherwise.
String
NAN
If data are i64, convert integers to their f64 representation.
i64
data
Data cast to Float.
Float