-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[Variant] Add nullable arg to StructArrayBuilder::with_field #8342
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
Conversation
|
CC @alamb @codephage2020 -- should be a quickie |
alamb
left a comment
There was a problem hiding this 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 -- thanks @scovich
|
It looks like there is a conflict in this PR |
Some kind of github confusion, methinks? The git cli handled it fine 🤷 |
codephage2020
left a comment
There was a problem hiding this 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!
|
Merged up to resolve a conflict per @codephage2020 |
|
Thanks @scovich and @codephage2020 |
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.
Rationale for this change
StructArrayBuilder::with_fieldis currently hard-wired to assume the field will be nullable. This is unhelpful when adding non-nullable fields such as variant ametadatacolumn.What changes are included in this PR?
Add a third parameter,
nullable.Are these changes tested?
The builder is heavily used by unit tests, which have been adjusted to pass the new param.
Are there any user-facing changes?
No.