Skip to content

Conversation

scovich
Copy link
Contributor

@scovich scovich commented Sep 16, 2025

Which issue does this PR close?

We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax.

  • Closes #NNN.

Rationale for this change

Small code cleanups that accumulated during other work.

What changes are included in this PR?

Now that VariantToArrowRowBuilder is an enum instead of a dyn trait, its finish method can take self instead of &mut self, which simplifies both its semantics and its call sites.

Additionally, pass the input length to the row builders so they can reserve capacity accordingly.

Are these changes tested?

Existing unit tests cover this code

Are there any user-facing changes?

No

@github-actions github-actions bot added the parquet-variant parquet-variant* crates label Sep 16, 2025
@scovich
Copy link
Contributor Author

scovich commented Sep 16, 2025

CC @alamb @codephage2020 -- should be a quickie

Copy link
Contributor

@codephage2020 codephage2020 left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@mbrobbel mbrobbel merged commit 89b4b13 into apache:main Sep 16, 2025
13 checks passed
@mbrobbel
Copy link
Member

Thanks @scovich

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parquet-variant parquet-variant* crates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants