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

ARROW-11777: [Rust] impl AsRef for StringBuilder/BinaryBuilder #9570

Closed
wants to merge 3 commits into from

Conversation

Max-Meldrum
Copy link
Contributor

This patch adds impl AsRef<[u8]> to the append_value/append of StringBuilder and BinaryBuilder.

pub fn append_value(&mut self, value: impl AsRef<[u8]>) -> Result<()>

Non-breaking change that will enable data to be passed as value as well.

@github-actions
Copy link

@nevi-me nevi-me changed the title ARROW-11777: [Rust][Arrow/Datafusion] impl AsRef for StringBuilder/BinaryBuilder ARROW-11777: [Rust] impl AsRef for StringBuilder/BinaryBuilder Feb 25, 2021
Copy link
Contributor

@nevi-me nevi-me left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

@Max-Meldrum this looks like a great improvement. Thank you for the contribution

@alamb alamb closed this in e10d2ea Feb 25, 2021
GeorgeAp pushed a commit to sirensolutions/arrow that referenced this pull request Jun 7, 2021
This patch adds impl AsRef<[u8]> to the append_value/append of StringBuilder and BinaryBuilder.

```rust
pub fn append_value(&mut self, value: impl AsRef<[u8]>) -> Result<()>
```

Non-breaking change that will enable data to be passed as value as well.

Closes apache#9570 from Max-Meldrum/as_ref_patch

Authored-by: Max Meldrum <max@meldrum.se>
Signed-off-by: Andrew Lamb <andrew@nerdnetworks.org>
michalursa pushed a commit to michalursa/arrow that referenced this pull request Jun 13, 2021
This patch adds impl AsRef<[u8]> to the append_value/append of StringBuilder and BinaryBuilder.

```rust
pub fn append_value(&mut self, value: impl AsRef<[u8]>) -> Result<()>
```

Non-breaking change that will enable data to be passed as value as well.

Closes apache#9570 from Max-Meldrum/as_ref_patch

Authored-by: Max Meldrum <max@meldrum.se>
Signed-off-by: Andrew Lamb <andrew@nerdnetworks.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants