arrow_cast::cast

Function cast_numeric_to_bool

Source
fn cast_numeric_to_bool<FROM>(from: &dyn Array) -> Result<ArrayRef, ArrowError>
where FROM: ArrowPrimitiveType,
Expand description

Cast numeric types to Boolean

Any zero value returns false while non-zero returns true