-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 checkClassName regex func #11303
Conversation
Thanks for the PR @ryanjclark ! |
@@ -406,6 +406,10 @@ public JsonConverter jsonConverter() { | |||
return jsonConverter; | |||
} | |||
|
|||
public static boolean checkClassName(String className) { |
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.
One nit, can you make this private
?
@@ -406,6 +406,10 @@ public JsonConverter jsonConverter() { | |||
return jsonConverter; | |||
} | |||
|
|||
static boolean checkClassName(String className) { |
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.
One more nit, could you add @VisibleForTesting
? That makes it clear why it isn't private.
We have a custom wrapper on the ConnectDistributed class which does not match the regex check here. This PR expands the regex to be more generous but is still reasonable, especially considering the properties check afterwards.
Closes an issue in tabular.io/iceberg-kafka-connect