This is an automated email from the ASF dual-hosted git repository. github-merge-queue[bot] pushed a commit to branch gh-readonly-queue/dev/pr-13274-3ee4a803b5c3f2a111428167ccd5b177d504ebee in repository https://gitbox.apache.org/repos/asf/seatunnel.git
commit 333f8df3e3d0a344124225a3035b78de2625ad5f Author: Jast <[email protected]> AuthorDate: Wed Nov 25 14:15:12 2026 +0000 [Docs] Fix Doris, StarRocks, TDengine, Milvus and transform doc inaccuracies verified against source code (#13274) Co-authored-by: zhangshenghang <[email protected]> Co-authored-by: jast <[email protected]> Co-authored-by: zhiwei.niu <[email protected]> --- docs/en/connectors/sink/Doris.md | 13 +++++++++++-- docs/en/connectors/sink/StarRocks.md | 6 +++--- docs/en/transforms/calcite.md | 4 +++- docs/en/transforms/embedding.md | 3 ++- docs/en/transforms/llm.md | 2 +- docs/zh/connectors/sink/Doris.md | 8 ++++++++ docs/zh/connectors/sink/StarRocks.md | 4 +--- docs/zh/connectors/source/Milvus.md | 2 +- docs/zh/transforms/calcite.md | 4 +++- docs/zh/transforms/embedding.md | 2 +- docs/zh/transforms/llm.md | 2 +- 11 files changed, 35 insertions(+), 15 deletions(-) diff --git a/docs/en/connectors/sink/Doris.md b/docs/en/connectors/sink/Doris.md index 98d2116f31..52646b9efd 100644 --- a/docs/en/connectors/sink/Doris.md +++ b/docs/en/connectors/sink/Doris.md @@ -48,7 +48,7 @@ The internal implementation of Doris sink connector is cached and imported by st | query-port | int | No | 9030 | `Doris` Fenodes query_port | | username | String | Yes | - | `Doris` user username | | password | String | Yes | - | `Doris` user password | -| database | String | No | - | The database name of `Doris` table, use `${database_name}` to represent the upstream table name. When omitted, the upstream table's database name is used | +| database | String | No | - | The database name of `Doris` table, use `${database_name}` to represent the upstream database name. When omitted, the upstream table's database name is used | | table | String | No | - | The table name of `Doris` table, use `${table_name}` to represent the upstream table name. When omitted, the upstream table's name is used | | table.identifier | String | No | - | Deprecated table identifier. Please use `database` and `table` instead. | | sink.label-prefix | String | Yes | - | The label prefix used by stream load imports. In the 2pc scenario, global uniqueness is required to ensure the EOS semantics of SeaTunnel. | @@ -227,6 +227,10 @@ sink { sink.label-prefix = "timer-flush" sink.enable-2pc = false doris.batch.size = 10000 + doris.config { + format = "json" + read_json_by_line = "true" + } } } ``` @@ -678,6 +682,10 @@ sink { table = "mytable" sink.enable-2pc = "true" sink.label-prefix = "unique-job-label" + doris.config { + format = "json" + read_json_by_line = "true" + } } } ``` @@ -699,7 +707,8 @@ Yes. Set `sink.enable-delete = "true"` to propagate DELETE operations from CDC s See the case-sensitivity example above for the exact behavior. By default (`case_sensitive = true`) the connector preserves the original case of `database` and `table`. Set `case_sensitive = false` -to fold both names to lowercase before they reach Doris. If upstream field names still do not +to fold the table and column names to lowercase before they reach Doris (the `database` name +keeps its original case). If upstream field names still do not match the Doris schema, normalize them at the source stage (e.g. with a `Rename` transform) or align the target schema explicitly rather than relying on undocumented options. diff --git a/docs/en/connectors/sink/StarRocks.md b/docs/en/connectors/sink/StarRocks.md index 7193be7802..6092f69bd0 100644 --- a/docs/en/connectors/sink/StarRocks.md +++ b/docs/en/connectors/sink/StarRocks.md @@ -286,6 +286,7 @@ source { sink { StarRocks { nodeUrls = ["e2e_starRocksdb:8030"] + base-url = "jdbc:mysql://e2e_starRocksdb:9030/" username = "root" password = "secret" database = "test" @@ -305,12 +306,11 @@ sink { sink { StarRocks { nodeUrls = ["e2e_starRocksdb:8030"] + base-url = "jdbc:mysql://e2e_starRocksdb:9030/" username = "root" password = "secret" database = "test" table = "e2e_table_sink" - ... - // Support upsert/delete event synchronization (enable_upsert_delete=true), only supports PrimaryKey model. enable_upsert_delete = true } @@ -613,7 +613,7 @@ StarRocks column names are case-insensitive by default. Verify that upstream fie - `nodeUrls`: HTTP addresses of the StarRocks FE nodes, used for Stream Load data ingestion. - `base-url`: JDBC URL pointing to a StarRocks FE node, used for DDL operations such as table creation and schema inspection. -Both parameters are required when automatic table creation is enabled. +Both parameters are always required. ## Changelog diff --git a/docs/en/transforms/calcite.md b/docs/en/transforms/calcite.md index b66da9aa2d..dfb0f81b04 100644 --- a/docs/en/transforms/calcite.md +++ b/docs/en/transforms/calcite.md @@ -17,7 +17,7 @@ SQL transform plugin powered by [Apache Calcite](https://calcite.apache.org/). U | Name | Type | Required | Default | Description | |------|------|----------|---------|-------------| -| sql | string | yes | - | SQL statement to execute | +| sql | string | conditional | - | SQL statement to execute | | table_transform | list | no | [] | Per-table SQL overrides for multi-table CDC scenarios | | table_match_regex | string | no | .* | Regex to match table paths. Unmatched tables pass through unchanged | | row_error_handle_way | enum | no | FAIL | How to handle row-level errors: `FAIL`, `SKIP`, or `ROUTE_TO_TABLE` | @@ -28,6 +28,8 @@ SQL transform plugin powered by [Apache Calcite](https://calcite.apache.org/). U sql = "SELECT id, UPPER(name) AS name, age + 1 AS next_age FROM source_table WHERE age > 18" ``` +The global `sql` is required when `table_transform` is not configured (an explicitly empty `table_transform` list still requires it). When `table_transform` entries are present, each entry must carry its own `sql`, and the global `sql` becomes optional: tables not listed in `table_transform` fall back to the global `sql` when it is set and their path matches `table_match_regex` (default `.*`); tables outside the regex pass through unchanged. + ### table_transform [list] Per-table SQL overrides for multi-table CDC scenarios. Each entry specifies a `table_path` and a `sql` statement. Tables not listed fall back to the global `sql` (if their path matches `table_match_regex`) or pass through unchanged. diff --git a/docs/en/transforms/embedding.md b/docs/en/transforms/embedding.md index 5527c24174..8f5af4f89f 100644 --- a/docs/en/transforms/embedding.md +++ b/docs/en/transforms/embedding.md @@ -54,7 +54,8 @@ you can choose `CUSTOM` to implement requests and retrievals for custom embeddin The API key for authenticating requests to the embedding service. This is typically provided by the model provider when you register for their service. For `AMAZON` this is the IAM access key. This option is required when `model_provider` -is `AMAZON`, `OPENAI`, `DOUBAO` or `QIANFAN`, and not required for other providers. +is `AMAZON`, `OPENAI`, `DOUBAO` or `QIANFAN`. It is not validated by the option rule for `ZHIPU`, but `ZHIPU` reads it +at runtime, so it must be provided in practice. It is not used by `CUSTOM`. ### secret_key diff --git a/docs/en/transforms/llm.md b/docs/en/transforms/llm.md index 80c7ba1018..08665f81c5 100644 --- a/docs/en/transforms/llm.md +++ b/docs/en/transforms/llm.md @@ -19,7 +19,7 @@ more. | prompt | string | yes | | | inference_columns | list | no | | | model | string | yes | | -| api_key | string | conditional (required for OPENAI, DOUBAO, MICROSOFT, QIANFAN; QIANFAN also needs `secret_key` and `oauth_path`) | | +| api_key | string | conditional (required for OPENAI, DOUBAO, MICROSOFT) | | | api_path | string | no | | | custom_config | map | no | | | custom_response_parse | string | no | | diff --git a/docs/zh/connectors/sink/Doris.md b/docs/zh/connectors/sink/Doris.md index 1ed5d2e58f..25f5991002 100644 --- a/docs/zh/connectors/sink/Doris.md +++ b/docs/zh/connectors/sink/Doris.md @@ -225,6 +225,10 @@ sink { sink.label-prefix = "timer-flush" sink.enable-2pc = false doris.batch.size = 10000 + doris.config { + format = "json" + read_json_by_line = "true" + } } } ``` @@ -675,6 +679,10 @@ sink { table = "mytable" sink.enable-2pc = "true" sink.label-prefix = "unique-job-label" + doris.config { + format = "json" + read_json_by_line = "true" + } } } ``` diff --git a/docs/zh/connectors/sink/StarRocks.md b/docs/zh/connectors/sink/StarRocks.md index aaea66248a..9348295782 100644 --- a/docs/zh/connectors/sink/StarRocks.md +++ b/docs/zh/connectors/sink/StarRocks.md @@ -304,8 +304,6 @@ sink { password = "secret" database = "test" table = "e2e_table_sink" - ... - // 支持upsert/delete事件的同步(需要将选项参数enable_upsert_delete设置为true),仅支持表引擎为主键模型 enable_upsert_delete = true } @@ -606,7 +604,7 @@ StarRocks 列名默认不区分大小写。请确认上游字段名与目标 Sta - `nodeUrls`:StarRocks FE 节点的 HTTP 地址,用于 Stream Load 数据写入。 - `base-url`:指向 StarRocks FE 节点的 JDBC URL,用于建表、查询 schema 等 DDL 操作。 -开启自动建表时两者均需配置。 +两者均为必填项。 ## 变更日志 diff --git a/docs/zh/connectors/source/Milvus.md b/docs/zh/connectors/source/Milvus.md index 9d73791649..8228071efb 100644 --- a/docs/zh/connectors/source/Milvus.md +++ b/docs/zh/connectors/source/Milvus.md @@ -213,7 +213,7 @@ sink { ### 限制读取速度以保护共享集群 当 Milvus 集群同时被其他任务共享时,可以调小 `rate_limit` 和 `batch_size`, -避免 Source 超过集群的单集合查询配额(QPS)。 +避免 Source 超过集群的单集合查询配额(QPS),同时降低单个请求的消息体积。 ```bash env { diff --git a/docs/zh/transforms/calcite.md b/docs/zh/transforms/calcite.md index 4bbe7da933..3dd9f0ab0c 100644 --- a/docs/zh/transforms/calcite.md +++ b/docs/zh/transforms/calcite.md @@ -17,7 +17,7 @@ | 名称 | 类型 | 必填 | 默认值 | 说明 | |------|------|------|--------|------| -| sql | string | 是 | - | 要执行的 SQL 语句 | +| sql | string | 条件必填 | - | 要执行的 SQL 语句 | | table_transform | list | 否 | [] | 多表 CDC 场景下的逐表 SQL 覆盖 | | table_match_regex | string | 否 | .* | 表路径匹配正则。不匹配的表直接透传 | | row_error_handle_way | enum | 否 | FAIL | 行级错误处理方式:`FAIL`、`SKIP`、`ROUTE_TO_TABLE` | @@ -28,6 +28,8 @@ sql = "SELECT id, UPPER(name) AS name, age + 1 AS next_age FROM source_table WHERE age > 18" ``` +未配置 `table_transform` 时必须配置全局 `sql`(显式配置空的 `table_transform` 列表同样要求配置)。配置了 `table_transform` 后,每个条目必须自带 `sql`,此时全局 `sql` 变为可选:未列出的表在配置了全局 `sql` 且其表路径匹配 `table_match_regex`(默认 `.*`)时回退到该语句;不在正则范围内的表直接透传。 + ### table_transform [list] 多表 CDC 场景下的逐表 SQL 覆盖。每项指定 `table_path` 和 `sql`。未列出的表会回退到全局 `sql`(如果路径匹配 `table_match_regex`),否则直接透传。 diff --git a/docs/zh/transforms/embedding.md b/docs/zh/transforms/embedding.md index 986afd44e4..e92757cf09 100644 --- a/docs/zh/transforms/embedding.md +++ b/docs/zh/transforms/embedding.md @@ -51,7 +51,7 @@ Embedding 转换插件利用 embedding 模型将文本和多模态数据转换 ### api_key 用于验证 embedding 服务请求的API密钥。通常由模型提供商在你注册他们的服务时提供,对于使用`AMAZON` 模型则对应IAM access key。 -当 `model_provider` 为 `AMAZON`、`OPENAI`、`DOUBAO` 或 `QIANFAN` 时该选项必填,其他提供商无需配置。 +当 `model_provider` 为 `AMAZON`、`OPENAI`、`DOUBAO` 或 `QIANFAN` 时该选项必填。`ZHIPU` 虽不在选项规则中校验该参数,但运行时会读取它,实际使用时也必须配置。`CUSTOM` 不使用此选项。 ### secret_key diff --git a/docs/zh/transforms/llm.md b/docs/zh/transforms/llm.md index c70e0cb4ef..fd6592dbbf 100644 --- a/docs/zh/transforms/llm.md +++ b/docs/zh/transforms/llm.md @@ -17,7 +17,7 @@ LLM 转换插件利用大型语言模型(LLM)的能力处理数据,将输 | prompt | string | yes | | | inference_columns | list | no | | | model | string | yes | | -| api_key | string | 条件必填(OPENAI、DOUBAO、MICROSOFT、QIANFAN 时必填;QIANFAN 还需 `secret_key` 与 `oauth_path`) | | +| api_key | string | 条件必填(OPENAI、DOUBAO、MICROSOFT 时必填) | | | api_path | string | no | | | custom_config | map | no | | | custom_response_parse | string | no | |
