Skip to content

[Flink-38911][cdc connector mysql] mysql-cdc-connector datastream support scan.binlog.newly-added-table.enabled #4246

Open
ThorneANN wants to merge 3 commits intoapache:masterfrom
ThorneANN:FLINK-38911-binlog-added-new-table
Open

[Flink-38911][cdc connector mysql] mysql-cdc-connector datastream support scan.binlog.newly-added-table.enabled #4246
ThorneANN wants to merge 3 commits intoapache:masterfrom
ThorneANN:FLINK-38911-binlog-added-new-table

Conversation

@ThorneANN
Copy link
Contributor

This commit implements the binlog-only newly added table capture feature for MySQL CDC DataStream connector, allowing dynamic table discovery without snapshot phase.

Key changes:

Add new config option 'scan.binlog.newly-added-table.enabled' in MySqlSourceOptions
Add scanBinlogNewlyAddedTableEnabled field and getter in MySqlSourceConfig
Implement table pattern conversion from Flink CDC style to Debezium style in MySqlSourceConfigFactory
Add validation logic to ensure binlog-only mode works only with stream-only startup modes
Enhance BinlogSplitReader to auto-capture newly added tables matching the pattern
Add logging in MySqlSnapshotSplitAssigner for binlog-only mode
Expose scanBinlogNewlyAddedTableEnabled() API in MySqlSourceBuilder
The feature converts table patterns (e.g., "db.table_.") to Debezium regex style (e.g., "db.table_.")
and enables dynamic table discovery during binlog reading phase without triggering snapshots.

Thorne and others added 3 commits January 29, 2026 20:15
…r DataStream API

This commit implements the binlog-only newly added table capture feature for MySQL CDC DataStream connector, allowing dynamic table discovery without snapshot phase.

Key changes:
- Add new config option 'scan.binlog.newly-added-table.enabled' in MySqlSourceOptions
- Add scanBinlogNewlyAddedTableEnabled field and getter in MySqlSourceConfig
- Implement table pattern conversion from Flink CDC style to Debezium style in MySqlSourceConfigFactory
- Add validation logic to ensure binlog-only mode works only with stream-only startup modes
- Enhance BinlogSplitReader to auto-capture newly added tables matching the pattern
- Add logging in MySqlSnapshotSplitAssigner for binlog-only mode
- Expose scanBinlogNewlyAddedTableEnabled() API in MySqlSourceBuilder

The feature converts table patterns (e.g., "db.table_\.*") to Debezium regex style (e.g., "db\.table_.*")
and enables dynamic table discovery during binlog reading phase without triggering snapshots.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@github-actions github-actions bot added docs Improvements or additions to documentation mysql-cdc-connector labels Jan 30, 2026
@ThorneANN ThorneANN changed the title [Flink 38911][cdc connector mysql] mysql-cdc-connector datastream support scan.binlog.newly-added-table.enabled [Flink-38911][cdc connector mysql] mysql-cdc-connector datastream support scan.binlog.newly-added-table.enabled Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation mysql-cdc-connector

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant