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 SchemaBuilder::remove (#4952) #4964

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

tustvold
Copy link
Contributor

Which issue does this PR close?

Part of #4952
Relates to #4908

Rationale for this change

Adds SchemaBuilder::remove and makes it more discoverable from Fields

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 Oct 20, 2023
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.

Code and tests look good to me -- thank you @tustvold

One thing I noticed is that there is no way to go directly from Schema to SchemaBuilder (though there is a impl from<Fields>)

I wonder if we should consider something like Schema::into_builder() and/or an impl From<Schema>

@tustvold
Copy link
Contributor Author

I wonder if we should consider something like

Yeah, I think we would need to make SchemaBuilder understand schema metadata for this, but definitely would make sense

@tustvold tustvold merged commit 03d0505 into apache:master Oct 20, 2023
25 checks passed
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.

2 participants