arrow::array

Function as_string_array

pub fn as_string_array(
    arr: &dyn Array,
) -> &GenericByteArray<GenericStringType<i32>>
Expand description

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

ยงExample


let arr: ArrayRef = Arc::new(StringArray::from_iter(vec![Some("foo")]));
let string_array = as_string_array(&arr);