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

[flink] [cdc] upgrade to flink cdc 3.2.1 #4868

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions docs/content/cdc-ingestion/mysql-cdc.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ Paimon supports synchronizing changes from different databases using change data

Download `CDC Bundled Jar` and put them under <FLINK_HOME>/lib/.

| Version | Bundled Jar |
|---------|-------------------------------------------------------------------------------------------------------------------------|
| 3.1.x | <li> flink-sql-connector-mysql-cdc-3.1.x.jar <li> mysql-connector-java-8.0.27.jar |
| Version | Bundled Jar |
|---------|-----------------------------------------------------------------------------------|
| 3.1.x | <li> flink-sql-connector-mysql-cdc-3.1.x.jar <li> mysql-connector-java-8.0.27.jar |
| 3.2.x | <li> flink-sql-connector-mysql-cdc-3.2.x.jar <li> mysql-connector-java-8.0.27.jar |

{{< hint danger >}}
Only cdc 3.1+ is supported.
Expand Down
2 changes: 1 addition & 1 deletion paimon-flink/paimon-flink-cdc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ under the License.

<properties>
<flink.version>1.20.0</flink.version>
<flink.cdc.version>3.1.1</flink.cdc.version>
<flink.cdc.version>3.2.1</flink.cdc.version>
<flink.mongodb.cdc.version>3.1.1</flink.mongodb.cdc.version>
<avro.version>1.11.4</avro.version>
<geometry.version>2.2.0</geometry.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public static JdbcIncrementalSource<CdcSourceRecord> buildPostgresSource(
customConverterConfigs.put(JsonConverterConfig.DECIMAL_FORMAT_CONFIG, "numeric");
CdcDebeziumDeserializationSchema schema =
new CdcDebeziumDeserializationSchema(true, customConverterConfigs);
return sourceBuilder.deserializer(schema).includeSchemaChanges(true).build();
return sourceBuilder.deserializer(schema).build();
}

public static void registerJdbcDriver() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ public void testSchemaEvolutionAndNewlyCreatedTable() throws Exception {

// ------------------------------------- ignore-not-null -------------------------------------
@Test
@Timeout(60)
@Timeout(180)
public void testIgnoreNotNull() throws Exception {
Map<String, String> mySqlConfig = getBasicMySqlConfig();
mySqlConfig.put("database-name", "ignore_not_null_test");
Expand Down Expand Up @@ -607,7 +607,7 @@ public void testLongtextToBytes() throws Exception {
// --------------------------------- bigint-unsigned-to-bigint ---------------------------------

@Test
@Timeout(60)
@Timeout(180)
public void testBigintUnsignedToBigint() throws Exception {
Map<String, String> mySqlConfig = getBasicMySqlConfig();
mySqlConfig.put("database-name", "bigint_unsigned_to_bigint_test");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ private void testSchemaEvolutionImpl(Statement statement) throws Exception {
}

@Test
@Timeout(60)
@Timeout(180)
public void testMultipleSchemaEvolutions() throws Exception {
Map<String, String> postgresConfig = getBasicPostgresConfig();
postgresConfig.put(PostgresSourceOptions.DATABASE_NAME.key(), DATABASE_NAME);
Expand Down Expand Up @@ -627,7 +627,7 @@ private void innerTestComputedColumn(boolean execute) throws Exception {
}

@Test
@Timeout(60)
@Timeout(180)
public void testSyncShards() throws Exception {
Map<String, String> postgresConfig = getBasicPostgresConfig();

Expand Down Expand Up @@ -677,7 +677,7 @@ public void testSyncShards() throws Exception {
}

@Test
@Timeout(60)
@Timeout(180)
public void testOptionsChange() throws Exception {
Map<String, String> postgresConfig = getBasicPostgresConfig();
postgresConfig.put(PostgresSourceOptions.DATABASE_NAME.key(), DATABASE_NAME);
Expand Down
Loading