Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ticdc: add a faq about generated column #19369

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions ticdc/ticdc-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Loading