Skip to content

Commit

Permalink
cdc: add description about canal-json content-compatible. (#15579) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Dec 7, 2023
1 parent 9a66b1f commit 7c0cccc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ticdc/ticdc-canal-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,13 @@ TiCDC 对 Canal-JSON 数据格式的实现,包括 `Update` 类型事件和 `my
| `Update` 类型事件 | `old` 字段包含所有列数据 | `old` 字段仅包含被修改的列数据 |
| `mysqlType` 字段 | 对于含有参数的类型,没有类型参数信息 | 对于含有参数的类型,会包含完整的参数信息 |

### 兼容 Canal 官方实现

自 v6.5.6 开始,TiCDC Canal-JSON 支持兼容 Canal 官方输出的内容格式。在创建 changefeed 时,你可以在 `sink-uri` 中设置 `content-compatible=true` 以开启兼容模式。在该模式下,TiCDC 输出兼容官方实现的 Canal-JSON 格式数据。具体改动包括:

* `mysqlType` 字段包含每个类型的具体参数。
* `Update` 类型事件只输出被修改的列数据。

### `Update` 类型事件

对于 `Update` 类型事件,Canal 官方实现中,`old` 字段仅包含被修改的列数据,而 TiCDC 的实现则包含所有列数据。
Expand Down

0 comments on commit 7c0cccc

Please sign in to comment.