From 010f6c2ad848ccbeeca3bd5487d440912853a0dd Mon Sep 17 00:00:00 2001 From: xixirangrang Date: Mon, 1 Apr 2024 10:37:46 +0800 Subject: [PATCH] ticdc: fix incompatiable config description (#16903) --- ticdc/ticdc-open-api-v2.md | 4 ++-- ticdc/ticdc-open-api.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ticdc/ticdc-open-api-v2.md b/ticdc/ticdc-open-api-v2.md index 026e4ae66c4db..dd8d281b6ee54 100644 --- a/ticdc/ticdc-open-api-v2.md +++ b/ticdc/ticdc-open-api-v2.md @@ -334,11 +334,11 @@ The `sink.csv` parameters are described as follows: | `quote` | `STRING` type. The quotation character used to surround fields in the CSV file. If the value is empty, no quotation is used. The default value is `"`. | | `binary_encoding_method` | `STRING` type. The encoding method of binary data, which can be `"base64"` or `"hex"`. The default value is `"base64"`. | -`sink.dispatchers`: for the sink of MQ type, you can use this parameter to configure the event dispatcher. The following dispatchers are supported: `default`, `ts`, `rowid`, and `table`. The dispatcher rules are as follows: +`sink.dispatchers`: for the sink of MQ type, you can use this parameter to configure the event dispatcher. The following dispatchers are supported: `default`, `ts`, `index-value`, and `table`. The dispatcher rules are as follows: - `default`: dispatches events in the `table` mode. - `ts`: uses the commitTs of the row change to create the hash value and dispatch events. -- `rowid`: uses the name and value of the selected HandleKey column to create the hash value and dispatch events. +- `index-value`: uses the name and value of the selected HandleKey column to create the hash value and dispatch events. - `table`: uses the schema name of the table and the table name to create the hash value and dispatch events. `sink.dispatchers` is an array. The parameters are described as follows: diff --git a/ticdc/ticdc-open-api.md b/ticdc/ticdc-open-api.md index ea24874ea44a3..331528f7d31e9 100644 --- a/ticdc/ticdc-open-api.md +++ b/ticdc/ticdc-open-api.md @@ -148,17 +148,17 @@ The configuration parameters of sink are as follows: { "dispatchers":[ {"matcher":["test1.*", "test2.*"], "dispatcher":"ts"}, - {"matcher":["test3.*", "test4.*"], "dispatcher":"rowid"} + {"matcher":["test3.*", "test4.*"], "dispatcher":"index-value"} ], "protocal":"canal-json" } ``` -`dispatchers`: For the sink of MQ type, you can use dispatchers to configure the event dispatcher. Four dispatchers are supported: `default`, `ts`, `rowid`, and `table`. The dispatcher rules are as follows: +`dispatchers`: For the sink of MQ type, you can use dispatchers to configure the event dispatcher. Four dispatchers are supported: `default`, `ts`, `index-value`, and `table`. The dispatcher rules are as follows: - `default`: dispatches events in the `table` mode. - `ts`: uses the commitTs of the row change to create the hash value and dispatch events. -- `rowid`: uses the name and value of the selected HandleKey column to create the hash value and dispatch events. +- `index-value`: uses the name and value of the selected HandleKey column to create the hash value and dispatch events. - `table`: uses the schema name of the table and the table name to create the hash value and dispatch events. `matcher`: The matching syntax of matcher is the same as the filter rule syntax.