[hotfix][docs] Correct reference link for DB2 docs (#1683)

pull/1690/head
Jiabao Sun 2 years ago committed by GitHub
parent 4e63851c6a
commit aee88f947c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -170,7 +170,7 @@ for more detailed information.</td>
<td>String</td> <td>String</td>
<td>The session time zone in database server, e.g. "Asia/Shanghai". <td>The session time zone in database server, e.g. "Asia/Shanghai".
It controls how the TIMESTAMP type in Db2 converted to STRING. It controls how the TIMESTAMP type in Db2 converted to STRING.
See more <a href="https://debezium.io/documentation/reference/1.6/connectors/mysql.html#mysql-temporal-types">here</a>. See more <a href="https://debezium.io/documentation/reference/1.6/connectors/db2.html#db2-temporal-types">here</a>.
If not set, then ZoneId.systemDefault() is used to determine the server time zone. If not set, then ZoneId.systemDefault() is used to determine the server time zone.
</td> </td>
</tr> </tr>
@ -192,7 +192,7 @@ Features
-------- --------
### Startup Reading Position ### 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. - `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 - `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.debezium.JsonDebeziumDeserializationSchema;
import com.ververica.cdc.connectors.db2.Db2Source; import com.ververica.cdc.connectors.db2.Db2Source;
public class MySqlSourceExample { public class Db2SourceExample {
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
Db2Source<SourceRecord> db2Source = Db2Source.<SourceRecord>builder() Db2Source<SourceRecord> db2Source = Db2Source.<SourceRecord>builder()
.hostname("yourHostname") .hostname("yourHostname")
@ -246,8 +246,7 @@ Data Type Mapping
<table class="colwidths-auto docutils"> <table class="colwidths-auto docutils">
<thead> <thead>
<tr> <tr>
<th class="text-left" style="width:30%;">Db2 type<a href="https://dev.mysql.com/doc/man/8.0/en/data-types. <th class="text-left" style="width:30%;"><a href="https://www.ibm.com/docs/en/db2/11.5?topic=elements-data-types">Db2 type</a></th>
html"></a></th>
<th class="text-left" style="width:10%;">Flink SQL type<a href="{% link dev/table/types.md %}"></a></th> <th class="text-left" style="width:10%;">Flink SQL type<a href="{% link dev/table/types.md %}"></a></th>
<th class="text-left" style="width:60%;">NOTE</th> <th class="text-left" style="width:60%;">NOTE</th>
</tr> </tr>

Loading…
Cancel
Save