Skip to content

Conversation

@sap1ens
Copy link
Contributor

@sap1ens sap1ens commented Dec 21, 2022

Resolves #1152

Adding support for the Scan Newly Added Tables feature by bringing changes from the existing MySQL connector.

I'll have a follow-up PR to add support for Postgres once #1823 and this PR are merged. I've tested this extensively for the Postgres connector.

NOTE: this PR only adds common functionality. Adding support per connector will require separate PRs.

Copy link
Contributor

@Jiabao-Sun Jiabao-Sun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sap1ens for this contribution.
I left some comments.

Comment on lines 93 to 97
@Override
public boolean isScanNewlyAddedTableEnabled() {
return scanNewlyAddedTableEnabled;
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we missing the scan.newly-added-table.enabled config option for table api?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I don't see the Table API implementation in the flink-cdc-base module... Am I missing something?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we need to pass the scan.newly-added-table.enabled option via OracleTableSourceFactory and MongoDBTableSourceFactory.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I think actually enabling the option to be usable in connectors implementing the Incremental Snapshotting framework should be in a different pull request. Partially because of the scope of the change, but also because it might require connector-specific changes. And it definitely requires a lot of connector-specific testing.

@1032851561
Copy link

I'll have a follow-up PR to add support for Postgres once #1823 is merged

Can you share your branch?

@yuxiqian
Copy link
Member

Closing this PR since this feature has been implemented in #3024.

@Jiabao-Sun Jiabao-Sun closed this Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support dynamically table addition in flink-cdc-base

4 participants