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 specifying list capacities for MutableArrayData #1885

Merged

Conversation

jhorstmann
Copy link
Contributor

Which issue does this PR close?

Closes #1884.

Rationale for this change

What changes are included in this PR?

Support for list capacities was already nearly complete, just a few lines missing :)

Are there any user-facing changes?

No. It seems though that the optional second value of Capacities::Binary is always assumed to be present. The Capacities enum could be simplified a bit by making it required. If the user does not know the exact capacity, they could use the Capacities::Array variant instead.

@github-actions github-actions bot added the arrow Changes to the arrow crate label Jun 15, 2022
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.

LGTM -- thanks @jhorstmann !

@alamb alamb merged commit f159679 into apache:master Jun 16, 2022
@alamb alamb changed the title Support specifying list capacities for MutableArrayData Support specifying list capacities for MutableArrayData Jun 16, 2022
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.

Support specifying capacities for ListArrays in MutableArrayData
2 participants