pub fn substring(
array: &dyn Array,
start: i64,
length: &Option<u64>
) -> Result<Box<dyn Array + 'static, Global>, ArrowError>
This is supported on crate feature
compute_substring
only.Expand description
Returns an ArrayRef with a substring starting from start
and with optional length length
of each of the elements in array
.
start
can be negative, in which case the start counts from the end of the string.
this function errors when the passed array is not a [Large]String array.