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

PrettyPrint support for StringViewArray and BinaryViewArray #5634

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Apr 12, 2024

Which issue does this PR close?

Closes #5509

Rationale for this change

I want to be able to print out these arrays. See #5509

What changes are included in this PR?

  1. Implementation
  2. tests

Are there any user-facing changes?

new feature

@alamb alamb marked this pull request as ready for review April 12, 2024 13:28
@github-actions github-actions bot added the arrow Changes to the arrow crate label Apr 12, 2024
@@ -733,6 +735,13 @@ impl<'a, O: OffsetSizeTrait> DisplayIndex for &'a GenericStringArray<O> {
}
}

impl<'a> DisplayIndex for &'a StringViewArray {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The actual implementation is pretty straightforward. The tests are the largest part of this PR

@tustvold tustvold merged commit 905c46b into apache:master Apr 15, 2024
25 checks passed
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.

Display support for StringViewArray and BinaryViewArray
2 participants