From aee88f947cc4346e20d3fd27a179c52044fc545e Mon Sep 17 00:00:00 2001 From: Jiabao Sun Date: Wed, 2 Nov 2022 16:52:54 +0800 Subject: [PATCH] [hotfix][docs] Correct reference link for DB2 docs (#1683) --- docs/content/connectors/db2-cdc.md | 11 +++++------ docs/content/connectors/oracle-cdc.md | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/docs/content/connectors/db2-cdc.md b/docs/content/connectors/db2-cdc.md index ad0b8f54f..a5ef3cfd6 100644 --- a/docs/content/connectors/db2-cdc.md +++ b/docs/content/connectors/db2-cdc.md @@ -160,7 +160,7 @@ Connector Options initial String Optional startup mode for Db2 CDC consumer, valid enumerations are "initial" - and "latest-offset". Please see Startup Reading Positionsection + and "latest-offset". Please see Startup Reading Position section for more detailed information. @@ -170,7 +170,7 @@ for more detailed information. String The session time zone in database server, e.g. "Asia/Shanghai". It controls how the TIMESTAMP type in Db2 converted to STRING. - See more here. + See more here. If not set, then ZoneId.systemDefault() is used to determine the server time zone. @@ -192,7 +192,7 @@ Features -------- ### Startup Reading Position -The config option `scan.startup.mode` specifies the startup mode for MySQL CDC consumer. The valid enumerations are: +The config option `scan.startup.mode` specifies the startup mode for DB2 CDC consumer. The valid enumerations are: - `initial` (default): Performs an initial snapshot on the monitored database tables upon first startup, and continue to read the latest binlog. - `latest-offset`: Never to perform snapshot on the monitored database tables upon first startup, just read from @@ -209,7 +209,7 @@ import org.apache.kafka.connect.source.SourceRecord; import com.ververica.cdc.debezium.JsonDebeziumDeserializationSchema; import com.ververica.cdc.connectors.db2.Db2Source; -public class MySqlSourceExample { +public class Db2SourceExample { public static void main(String[] args) throws Exception { Db2Source db2Source = Db2Source.builder() .hostname("yourHostname") @@ -246,8 +246,7 @@ Data Type Mapping - + diff --git a/docs/content/connectors/oracle-cdc.md b/docs/content/connectors/oracle-cdc.md index 39dafd961..32e59844e 100644 --- a/docs/content/connectors/oracle-cdc.md +++ b/docs/content/connectors/oracle-cdc.md @@ -301,7 +301,7 @@ Connector Options + Please see Startup Reading Position section for more detailed information.
Db2 typeDb2 type Flink SQL type NOTE
String Optional startup mode for Oracle CDC consumer, valid enumerations are "initial" and "latest-offset". - Please see Startup Reading Positionsection for more detailed information.
debezium.*