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

Propagate error instead of panic for take_bytes #5395

Merged
merged 2 commits into from
Feb 13, 2024
Merged

Conversation

viirya
Copy link
Member

@viirya viirya commented Feb 13, 2024

Which issue does this PR close?

Closes #.

Rationale for this change

take_bytes can propagate error instead of panic.

What changes are included in this PR?

Changing take_bytes to propagate error.

Are there any user-facing changes?

@github-actions github-actions bot added the arrow Changes to the arrow crate label Feb 13, 2024
@viirya viirya changed the title Propagate error instead of panic Propagate error instead of panic for take_bytes Feb 13, 2024
"Offset overflow for {}BinaryArray: {}",
T::Offset::PREFIX,
values.len()
)))?;
Copy link
Member Author

Choose a reason for hiding this comment

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

Also take the chance to improve the message.

@viirya viirya merged commit 1b06d78 into apache:master Feb 13, 2024
26 checks passed
@viirya
Copy link
Member Author

viirya commented Feb 13, 2024

Thanks @tustvold

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