-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
API: Deprecate NestedType.of in favor of builder #12227
Conversation
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.
@rdblue I believe you meant to also push changes that include a builder()
method. Also I think it would be good to update all of the usages in SchemaUpdate
to the non-deprecated methods
That's done in #12211. This will be rebased and merged after that one goes in. |
5e0c7a7
to
48137ab
Compare
LGTM, thanks @rdblue |
This is a follow up to #12211. While adding support for default values in
UpdateSchema
, many of the changes were to use theNestedField
builder's copy constructor,from(NestedField)
, so that field defaults are not dropped. Dropping defaults is easy to do when using theof
factory method that was previously used to copy fields.This PR deprecates that factory method and removes deprecated uses of
NestedField
methods.