pingcap / pingcap/docs-cn

关于日志示例问题的疑惑

Open
#17,463 4 comments 0 reactions 1 assignee View on GitHub

@3AceShowHand is already working on this.

Since May 31, 2024.

Dominant language
Python
Stars
1.8k
Forks
1.2k
Avg merge
1d 16h
Merged PRs (30d)
31

Description

File: /release-8.1/ticdc/ticdc-open-protocol.md

  1. [partition=0] [key="{"ts":415508881418485761,"scm":"test","tbl":"t1","t":1}"] [value="{"u":{"id":{"t":3,"h":true,"v":3},"val":{"t":15,"v":"ZGQ="}}}"]

Log11 是 UPDATE test.t1 SET val = 'dd' WHERE id = 3; 语句产生的日志,它是更新的; 为什么 value 的对象中没有出现 "p":{"id":{"t":3,"h":true,"v":3},"val":{"t":15,"v":"Y2M="}}

参考:https://docs.pingcap.com/zh/tidb/stable/ticdc-open-protocol#row-changed-event
Update 事件,输出新增的行数据 ("u") 以及修改前的行数据 ("p")。

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.