Skip to content

Commit 9afe3ae

Browse files
hfxsdti-chi-bot
authored andcommitted
This is an automated cherry-pick of #16903
Signed-off-by: ti-chi-bot <[email protected]>
1 parent 78e60f1 commit 9afe3ae

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

ticdc/ticdc-open-api-v2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,11 @@ The `sink.csv` parameters are described as follows:
357357
| `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 `"`. |
358358
| `binary_encoding_method` | `STRING` type. The encoding method of binary data, which can be `"base64"` or `"hex"`. The default value is `"base64"`. |
359359

360-
`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:
360+
`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:
361361

362362
- `default`: when multiple unique indexes (including the primary key) exist, events are dispatched in the table mode. When only one unique index (or the primary key) exists, events are dispatched in the rowid mode. If the Old Value feature is enabled, events are dispatched in the table mode.
363363
- `ts`: uses the commitTs of the row change to create the hash value and dispatch events.
364-
- `rowid`: uses the name and value of the selected HandleKey column to create the hash value and dispatch events.
364+
- `index-value`: uses the name and value of the selected HandleKey column to create the hash value and dispatch events.
365365
- `table`: uses the schema name of the table and the table name to create the hash value and dispatch events.
366366

367367
`sink.dispatchers` is an array. The parameters are described as follows:

ticdc/ticdc-open-api.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,18 +148,25 @@ The configuration parameters of sink are as follows:
148148
{
149149
"dispatchers":[
150150
{"matcher":["test1.*", "test2.*"], "dispatcher":"ts"},
151-
{"matcher":["test3.*", "test4.*"], "dispatcher":"rowid"}
151+
{"matcher":["test3.*", "test4.*"], "dispatcher":"index-value"}
152152
],
153153
"protocal":"canal-json"
154154
}
155155
```
156156

157-
`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:
157+
`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:
158158

159+
<<<<<<< HEAD
159160
- `default`: When multiple unique indexes (including the primary key) exist or the Old Value feature is enabled, events are dispatched in the `table` mode. When only one unique index (or the primary key) exists, events are dispatched in the `rowid` mode.
160161
- `ts`: Uses the commitTs of the row change to create the hash value and dispatch events.
161162
- `rowid`: Uses the name and value of the selected HandleKey column to create the hash value and dispatch events.
162163
- `table`: Uses the schema name of the table and the table name to create the hash value and dispatch events.
164+
=======
165+
- `default`: dispatches events in the `table` mode.
166+
- `ts`: uses the commitTs of the row change to create the hash value and dispatch events.
167+
- `index-value`: uses the name and value of the selected HandleKey column to create the hash value and dispatch events.
168+
- `table`: uses the schema name of the table and the table name to create the hash value and dispatch events.
169+
>>>>>>> 010f6c2ad8 (ticdc: fix incompatiable config description (#16903))
163170
164171
`matcher`: The matching syntax of matcher is the same as the filter rule syntax.
165172

0 commit comments

Comments
 (0)