Function arrow::array::as_boolean_array

source ·
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);