Skip to content

Commit

Permalink
[hotfix][docs][postgres] Remove unsupported erroneous example code
Browse files Browse the repository at this point in the history
This closes #3464
  • Loading branch information
gtk96 authored Jul 16, 2024
1 parent 2d1eb0a commit a2539f5
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
1 change: 0 additions & 1 deletion docs/content/docs/connectors/flink-sources/postgres-cdc.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,6 @@ public PostgresSourceBuilder<T> connectionPoolSize(int connectionPoolSize) {
return this;
}

/** Whether the {@link PostgresIncrementalSource} should output the schema changes or not. */
public PostgresSourceBuilder<T> includeSchemaChanges(boolean includeSchemaChanges) {
this.configFactory.includeSchemaChanges(includeSchemaChanges);
return this;
}

/** Specifies the startup options. */
public PostgresSourceBuilder<T> startupOptions(StartupOptions startupOptions) {
this.configFactory.startupOptions(startupOptions);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit a2539f5

Please sign in to comment.