Skip to content

Conversation

@jorgecarleitao
Copy link
Member

Currently, our code-base supports creating a StringArray from an iterator of String.

However, from arrow's perspective, we should not care if it is a String or a &str, as long as it can be represented by an AsRef<str>. A user sometimes is able to create an iterator of &str instead of String, and should not have to convert one to the other before passing it to Arrow.

This PR makes this change.

@github-actions
Copy link

github-actions bot commented Nov 3, 2020

@jorgecarleitao jorgecarleitao changed the title ARROW-10476: [Rust] Allow string arrays to be built from &str or String. ARROW-10476: [Rust] Allow string arrays to be built from Option<&str> or Option<String> Nov 3, 2020
@nevi-me nevi-me self-requested a review November 3, 2020 22:22
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

@vertexclique vertexclique left a comment

Choose a reason for hiding this comment

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

Nice! It will help to the parquet indirectly.

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