Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
as_string_array in datafusion::common::arrow::array::cast - Rust
[go: Go Back, main page]

Function as_string_array

Source
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);