-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[FLINK-38779] Route module supports standard RegExp replacement rules #4190
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
|
Blocked by #4187. |
5b5eb88 to
97ef1bb
Compare
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
lvyanquan
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.
+1.
This closes FLINK-38779.
CDC Pipeline router supports simple table name replacement for now. A route rule like this:
- { source-table: 'db.\\.*', sink-table: 'new_db.<>', replace-symbol: '<>' }synchronizes all tables in
dbtonew_db.More complicated routing rules, including re-mapping database and schema name, or capturing parts of identifiers, is not possible.
Current API could be extended to support standard RegEx capturing & replacement syntaxes like this:
- { source-table: 'db.(\\.*)', sink-table: 'new_db.$1' }and keep backwards compatiblility.
TableIdRouterhas been moved toflink-cdc-commonas a Public API.