-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[HUDI-4322] Deprecate partition value extractor #6040
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
48bbfc6 to
76abccd
Compare
76abccd to
fd5e2d6
Compare
fd5e2d6 to
15209b8
Compare
| public <T> String getStringOrDefault(ConfigProperty<T> configProperty) { | ||
| return getStringOrDefault(configProperty, configProperty.defaultValue().toString()); | ||
| } | ||
|
|
||
| public <T> String getStringOrDefault(ConfigProperty<T> configProperty, String defaultVal) { | ||
| Option<Object> rawValue = getRawValue(configProperty); | ||
| return rawValue.map(Object::toString).orElse(defaultVal); | ||
| } |
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.
re-arranged getString*() methods to keep them close
codope
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.
@xushiyan The changes look good to me. Is more work needed here? Also, now that the base PR has landed, please rebase.
Users do not need to set partition value extractor for meta sync. The existing interface
PartitionValueExtractoris marked as deprecated.stack on #6073