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

[docs] Translate "Table ID" Page for Flink CDC Chinese Documentation #3888

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
12 changes: 7 additions & 5 deletions docs/content.zh/docs/core-concept/table-id.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@ under the License.
-->

# 定义
在连接外部系统时,有必要建立一个与外部系统存储对象(例如表)的映射关系。这就是 **Table Id** 所代表的含义。

**Table Id** 主要用来建立连接器与外部系统存储对象(例如表)的映射关系,所有外部系统的数据集合都可以映射到一个专用的 Table Id。

# 示例
为了兼容大部分外部系统,Table Id 被表示为 3 元组:(namespace, schemaName, tableName)。
连接器应该在连接外部系统时建立与外部系统存储对象的映射关系。

下面是不同数据系统对应的 tableId 的格式:
为了兼容绝大部分的外部数据系统,Table Id 由命名空间、模式名、表名 3 个部分组成,即元组 (namespace, schemaName, tableName)。
不同的外部系统 Table Id 的构造参数可能不同,比如 Oracle 数据库的 Table Id 包含命名空间(database)、模式名(schema)和表名(table),Doris 的 Table Id 包含模式名(database)和表名(table),Kafka 的 Table Id 仅包含表名(topic)。

下面是一些常见的外部数据系统及其对应的 Table Id 格式:

| 数据系统 | tableId 的组成 | 字符串示例 |
| 数据系统 | Table Id 构造参数 | 字符串示例 |
|-----------------------|-------------------------|---------------------|
| Oracle/PostgreSQL | database, schema, table | mydb.default.orders |
| MySQL/Doris/StarRocks | database, table | mydb.orders |
Expand Down