Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use arrow-rs in ArrowBuffer #8201

Merged
merged 5 commits into from
Nov 25, 2024
Merged

Use arrow-rs in ArrowBuffer #8201

merged 5 commits into from
Nov 25, 2024

Conversation

emilk
Copy link
Member

@emilk emilk commented Nov 22, 2024

@emilk emilk added 🦀 Rust API Rust logging API 🚜 refactor Change the code, not the functionality exclude from changelog PRs with this won't show up in CHANGELOG.md labels Nov 22, 2024
Copy link

github-actions bot commented Nov 22, 2024

Web viewer built successfully. If applicable, you should also test it:

  • I have tested the web viewer
Result Commit Link
e3a757a https://rerun.io/viewer/pr/8201

Note: This comment is updated whenever you push a commit.

@emilk emilk marked this pull request as ready for review November 22, 2024 12:49
@emilk emilk changed the title Add ArrowNativeType trait bound to ArrowBuffer Use arrow-rs in ArrowBuffer Nov 22, 2024
@Wumpf Wumpf self-requested a review November 25, 2024 10:27
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

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

lgtm minus suspicious/confusing len

fn from(value: arrow2::buffer::Buffer<T>) -> Self {
Self(value)
fn from(arrow2_buffer: arrow2::buffer::Buffer<T>) -> Self {
let num_elements = arrow2_buffer.len();
Copy link
Member

Choose a reason for hiding this comment

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

didn't the fat comment up there say that this is a num_bytes in arrow2? That would make this wrong then if I understand correctly

Your unit test seems to pass this though, confusing.

Copy link
Member Author

Choose a reason for hiding this comment

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

This is why I wrote a unit test - arrow2 is confusing and maybe wrongly documented:

The comment is gone too

@emilk emilk merged commit 11df7bb into main Nov 25, 2024
34 checks passed
@emilk emilk deleted the emilk/arrow1-arrow-buffer branch November 25, 2024 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exclude from changelog PRs with this won't show up in CHANGELOG.md 🚜 refactor Change the code, not the functionality 🦀 Rust API Rust logging API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate ArrowBuffer wrapper to expose arrow-rs buffers rather than arrow2
2 participants