Skip to content
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

[Feature][Mongodb-CDC] Support multi-table read #8029

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

hawk9821
Copy link
Contributor

@hawk9821 hawk9821 commented Nov 12, 2024

Purpose of this pull request

support multiTable Mongodb-CDC

close #7951

Does this PR introduce any user-facing change?

How was this patch tested?

E2E: MongodbCDCIT#testMongodbCdcMultiTableToMysqlCheckDataE2e

Check list

@hailin0 hailin0 changed the title [Feature][Mongodb-CDC] support multiTable Mongodb-CDC [Feature][Mongodb-CDC] Support multi-table read Nov 12, 2024
@hawk9821 hawk9821 force-pushed the mongocdc_mulititable branch 2 times, most recently from f62fa38 to e452278 Compare November 14, 2024 13:13
@hawk9821
Copy link
Contributor Author

image


try (Connection connection = getJdbcConnection();
PreparedStatement checkStmt = connection.prepareStatement(checkTableExistsSql)) {
checkStmt.setString(1, MYSQL_DATABASE); // 或者你可以直接提供数据库名
Copy link
Member

Choose a reason for hiding this comment

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

English support

Copy link
Member

Choose a reason for hiding this comment

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

+1

@@ -55,6 +55,12 @@ public static class TableIdentifierOptions {
.noDefaultValue()
.withDescription("SeaTunnel Schema");

public static final Option<List<Map<String, Object>>> TABLES_CONFIGS =
Copy link
Member

@Carl-Zhou-CN Carl-Zhou-CN Nov 15, 2024

Choose a reason for hiding this comment

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

tables_configs has also appeared elsewhere

Copy link
Contributor Author

@hawk9821 hawk9821 Nov 15, 2024

Choose a reason for hiding this comment

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

In FakeOption and BaseSourceConfigOptions , it is used for connector-fake and connector-file respectively, so this configuration is added to TableSchemaOptions , whether unified configuration is necessary ?

Copy link
Member

Choose a reason for hiding this comment

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

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.

[Feature][CDC] Support multi table read for mongodb source
3 participants