-
Notifications
You must be signed in to change notification settings - Fork 14k
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
[WIP] KIP-891: Connect Multiversion Support (Transformation and Predicate Changes) #17742
base: trunk
Are you sure you want to change the base?
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.
I don't see anything that stands out to me right now. Once the build is fixed i think we can merge.
Hi @gharris1727. I have updated the code a bit. PTAL and LMK if you have any queries. |
final ConfigDef.Validator typeValidator = ConfigDef.LambdaValidator.with( | ||
(String name, Object value) -> { | ||
validateProps(prefix); | ||
// The value will be null if the class couldn't be found; no point in performing follow-up validation | ||
if (value != null) { | ||
getConfigDefFromConfigProvidingClass(typeConfig, (Class<?>) value); | ||
getConfigDefFromPlugin(typeConfig, ((Class<?>) value).getName(), null, plugins); |
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.
I think this validator needs to include the error when the version is incorrect, similar to the converters.
The is one of a set of PRs for KIP-891. The list of total PRs given below all build one the previous one in the list. They can be reviewed individually, or if the complete set of changes is preferrable, please refer to the last PR.
This is PR#3 and contains changes to support multiple versions of transformation and predicates with appropriate defaults and validations.
Committer Checklist (excluded from commit message)