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
key_data_type
);

let values = make_array(data.child_data()[0].clone());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

saves a clone here of both the child data and also a DataType::Drop

.child_data(vec![])
.build_unchecked()
});
let keys = PrimitiveArray::<T>::new(ScalarBuffer::new(buffer, offset, len), nulls);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Bonus removal of unsafe

@alamb alamb marked this pull request as ready for review January 15, 2026 13:24
@jhorstmann
Copy link
Contributor

Looks good!

@Dandandan Dandandan merged commit 1db1a88 into apache:main Jan 15, 2026
26 checks passed
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.

3 participants