Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.

More conversions to and from arrow-rs #15

Merged
merged 5 commits into from
Jan 9, 2025
Merged

Conversation

emilk
Copy link
Member

@emilk emilk commented Jan 8, 2025

This implements conversions between arrow2 and arrow-rs for:

  • ListArray
  • BitMap/NullBuffer (only had one way before)
  • OffsetsBuffer

let field = ListArray::<O>::get_child_field(value.data_type());
let field = Arc::new(arrow_schema::Field::new(
"item",
field.clone().data_type.into(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this cloning the whole field instead of just the datatype?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@emilk emilk merged commit c762f39 into main Jan 9, 2025
34 of 38 checks passed
@emilk emilk deleted the emilk/more-arrow-compatibility branch January 9, 2025 09:24
emilk added a commit to rerun-io/rerun that referenced this pull request Jan 9, 2025
* Part of #3741
* Requires rerun-io/re_arrow2#15

NOTE: this will regress on memory use, because we lack `.shrink_to_fit`,
which will arrive in
* #8618
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants