Skip to content

Commit

Permalink
[FLINK-36952][source-connector/mongodb] Fix typos in MongoDB connecto…
Browse files Browse the repository at this point in the history
…r Chinese documentation (#3811)
  • Loading branch information
Thorne-coder authored Dec 25, 2024
1 parent 9f44c52 commit 4f881f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/content.zh/docs/connectors/flink-sources/mongodb-cdc.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ SELECT * FROM products;
**请注意**

MongoDB 的更改事件记录在消息之前没有更新。因此,我们只能将其转换为 Flink 的 UPSERT 更改日志流。
upstart 流需要一个唯一的密钥,所以我们必须声明 `_id` 作为主键。
因为 upsert 流需要唯一键,所以我们必须声明 `_id` 作为主键。
我们不能将其他列声明为主键, 因为删除操作不包含除 `_id``sharding key` 之外的键和值。

连接器选项
Expand Down Expand Up @@ -367,7 +367,7 @@ MongoDB CDC 连接器是一个 Flink Source 连接器,它将首先读取数据

### 启动模式<a name="启动模式" id="002" ></a>

配置选项```scan.startup.mode```指定 MySQL CDC 使用者的启动模式。有效枚举包括:
配置选项```scan.startup.mode```指定 MongoDB CDC 消费者的启动模式。有效枚举包括:

- `initial` (默认):在第一次启动时对受监视的数据库表执行初始快照,并继续读取最新的 oplog。
- `latest-offset`:首次启动时,从不对受监视的数据库表执行快照, 连接器仅从 oplog 的结尾处开始读取,这意味着连接器只能读取在连接器启动之后的数据更改。
Expand Down

0 comments on commit 4f881f8

Please sign in to comment.