Skip to main content

cast_numeric_to_bool

Function cast_numeric_to_bool 

Source
pub(crate) 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