-
Notifications
You must be signed in to change notification settings - Fork 194
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
topics.regex support in BigQuery Sink Connector #261
Conversation
I've made TOPICS_CONFIG as an optional parameter because either one of the parameters should present (TOPICS_CONFIG or TOPICS_REGEX_CONFIG). |
private static final String TOPICS_DISPLAY = "Topics"; | ||
|
||
public static final String TOPICS_REGEX_CONFIG = "topics.regex"; | ||
private static final ConfigDef.Type TOPICS_REGEX_TYPE = ConfigDef.Type.STRING; |
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.
When many different topics configured for one KCBQ connector, it will be odd to represent them all with single regex. How about make it a list of regex?
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.
Aha, looks like these config are mirroring https://github.com/apache/kafka/blob/1.1.1/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/SinkConnectorConfig.java#L38-L43
Wasn't pay attention to the title. Looks like the TOPIC_REGEX_CONFIG is just mirroring https://github.com/apache/kafka/blob/1.1.1/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/SinkConnectorConfig.java#L38-L43 |
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.
Looks good in general! Just one suggested change. See below.
No description provided.