arrow::array

Function as_boolean_array

pub fn as_boolean_array(arr: &dyn Array) -> &BooleanArray
Expand description

Force downcast of an Array, such as an ArrayRef to BooleanArray, panicking on failure.

ยงExample


let arr: ArrayRef = Arc::new(BooleanArray::from_iter(vec![Some(true)]));
let boolean_array = as_boolean_array(&arr);