fn take_impl<IndexType: ArrowPrimitiveType>( values: &dyn Array, indices: &PrimitiveArray<IndexType>, ) -> Result<ArrayRef, ArrowError>