From 1e06f45bb278dd11f0168b97ac931dde3079d761 Mon Sep 17 00:00:00 2001 From: hongyunyan <649330952@qq.com> Date: Mon, 25 Mar 2024 15:44:20 +0800 Subject: [PATCH 1/3] add config --- ticdc/ticdc-changefeed-config.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ticdc/ticdc-changefeed-config.md b/ticdc/ticdc-changefeed-config.md index 1e6215af3d754..1d02826d049d0 100644 --- a/ticdc/ticdc-changefeed-config.md +++ b/ticdc/ticdc-changefeed-config.md @@ -193,6 +193,12 @@ enable-partition-separator = true # include-commit-ts = false # The encoding method of binary data, which can be 'base64' or 'hex'. The default value is 'base64'. # binary-encoding-method = 'base64' +# Whether to output handle key information. The default value is false. +# This variable is for internal implementation only and setting this variable is not recommended. +# output-handle-key = false +# Whether to output the value before the row data changes. The default value is false. +# After being turned on, the Update event will output two lines of data. The first line is a Delete event, which outputs the data before the change, and the second line is a Insert event, which outputs the changed data. +# output-old-value = false # Specifies the replication consistency configurations for a changefeed when using the redo log. For more information, see https://docs.pingcap.com/tidb/stable/ticdc-sink-to-mysql#eventually-consistent-replication-in-disaster-scenarios. # Note: The consistency-related configuration items only take effect when the downstream is a database and the redo log feature is enabled. From e33491b070ad787d13728ee35ff460b49239e028 Mon Sep 17 00:00:00 2001 From: Lilian Lee Date: Wed, 27 Mar 2024 11:22:02 +0800 Subject: [PATCH 2/3] Refine wording --- ticdc/ticdc-changefeed-config.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ticdc/ticdc-changefeed-config.md b/ticdc/ticdc-changefeed-config.md index 1d02826d049d0..5fed5619a2c51 100644 --- a/ticdc/ticdc-changefeed-config.md +++ b/ticdc/ticdc-changefeed-config.md @@ -194,10 +194,10 @@ enable-partition-separator = true # The encoding method of binary data, which can be 'base64' or 'hex'. The default value is 'base64'. # binary-encoding-method = 'base64' # Whether to output handle key information. The default value is false. -# This variable is for internal implementation only and setting this variable is not recommended. +# This configuration parameter is for internal implementation only, so it is not recommended to set it. # output-handle-key = false # Whether to output the value before the row data changes. The default value is false. -# After being turned on, the Update event will output two lines of data. The first line is a Delete event, which outputs the data before the change, and the second line is a Insert event, which outputs the changed data. +# When it is enabled, the UPDATE event will output two rows of data: the first row is a DELETE event that outputs the data before the change; the second row is an INSERT event that outputs the changed data. # output-old-value = false # Specifies the replication consistency configurations for a changefeed when using the redo log. For more information, see https://docs.pingcap.com/tidb/stable/ticdc-sink-to-mysql#eventually-consistent-replication-in-disaster-scenarios. From f607ffc26282b3e0839e468e83b94219239b8ded Mon Sep 17 00:00:00 2001 From: Lilian Lee Date: Wed, 27 Mar 2024 21:44:45 +0800 Subject: [PATCH 3/3] Update ticdc/ticdc-changefeed-config.md --- ticdc/ticdc-changefeed-config.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/ticdc/ticdc-changefeed-config.md b/ticdc/ticdc-changefeed-config.md index 5fed5619a2c51..3bc21fa5fa6e4 100644 --- a/ticdc/ticdc-changefeed-config.md +++ b/ticdc/ticdc-changefeed-config.md @@ -193,9 +193,6 @@ enable-partition-separator = true # include-commit-ts = false # The encoding method of binary data, which can be 'base64' or 'hex'. The default value is 'base64'. # binary-encoding-method = 'base64' -# Whether to output handle key information. The default value is false. -# This configuration parameter is for internal implementation only, so it is not recommended to set it. -# output-handle-key = false # Whether to output the value before the row data changes. The default value is false. # When it is enabled, the UPDATE event will output two rows of data: the first row is a DELETE event that outputs the data before the change; the second row is an INSERT event that outputs the changed data. # output-old-value = false