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
With the currently exposed APIs in arrow2 and arrow2-convert, is there a better way to convert the Chunk into a Struct? I think the extra conversion from Chunk to StructArray with the to_boxed at the end is perhaps not the most efficient.
Would it be possible to expose TryIntoCollection::try_into_collection directly on the Chunk as well?
The text was updated successfully, but these errors were encountered:
The way you've described is the best way to do it right now. You're absolutely right. The extra to_boxed is not necessary, and we can certainly improve that by providing a method directly on StructArray.
Yes
Just a heads up, we're currently refactoring the crate to take advantage of some of the new features that will be introduced in 1.65, so we can fix this as part of those changes.
Starting with the parquet_read_parallel example from arrow2, I am trying to deserialize a Chunk into a Vec of structs.
Using the
deserialize_parallel
function as defined in the above example, the following code currently works for me:Questions:
Chunk
toStructArray
with theto_boxed
at the end is perhaps not the most efficient.TryIntoCollection::try_into_collection
directly on the Chunk as well?The text was updated successfully, but these errors were encountered: