You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "scovich (via GitHub)" <gi...@apache.org> on 2025/09/16 09:08:39 UTC
[PR] [Variant] Minor code cleanups [arrow-rs]
scovich opened a new pull request, #8356:
URL: https://github.com/apache/arrow-rs/pull/8356
# 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 memory accordingly.
# Are these changes tested?
Existing unit tests cover this code
# Are there any user-facing changes?
No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Variant] Minor code cleanups [arrow-rs]
Posted by "mbrobbel (via GitHub)" <gi...@apache.org>.
mbrobbel merged PR #8356:
URL: https://github.com/apache/arrow-rs/pull/8356
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Variant] Minor code cleanups [arrow-rs]
Posted by "mbrobbel (via GitHub)" <gi...@apache.org>.
mbrobbel commented on code in PR #8356:
URL: https://github.com/apache/arrow-rs/pull/8356#discussion_r2352164466
##########
parquet-variant-compute/src/variant_to_arrow.rs:
##########
@@ -97,19 +97,26 @@ pub(crate) fn make_variant_to_arrow_row_builder<'a>(
path: VariantPath<'a>,
data_type: Option<&'a DataType>,
cast_options: &'a CastOptions,
+ len: usize,
Review Comment:
Maybe use `capacity`?
```suggestion
capacity: usize,
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Variant] Minor code cleanups [arrow-rs]
Posted by "mbrobbel (via GitHub)" <gi...@apache.org>.
mbrobbel commented on PR #8356:
URL: https://github.com/apache/arrow-rs/pull/8356#issuecomment-3298807589
Thanks @scovich
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Variant] Minor code cleanups [arrow-rs]
Posted by "scovich (via GitHub)" <gi...@apache.org>.
scovich commented on PR #8356:
URL: https://github.com/apache/arrow-rs/pull/8356#issuecomment-3296872343
CC @alamb @codephage2020 -- should be a quickie
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org