Hisoka-X commented on code in PR #8726:
URL: https://github.com/apache/seatunnel/pull/8726#discussion_r1957549556


##########
docs/zh/connector-v2/sink/Maxcompute.md:
##########
@@ -0,0 +1,131 @@
+# Maxcompute
+
+> Maxcompute数据接收器
+
+## 描述
+
+用于从Maxcompute读取数据。
+
+## 主要特性
+
+- [ ] [exactly-once](../../concept/connector-v2-features.md)
+
+## 选项
+
+|      名称      |  类型   | 是否必传      | 默认值 |
+|----------------|---------|----------|---------------|
+| accessId       | string  | 是      | -             |
+| accesskey      | string  | 是      | -             |
+| endpoint       | string  | 是      | -             |
+| project        | string  | 是      | -             |
+| table_name     | string  | 是      | -             |
+| partition_spec | string  | 否       | -             |
+| overwrite      | boolean | 否       | false         |
+| common-options | string  | 否       |               |
+
+### accessId [string]
+
+`accessId` 您的Maxcompute accessId可以从阿里云访问哪个云。
+
+### accesskey [string]
+
+`accesskey` 您的Maxcompute accessKey可以从阿里云访问哪个云。
+
+### endpoint [string]
+
+`endpoint` 您的Maxcompute端点以http开头。
+
+### project [string]
+
+`project` 您在阿里云中创建的Maxcompute项目。
+
+### table_name [string]
+
+`table_name` 目标最大计算表名,例如:fake。
+
+### partition_spec [string]
+
+`partition_spec` Maxcompute分区表的此规范,例如:ds='20220101'。
+
+### overwrite [boolean]
+
+`overwrite` 是否覆盖表或分区,默认值:false。
+
+### save_mode_create_template
+
+我们使用模板自动创建MaxCompute表,
+其将基于上游数据的类型和模式类型创建相应的表创建语句,
+默认模板可以根据情况进行修改。目前仅适用于多表模式。
+
+默认模板:
+
+```sql
+CREATE TABLE IF NOT EXISTS `${table}` (
+${rowtype_fields}
+) COMMENT '${comment}';
+```
+
+如果模板中填写了自定义字段,例如添加"id"字段
+
+```sql
+CREATE TABLE IF NOT EXISTS `${table}`
+(   
+    id,
+    ${rowtype_fields}
+) COMMENT '${comment}';
+```
+
+ 连接器将自动从上游获得相应的类型以完成填充,
+ 并从`rowtype_fields`中删除id字段。此方法可用于自定义字段类型和属性的修改。
+
+ 您可以使用以下占位符
+
+ -database:用于获取上游模式中的数据库
+ -table_name:用于获取上游模式中的表名
+ -rowtype_fields:用于获取上游模式中的所有字段,我们将自动映射到该字段
+ MaxCompute的描述
+ -rowtype_primary_key:用于获取上游模式中的主键(可能是列表)
+ -rowtype_unique_key:用于获取上游模式中的唯一密钥(可能是列表)
+ -comment:用于获取上游模式中的表注释

Review Comment:
   ```suggestion
    - database:用于获取上游模式中的数据库
    - table_name:用于获取上游模式中的表名
    - rowtype_fields:用于获取上游模式中的所有字段,我们将自动映射到该字段
    MaxCompute的描述
    - rowtype_primary_key:用于获取上游模式中的主键(可能是列表)
    - rowtype_unique_key:用于获取上游模式中的唯一密钥(可能是列表)
    - comment:用于获取上游模式中的表注释
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to