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

Support StringArray creation from String Vec #522

Merged

Conversation

silathdiir
Copy link
Contributor

Which issue does this PR close?

Closes #519.

Rationale for this change

As described in the issue, tries to create a StringArray from a Vec<String>.

What changes are included in this PR?

  1. Fixes function from_vec to support generic parameter type of AsRef<str>.
  2. Adds a new From<Vec<String>> Implementation for StringArray.

Are there any user-facing changes?

With this fix, StringArray could be created from Vec<String>.

@github-actions github-actions bot added the arrow Changes to the arrow crate label Jul 4, 2021
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.

Thank you @silathdiir ! Looks great to me

@silathdiir silathdiir force-pushed the allow-string-array-creation-from-string-vec branch from 69d2919 to f7437b9 Compare July 9, 2021 00:26
@alamb
Copy link
Contributor

alamb commented Jul 9, 2021

Thanks again @silathdiir !

@alamb alamb merged commit 04d2057 into apache:master Jul 9, 2021
@silathdiir silathdiir deleted the allow-string-array-creation-from-string-vec branch July 9, 2021 13:05
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.

Allow creation of StringArrays from Vec<String>
3 participants