|
55 | 55 | import static org.apache.flink.cdc.connectors.postgres.source.config.PostgresSourceOptions.DECODING_PLUGIN_NAME; |
56 | 56 | import static org.apache.flink.cdc.connectors.postgres.source.config.PostgresSourceOptions.HEARTBEAT_INTERVAL; |
57 | 57 | import static org.apache.flink.cdc.connectors.postgres.source.config.PostgresSourceOptions.PG_PORT; |
| 58 | +import static org.apache.flink.cdc.connectors.postgres.source.config.PostgresSourceOptions.SCAN_INCLUDE_PARTITIONED_TABLES_ENABLED; |
58 | 59 | import static org.apache.flink.cdc.connectors.postgres.source.config.PostgresSourceOptions.SCAN_INCREMENTAL_SNAPSHOT_CHUNK_KEY_COLUMN; |
59 | 60 | import static org.apache.flink.cdc.connectors.postgres.source.config.PostgresSourceOptions.SCAN_INCREMENTAL_SNAPSHOT_CHUNK_SIZE; |
60 | 61 | import static org.apache.flink.cdc.connectors.postgres.source.config.PostgresSourceOptions.SCAN_INCREMENTAL_SNAPSHOT_ENABLED; |
@@ -117,6 +118,7 @@ public DynamicTableSource createDynamicTableSource(DynamicTableFactory.Context c |
117 | 118 | boolean skipSnapshotBackfill = config.get(SCAN_INCREMENTAL_SNAPSHOT_BACKFILL_SKIP); |
118 | 119 | boolean isScanNewlyAddedTableEnabled = config.get(SCAN_NEWLY_ADDED_TABLE_ENABLED); |
119 | 120 | int lsnCommitCheckpointsDelay = config.get(SCAN_LSN_COMMIT_CHECKPOINTS_DELAY); |
| 121 | + boolean includePartitionedTables = config.get(SCAN_INCLUDE_PARTITIONED_TABLES_ENABLED); |
120 | 122 | boolean assignUnboundedChunkFirst = |
121 | 123 | config.get(SCAN_INCREMENTAL_SNAPSHOT_UNBOUNDED_CHUNK_FIRST_ENABLED); |
122 | 124 | boolean appendOnly = config.get(SCAN_READ_CHANGELOG_AS_APPEND_ONLY_ENABLED); |
@@ -167,7 +169,8 @@ public DynamicTableSource createDynamicTableSource(DynamicTableFactory.Context c |
167 | 169 | isScanNewlyAddedTableEnabled, |
168 | 170 | lsnCommitCheckpointsDelay, |
169 | 171 | assignUnboundedChunkFirst, |
170 | | - appendOnly); |
| 172 | + appendOnly, |
| 173 | + includePartitionedTables); |
171 | 174 | } |
172 | 175 |
|
173 | 176 | @Override |
@@ -212,6 +215,7 @@ public Set<ConfigOption<?>> optionalOptions() { |
212 | 215 | options.add(SCAN_LSN_COMMIT_CHECKPOINTS_DELAY); |
213 | 216 | options.add(SCAN_INCREMENTAL_SNAPSHOT_UNBOUNDED_CHUNK_FIRST_ENABLED); |
214 | 217 | options.add(SCAN_READ_CHANGELOG_AS_APPEND_ONLY_ENABLED); |
| 218 | + options.add(SCAN_INCLUDE_PARTITIONED_TABLES_ENABLED); |
215 | 219 | return options; |
216 | 220 | } |
217 | 221 |
|
|
0 commit comments