You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Returns a reference to the underlying data of this array.
fndata(&self) -> &ArrayData;
/// Returns the underlying data of this array.
fninto_data(self) -> ArrayData;
/// Returns a reference-counted pointer to the underlying data of this array.
fndata_ref(&self) -> &ArrayData{
self.data()
}
When I implementing using copy on write to evaluate col_x+1 binary_expr,
I need cast ArrayRef to PrimitiveArray with ownership and with strong reference one😩 then pass to unary_mut.
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
now Array trait only support
as_any
arrow-rs/arrow-array/src/array/mod.rs
Lines 72 to 106 in 9728c67
When I implementing using copy on write to evaluate
col_x+1
binary_expr,I need cast
ArrayRef
toPrimitiveArray
with ownership and with strong reference one😩 then pass tounary_mut
.arrow-rs/arrow-arith/src/arity.rs
Lines 59 to 65 in 26ea71c
So i decide using
downcast_mut
then usemem::take()
get thearray: PrimitiveArray<I>,
But there no
as_any_mut
, so i try to add this func 🤔.Seems there already one in
ArrayBuilder
arrow-rs/arrow-array/src/builder/mod.rs
Line 129 in f0be9da
Describe the solution you'd like
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: