Commit e49d2d4
committed
Expose scan.newly-added-table.enabled option
Add the scan.newly-added-table.enabled YAML option to the Postgres Pipeline
connector. The underlying SnapshotSplitAssigner.captureNewlyAddedTables()
mechanism + PostgresSourceBuilder.scanNewlyAddedTableEnabled() builder
method already exist in the postgres-cdc source; this PR adds the missing
YAML-side wiring.
Mirrors the same option already exposed by the MySQL Pipeline connector
(MySqlDataSourceOptions.SCAN_NEWLY_ADDED_TABLE_ENABLED).
Default is false, so the change is no-op for existing pipelines. When set
to true, restoring from a savepoint will discover tables that match the
source tables: pattern but were not part of the captured set at savepoint
time — enabling DMS-style 'add a new table without re-snapshotting existing
tables' workflows.
Signed-off-by: Mehmet Can Şakiroğlu <cansakiroglu@gmail.com>1 parent 7355d76 commit e49d2d4
2 files changed
Lines changed: 17 additions & 0 deletions
File tree
- flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-postgres/src/main/java/org/apache/flink/cdc/connectors/postgres
- factory
- source
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| |||
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
| 137 | + | |
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
| |||
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
| 180 | + | |
178 | 181 | | |
179 | 182 | | |
180 | 183 | | |
| |||
266 | 269 | | |
267 | 270 | | |
268 | 271 | | |
| 272 | + | |
269 | 273 | | |
270 | 274 | | |
271 | 275 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
284 | 297 | | |
0 commit comments