diff --git a/ticdc/ticdc-faq.md b/ticdc/ticdc-faq.md index 0e4b78e5ec58f..93d3d29c86b3d 100644 --- a/ticdc/ticdc-faq.md +++ b/ticdc/ticdc-faq.md @@ -332,3 +332,11 @@ This is because the default port number of the TiCDC cluster deployed by TiDB Op } ] ``` + +## What happens to generated columns in DML? + +Generated columns include stored generated columns and virtual generated columns. TiCDC will ignore virtual generated columns and only replicate stored generated columns to downstream. The stored generated columns are also ignored when the downstream is MySQL database or other MySQL-compatible databases, but not Kafka or other storage services. + +> **Note:** +> +> When replicating stored generated columns to Kafka or storage services, and then writing back to MySQL, an error may occur `Error 3105 (HY000): The value specified for generated column 'xx' in table 'xxx' is not allowed`. you could use [Open Protocol](https://docs.pingcap.com/zh/tidb/stable/ticdc-open-protocol#ticdc-open-protocol) to avoid this error because this protocol carries column type that the generated column could be distinguished.