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

Add ByteArray constructors (#3879) #4081

Merged
merged 5 commits into from
Apr 19, 2023

Conversation

tustvold
Copy link
Contributor

@tustvold tustvold commented Apr 13, 2023

Which issue does this PR close?

Part of #3879

Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

@github-actions github-actions bot added the arrow Changes to the arrow crate label Apr 13, 2023
@tustvold tustvold force-pushed the add-byte-array-constructors branch from 4c007c0 to 0d2ce17 Compare April 13, 2023 16:11
@tustvold tustvold force-pushed the add-byte-array-constructors branch from 7a9bf3a to db5b485 Compare April 18, 2023 12:22
@tustvold tustvold marked this pull request as ready for review April 18, 2023 12:23
Comment on lines +1616 to +1617
"Maximum offset of {max_offset} is larger than values of length {}",
values.len()
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"Maximum offset of {max_offset} is larger than values of length {}",
values.len()
"Maximum offset of {max_offset} is larger than length of values {}",
values.len()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think the phrasing before is grammatically more correct

T::validate(&offsets, &values)?;

if let Some(n) = nulls.as_ref() {
if n.len() != len {
Copy link
Member

Choose a reason for hiding this comment

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

Don't we need to also check the length of values buffer?

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 covered by T::validate, will add a comment

@tustvold tustvold merged commit 1097203 into apache:master Apr 19, 2023
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.

2 participants