diff --git a/docs/content.zh/docs/connectors/flink-sources/postgres-cdc.md b/docs/content.zh/docs/connectors/flink-sources/postgres-cdc.md index 69d47eb5720..68a09c889c9 100644 --- a/docs/content.zh/docs/connectors/flink-sources/postgres-cdc.md +++ b/docs/content.zh/docs/connectors/flink-sources/postgres-cdc.md @@ -470,7 +470,6 @@ public class PostgresParallelSourceExample { .slotName("flink") .decodingPluginName("decoderbufs") // use pgoutput for PostgreSQL 10+ .deserializer(deserializer) - .includeSchemaChanges(true) // output the schema changes as well .splitSize(2) // the split size of each snapshot split .build(); diff --git a/docs/content/docs/connectors/flink-sources/postgres-cdc.md b/docs/content/docs/connectors/flink-sources/postgres-cdc.md index 16c2d84b4a9..ea21ed7a3d3 100644 --- a/docs/content/docs/connectors/flink-sources/postgres-cdc.md +++ b/docs/content/docs/connectors/flink-sources/postgres-cdc.md @@ -481,7 +481,6 @@ public class PostgresParallelSourceExample { .slotName("flink") .decodingPluginName("decoderbufs") // use pgoutput for PostgreSQL 10+ .deserializer(deserializer) - .includeSchemaChanges(true) // output the schema changes as well .splitSize(2) // the split size of each snapshot split .build(); diff --git a/flink-cdc-connect/flink-cdc-source-connectors/flink-connector-postgres-cdc/src/main/java/org/apache/flink/cdc/connectors/postgres/source/PostgresSourceBuilder.java b/flink-cdc-connect/flink-cdc-source-connectors/flink-connector-postgres-cdc/src/main/java/org/apache/flink/cdc/connectors/postgres/source/PostgresSourceBuilder.java index ee991a70f81..af220061a17 100644 --- a/flink-cdc-connect/flink-cdc-source-connectors/flink-connector-postgres-cdc/src/main/java/org/apache/flink/cdc/connectors/postgres/source/PostgresSourceBuilder.java +++ b/flink-cdc-connect/flink-cdc-source-connectors/flink-connector-postgres-cdc/src/main/java/org/apache/flink/cdc/connectors/postgres/source/PostgresSourceBuilder.java @@ -199,12 +199,6 @@ public PostgresSourceBuilder connectionPoolSize(int connectionPoolSize) { return this; } - /** Whether the {@link PostgresIncrementalSource} should output the schema changes or not. */ - public PostgresSourceBuilder includeSchemaChanges(boolean includeSchemaChanges) { - this.configFactory.includeSchemaChanges(includeSchemaChanges); - return this; - } - /** Specifies the startup options. */ public PostgresSourceBuilder startupOptions(StartupOptions startupOptions) { this.configFactory.startupOptions(startupOptions); diff --git a/flink-cdc-connect/flink-cdc-source-connectors/flink-connector-postgres-cdc/src/test/java/org/apache/flink/cdc/connectors/postgres/source/PostgresSourceExampleTest.java b/flink-cdc-connect/flink-cdc-source-connectors/flink-connector-postgres-cdc/src/test/java/org/apache/flink/cdc/connectors/postgres/source/PostgresSourceExampleTest.java index f6f2b45d90c..77165333b91 100644 --- a/flink-cdc-connect/flink-cdc-source-connectors/flink-connector-postgres-cdc/src/test/java/org/apache/flink/cdc/connectors/postgres/source/PostgresSourceExampleTest.java +++ b/flink-cdc-connect/flink-cdc-source-connectors/flink-connector-postgres-cdc/src/test/java/org/apache/flink/cdc/connectors/postgres/source/PostgresSourceExampleTest.java @@ -108,7 +108,6 @@ public void testConsumingScanEvents() throws Exception { .slotName(SLOT_NAME) .decodingPluginName(PLUGIN_NAME) .deserializer(deserializer) - .includeSchemaChanges(true) // output the schema changes as well .splitSize(2) .build(); @@ -153,7 +152,6 @@ public void testConsumingAllEvents() throws Exception { .slotName(SLOT_NAME) .decodingPluginName(PLUGIN_NAME) .deserializer(buildRowDataDebeziumDeserializeSchema(dataType)) - .includeSchemaChanges(true) // output the schema changes as well .splitSize(2) .debeziumProperties(debeziumProps) .build();