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

Add ListArray Constructors (#3879) #4065

Merged
merged 7 commits into from
Apr 16, 2023

Conversation

tustvold
Copy link
Contributor

@tustvold tustvold commented Apr 12, 2023

Which issue does this PR close?

Part of #3879
Closes #4066

Rationale for this change

Adds constructors for ListArray

What changes are included in this PR?

Are there any user-facing changes?

@github-actions github-actions bot added the arrow Changes to the arrow crate label Apr 12, 2023
@tustvold tustvold force-pushed the list-array-constructors branch 2 times, most recently from 291433f to 67f7016 Compare April 12, 2023 14:57
@tustvold tustvold changed the title Add ListArray constructors (#3879) Add ListArray Constructors (#3879) Apr 12, 2023
@tustvold tustvold force-pushed the list-array-constructors branch from 8f78a26 to 9b61c62 Compare April 12, 2023 19:30
@@ -104,6 +113,11 @@ mod tests {
OffsetBuffer::new(vec![-1, 0, 1].into());
}

#[test]
fn offsets() {
OffsetBuffer::new(vec![0, 1, 2, 3].into());
Copy link
Contributor Author

@tustvold tustvold Apr 12, 2023

Choose a reason for hiding this comment

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

It is kinda embarrassing that this slipped through 😅

@tustvold tustvold marked this pull request as ready for review April 12, 2023 19:48
@tustvold tustvold force-pushed the list-array-constructors branch from bdd68be to 185c095 Compare April 12, 2023 19:55
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.

Can you please add test coverage for the new method (ideally including error cases)?

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 @tustvold

Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
@tustvold tustvold merged commit 472c977 into apache:master Apr 16, 2023
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.

OffsetBuffer::new Rejects 0 Offsets
2 participants