Skip to content

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Jan 15, 2026

Which issue does this PR close?

Rationale for this change

Let's make arrow-rs the fastest we can and the fewer allocations the better

What changes are included in this PR?

Apply pattern from #9114

Are these changes tested?

Existing tests

Are there any user-facing changes?

No

@github-actions github-actions bot added the arrow Changes to the arrow crate label Jan 15, 2026
.try_into()
.expect("RunArray data should have exactly two child arrays");

// deconstruct the run ends child array
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is what the current code does too (reaches into the child array data and gets the first buffer)

The current code also checks that there is exactly 1 buffer in the child array

};

let values = make_array(data.child_data()[1].clone());
let [run_end_child, values_child]: [ArrayData; 2] = child_data
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was a nice way to check the length and destructure the ArrayData in one command

https://stackoverflow.com/questions/29570607/is-there-a-good-way-to-convert-a-vect-to-an-array

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant