Closed orlp closed 11 months ago
Right now arrow2 only exposes
arrow2
pub fn substring(array: &dyn Array, start: i64, length: &Option<u64>) -> Result<Box<dyn Array>> {
which forces you to go through a boxed generic. If you know you have a specific type you should be able to directly call
fn utf8_substring<O: Offset>(array: &Utf8Array<O>, start: O, length: &Option<O>) -> Utf8Array<O> {
or
fn binary_substring<O: Offset>(array: &BinaryArray<O>, start: O, length: &Option<O>) -> BinaryArray<O> {
which already exist, but are not marked as public.
Right now
arrow2
only exposeswhich forces you to go through a boxed generic. If you know you have a specific type you should be able to directly call
or
which already exist, but are not marked as public.