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
{{ message }}
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
Is there a way to directly nest a non-empty MutableArray in a MutableListArray?
In the majority of MutableArray implementations there is a from_trusted_len_iter method that allows the array to be constructed directly from an iterator. In the case of a MutableStructArray, the new method takes a vector of the inner MutableArrays, so you can directly construct it. Is there an analogy for MutableListArray?
It looks like the new_from has an assert that prevents non-empty MutableArrays from being passed through:
Along with the MutableArray I also have all of the lengths in a Vec<Option<usize>>. I had been hoping to use the following, but am failing on the assert during runtime:
Is there a way to directly nest a non-empty
MutableArray
in aMutableListArray
?In the majority of
MutableArray
implementations there is afrom_trusted_len_iter
method that allows the array to be constructed directly from an iterator. In the case of aMutableStructArray
, thenew
method takes a vector of the innerMutableArray
s, so you can directly construct it. Is there an analogy forMutableListArray
?It looks like the
new_from
has an assert that prevents non-emptyMutableArray
s from being passed through:arrow2/src/array/list/mutable.rs
Line 118 in fb5e4d5
Along with the
MutableArray
I also have all of the lengths in aVec<Option<usize>>
. I had been hoping to use the following, but am failing on the assert during runtime:I'm trying to accomplish the same thing in this function, without the pre-allocation of an empty inner
MutableArray
ahead of time:arrow2/src/io/json/read/deserialize.rs
Lines 254 to 277 in fb5e4d5
The text was updated successfully, but these errors were encountered: