From 96bdc42192b38630aa95bd102decace26d1635b2 Mon Sep 17 00:00:00 2001 From: Aolin Date: Thu, 30 Nov 2023 17:26:05 +0800 Subject: [PATCH 1/3] cdc: add description about canal-json content-compatible Signed-off-by: Aolin --- ticdc/ticdc-canal-json.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ticdc/ticdc-canal-json.md b/ticdc/ticdc-canal-json.md index 4d9ec4483daf3..49198bee6bcea 100644 --- a/ticdc/ticdc-canal-json.md +++ b/ticdc/ticdc-canal-json.md @@ -267,6 +267,13 @@ The way that TiCDC implements the Canal-JSON data format, including the `Update` | Event of `Update` Type | By default, the `old` field contains all the column data. When `only_output_updated_columns` is `true`, the `old` field contains only the modified column data. | The `old` field contains only the modified column data | | `mysqlType` field | For types with parameters, it does not contain the information of the type parameter | For types with parameters, it contains the full information of the type parameter | +### Compatibility with the official Canal + +Starting from v6.5.6, TiCDC Canal-JSON supports compatibility with the data format of the official Canal. When creating a changefeed, you can set `content-compatible=true` in `sink-uri` to enable this feature. In this mode, TiCDC outputs Canal-JSON format data that is compatible with the official Canal. The specific changes are as follows: + +* The `mysqlType` field contains the full information of the type parameter for each type. +* An Event of `Update` Type only outputs the modified column data. + ### Event of `Update` Type For an Event of `Update` Type: From 93a7ef7f8a74fdf30ae8ffbf566261a6819fd035 Mon Sep 17 00:00:00 2001 From: Aolin Date: Mon, 18 Dec 2023 12:38:48 +0800 Subject: [PATCH 2/3] Apply suggestions from code review --- ticdc/ticdc-canal-json.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ticdc/ticdc-canal-json.md b/ticdc/ticdc-canal-json.md index 49198bee6bcea..5d1e7d6b9491d 100644 --- a/ticdc/ticdc-canal-json.md +++ b/ticdc/ticdc-canal-json.md @@ -269,7 +269,7 @@ The way that TiCDC implements the Canal-JSON data format, including the `Update` ### Compatibility with the official Canal -Starting from v6.5.6, TiCDC Canal-JSON supports compatibility with the data format of the official Canal. When creating a changefeed, you can set `content-compatible=true` in `sink-uri` to enable this feature. In this mode, TiCDC outputs Canal-JSON format data that is compatible with the official Canal. The specific changes are as follows: +Starting from v6.5.6 and v7.1.3, TiCDC Canal-JSON supports compatibility with the data format of the official Canal. When creating a changefeed, you can set `content-compatible=true` in `sink-uri` to enable this feature. In this mode, TiCDC outputs Canal-JSON format data that is compatible with the official Canal. The specific changes are as follows: * The `mysqlType` field contains the full information of the type parameter for each type. * An Event of `Update` Type only outputs the modified column data. From 29d571fdc340317ad2eed483559e3412f183b396 Mon Sep 17 00:00:00 2001 From: Aolin Date: Thu, 21 Dec 2023 10:36:48 +0800 Subject: [PATCH 3/3] Apply suggestions from code review Co-authored-by: Ran --- ticdc/ticdc-canal-json.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ticdc/ticdc-canal-json.md b/ticdc/ticdc-canal-json.md index 5d1e7d6b9491d..58221cd1a744b 100644 --- a/ticdc/ticdc-canal-json.md +++ b/ticdc/ticdc-canal-json.md @@ -272,7 +272,7 @@ The way that TiCDC implements the Canal-JSON data format, including the `Update` Starting from v6.5.6 and v7.1.3, TiCDC Canal-JSON supports compatibility with the data format of the official Canal. When creating a changefeed, you can set `content-compatible=true` in `sink-uri` to enable this feature. In this mode, TiCDC outputs Canal-JSON format data that is compatible with the official Canal. The specific changes are as follows: * The `mysqlType` field contains the full information of the type parameter for each type. -* An Event of `Update` Type only outputs the modified column data. +* An Event of `Update` Type only outputs data of the modified columns. ### Event of `Update` Type