@ -24,17 +24,19 @@ specific language governing permissions and limitations
under the License.
under the License.
-->
-->
# Definition
# 定义
When connecting to external systems, it is necessary to establish a mapping relationship with the storage objects of the external system. This is what **Table Id** refers to.
# Example
**Table Id**主要用来建立连接器与外部系统存储对象的映射关系,所有外部系统的数据集合都可以映射到一个专用的
To be compatible with most external systems, the Table Id is represented by a 3-tuple : (namespace, schemaName, tableName).
Table Id。
Connectors should establish the mapping between Table Id and storage objects in external systems.
The following table lists the parts in table Id of different data systems:
# 示例
| data system | parts in tableId | String example |
为了兼容绝大部分的外部数据系统, Table Id 由命名空间、模式名、表名3个部分组成, 即(namespace, schemaName, tableName)。不同的外部系统Table Id的构造参数可能不同, 比如Oracle数据库的Table Id包含命名空间(database)、模式名(schema)和表名(table), Doris的Table Id包含模式名(database)和表名(table), Kafka的Table Id仅包含表名(topic)。
|-----------------------|--------------------------|---------------------|
| Oracle/PostgreSQL | database, schema, table | mydb.default.orders |
下面是一些常见的外部系统及其对应的 Table Id 格式:
| MySQL/Doris/StarRocks | database, table | mydb.orders |
| Kafka | topic | orders |
| 数据系统 | Table id构造参数 | 字符串示例 |
|-----------------------|-------------------------|---------------------|
| Oracle/PostgreSQL | database, schema, table | mydb.default.orders |
| MySQL/Doris/StarRocks | database, table | mydb.orders |
| Kafka | topic | orders |