This is an automated email from the ASF dual-hosted git repository.
zhangshenghang pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/seatunnel.git
The following commit(s) were added to refs/heads/dev by this push:
new c0c6d04ca5 [Docs] Fix connector doc inaccuracies verified against
source code (#13380)
c0c6d04ca5 is described below
commit c0c6d04ca517f7fe039fb1994604a3643a3e59ec
Author: Jast <[email protected]>
AuthorDate: Thu Nov 26 19:08:52 2026 +0800
[Docs] Fix connector doc inaccuracies verified against source code (#13380)
Co-authored-by: zhangshenghang <[email protected]>
Co-authored-by: jast <[email protected]>
Co-authored-by: zhiwei.niu <[email protected]>
---
docs/en/connectors/sink/Elasticsearch.md | 2 +-
docs/en/connectors/sink/IoTDB.md | 5 +++-
docs/en/connectors/sink/IoTDBv2.md | 2 +-
docs/en/connectors/sink/Neo4j.md | 2 +-
docs/en/connectors/sink/Redis.md | 6 ++---
docs/en/connectors/source/Clickhouse.md | 1 +
docs/en/connectors/source/Maxcompute.md | 2 +-
docs/en/connectors/source/Redis.md | 42 +++++++++++++++++---------------
docs/en/connectors/source/RocketMQ.md | 2 +-
docs/en/transforms/llm.md | 2 ++
docs/en/transforms/replace.md | 4 +--
docs/zh/connectors/sink/IoTDB.md | 2 +-
docs/zh/connectors/sink/IoTDBv2.md | 2 +-
docs/zh/connectors/sink/Neo4j.md | 2 +-
docs/zh/connectors/sink/Redis.md | 6 ++---
docs/zh/connectors/source/Clickhouse.md | 1 +
docs/zh/connectors/source/Maxcompute.md | 2 +-
docs/zh/connectors/source/Redis.md | 27 +++++++++++---------
docs/zh/connectors/source/RocketMQ.md | 2 +-
docs/zh/transforms/llm.md | 4 ++-
docs/zh/transforms/replace.md | 4 +--
21 files changed, 69 insertions(+), 53 deletions(-)
diff --git a/docs/en/connectors/sink/Elasticsearch.md
b/docs/en/connectors/sink/Elasticsearch.md
index e5208babdd..2d8c1ac33b 100644
--- a/docs/en/connectors/sink/Elasticsearch.md
+++ b/docs/en/connectors/sink/Elasticsearch.md
@@ -39,7 +39,7 @@ Engine Supported
| primary_keys | list | no | -
| Primary key fields used to generate the document `_id`. Required for CDC
sources that produce update / delete events. |
| key_delimiter | string | no | `_`
| Delimiter joining composite keys into `_id` (default `_`). Use a different
character to avoid clashes with field values. |
| key_encoding | enum | no | LEGACY
| `LEGACY` keeps existing document IDs; `LENGTH_PREFIXED` avoids composite-key
delimiter collisions. |
-| auth_type | enum | no | basic
| Authentication mode: `basic` (HTTP Basic with `username`/`password`),
`api_key` (Elasticsearch API key), or `api_key_encoded` (encoded Elasticsearch
API key). |
+| auth_type | enum | no | basic
| Authentication mode: `basic` (HTTP Basic with `username`/`password`),
`api_key` (separate API key id and secret) or `api_key_encoded` (Base64-encoded
`id:secret`). |
| username | string | no | -
| Username for `basic` auth. |
| password | string | no | -
| Password for `basic` auth. |
| auth.api_key_id | string | no | -
| API key id for `api_key` auth. |
diff --git a/docs/en/connectors/sink/IoTDB.md b/docs/en/connectors/sink/IoTDB.md
index 44e22a40e7..033b09778e 100644
--- a/docs/en/connectors/sink/IoTDB.md
+++ b/docs/en/connectors/sink/IoTDB.md
@@ -231,7 +231,10 @@ sink {
}
```
-`node_urls` accepts multiple IoTDB nodes. The sink will pick one as the active
write node per task and fall over to the others when the active node fails.
+`node_urls` accepts multiple IoTDB nodes, which are passed to the IoTDB
session client as candidate hosts. The sink
+creates a single session per task; writes are retried through the same session
when a flush fails, and any endpoint
+reconnection across the candidate hosts is handled by the IoTDB client itself.
Recovery from server or statement
+errors is not guaranteed for every failure.
## Changelog
diff --git a/docs/en/connectors/sink/IoTDBv2.md
b/docs/en/connectors/sink/IoTDBv2.md
index de88460864..e66823643c 100644
--- a/docs/en/connectors/sink/IoTDBv2.md
+++ b/docs/en/connectors/sink/IoTDBv2.md
@@ -56,7 +56,7 @@ The mapping below applies to the default tree model
(`sql_dialect = "tree"`). In
| key_measurement_fields | Array | No | refer to description |
IoTDB-tree: Specify the field names in SeaTunnelRow to be used as measurement
(all fields excluding `key_device`&`key_timestamp` will be used by default)
<br/> IoTDB-table: Specify the field names in SeaTunnelRow to be used as FIELD
columns (all fields excluding `key_device`, `key_timestamp`, `key_tag_fields`
and `key_attribute_fields` will be used by default) |
| key_tag_fields | Array | No | - |
IoTDB-tree: invalid <br/> IoTDB-table: Specify the field names in SeaTunnelRow
to be used as TAG columns
|
| key_attribute_fields | Array | No | - |
IoTDB-tree: invalid <br/> IoTDB-table: Specify the field names in SeaTunnelRow
to be used as ATTRIBUTE columns
|
-| batch_size | Integer | No | 1024 |
The connector flushes buffered records to IoTDB when the number of buffered
records reaches `batch_size`. It also flushes before checkpoint commit and when
the writer is closed.
|
+| batch_size | Integer | No | 1024 (see note) |
The connector flushes buffered records to IoTDB when the number of buffered
records reaches `batch_size`. It also flushes before checkpoint commit and when
the writer is closed. NOTE: the built-in default is currently NOT applied when
the option is omitted — if unset, rows are only flushed on checkpoint/close.
Set `batch_size` explicitly to enable size-based flushing. |
| max_retries | Integer | No | - |
The maximum number of retries when flushing records fails.
|
| retry_backoff_multiplier_ms | Integer | No | - |
The multiplier used to calculate the retry backoff delay.
|
| max_retry_backoff_ms | Integer | No | - |
The maximum retry backoff delay in milliseconds.
|
diff --git a/docs/en/connectors/sink/Neo4j.md b/docs/en/connectors/sink/Neo4j.md
index b3470d1214..3cd9ccbec5 100644
--- a/docs/en/connectors/sink/Neo4j.md
+++ b/docs/en/connectors/sink/Neo4j.md
@@ -32,7 +32,7 @@ It supports one-row-at-a-time writes and batch writes with
Cypher `UNWIND`.
| kerberos_ticket | String | No | - | Kerberos
ticket used for Neo4j authentication.
|
| database | String | Yes | - | Neo4j
database name.
|
| query | String | Yes | - | Cypher
statement used to write data. In `ONE_BY_ONE` mode, use placeholders such as
`$name`; in `BATCH` mode, use `UNWIND $batch AS row`. |
-| queryParamPosition | Object | ONE_BY_ONE only | - |
Mapping between Cypher parameter names and input row field positions. Required
when `write_mode = "ONE_BY_ONE"`. |
+| queryParamPosition | map | ONE_BY_ONE only | - |
Mapping between Cypher parameter names and input row field positions. Required
when `write_mode = "ONE_BY_ONE"`. |
| max_batch_size | Integer | No | 500 | Maximum
number of rows written in one transaction when `write_mode = "BATCH"`. Must be
greater than 0. |
| write_mode | String | No | ONE_BY_ONE | Write mode.
Supported values are `ONE_BY_ONE` and `BATCH`.
|
| max_transaction_retry_time | Long | No | 30 | Maximum
transaction retry time, in seconds.
|
diff --git a/docs/en/connectors/sink/Redis.md b/docs/en/connectors/sink/Redis.md
index a713e98627..2fc7537807 100644
--- a/docs/en/connectors/sink/Redis.md
+++ b/docs/en/connectors/sink/Redis.md
@@ -57,13 +57,13 @@ downloaded from Maven Central.
| host | string | Yes when `mode = SINGLE` | - | Redis
host for single-node mode. |
| port | int | No | 6379 | Redis
port for single-node mode. |
| nodes | list | Yes when `mode = CLUSTER` | - | Redis
Cluster nodes, for example `["redis-0:6379", "redis-1:6379"]`. |
-| mode | string | No | SINGLE | Redis
deployment mode. Supported values are `SINGLE` and `CLUSTER`. |
+| mode | enum | No | SINGLE | Redis
deployment mode. Supported values are `SINGLE` and `CLUSTER`. |
| user | string | No | - | Redis
ACL username. |
| auth | string | No | - | Redis
authentication password. |
| db_num | int | No | 0 | Redis
database index. This option is used in single-node mode. |
| key | string | Yes | - | Redis
key, upstream field name, or key template when `support_custom_key = true`. |
-| data_type | string | Yes | - | Redis
data type. Supported values are `KEY`, `STRING`, `HASH`, `LIST`, `SET`, and
`ZSET`. |
-| format | string | No | JSON |
Serialization format used when no value field is configured. Supported values
are `JSON` and `TEXT`. |
+| data_type | enum | Yes | - | Redis
data type. Supported values are `KEY`, `STRING`, `HASH`, `LIST`, `SET`, and
`ZSET`. |
+| format | enum | No | JSON |
Serialization format used when no value field is configured. Supported values
are `JSON` and `TEXT`. |
| field_delimiter | string | No | `,` | Field
delimiter used when `format = TEXT`. |
| batch_size | int | No | 10 |
Maximum number of rows buffered before one batch write. |
| expire | long | No | -1 | Key
expiration time in seconds. Values less than or equal to 0 mean no expiration
is set. |
diff --git a/docs/en/connectors/source/Clickhouse.md
b/docs/en/connectors/source/Clickhouse.md
index 0d7d040bdb..022359fc42 100644
--- a/docs/en/connectors/source/Clickhouse.md
+++ b/docs/en/connectors/source/Clickhouse.md
@@ -64,6 +64,7 @@ They can be downloaded via install-plugin.sh or from the
Maven central repositor
| table_list | Array | NO | - | The list of
tables to be read.
|
| clickhouse.config | Map | No | - | In addition
to the above mandatory parameters that must be specified by `clickhouse-jdbc` ,
users can also specify multiple optional parameters, which cover all the
[parameters](https://github.com/ClickHouse/clickhouse-jdbc/tree/master/clickhouse-client#configuration)
provided by `clickhouse-jdbc`. |
| server_time_zone | String | No | ZoneId.systemDefault() | The session
time zone in database server. If not set, then ZoneId.systemDefault() is used
to determine the server time zone.
|
+| split.size | Int | No | Integer.MAX_VALUE | The number
of ClickHouse parts grouped into each SeaTunnel split at the outer source
level. Only used when a single table's `table_list` configuration is flattened
to the outer layer; inside `table_list` entries configure `split_size` instead.
The minimum value is `1`. Smaller values create more splits for higher
parallelism. |
| common-options | | No | - | Source
plugin common parameters, please refer to [Source Common
Options](../common-options/source-common-options.md) for details.
|
Table list configuration:
diff --git a/docs/en/connectors/source/Maxcompute.md
b/docs/en/connectors/source/Maxcompute.md
index c9495a34d2..95a2af0fbe 100644
--- a/docs/en/connectors/source/Maxcompute.md
+++ b/docs/en/connectors/source/Maxcompute.md
@@ -33,7 +33,7 @@ for parallel reads.
| accesskey | string | no | -
| Aliyun AccessKey secret used to access MaxCompute.
|
| sts_token | string | no | -
| STS token used for temporary MaxCompute authentication. When `sts_token` is
provided, `accessId` and `accesskey` are required. |
| endpoint | string | yes | -
| MaxCompute endpoint, starting with `http`.
|
-| project | string | yes | -
| MaxCompute project created in Alibaba Cloud.
|
+| project | string | no | -
| MaxCompute project created in Alibaba Cloud. Not enforced by the option rule:
each `table_list` entry can provide its own `project` override, so the
top-level option is optional. Set it unless every `table_list` entry defines
its own project. |
| table_name | string | yes when `table_list` is not set | -
| Target MaxCompute table name, for example `fake`.
|
| schema_name | string | no | -
| MaxCompute schema name (namespace between project and table). Required only
when the table is in a non-default schema. |
| partition_spec | string | no | -
| Partition spec for a MaxCompute partitioned table, for example
`ds='20220101'`. |
diff --git a/docs/en/connectors/source/Redis.md
b/docs/en/connectors/source/Redis.md
index 5c44b3cc74..1fa6cfa5e3 100644
--- a/docs/en/connectors/source/Redis.md
+++ b/docs/en/connectors/source/Redis.md
@@ -59,10 +59,10 @@ downloaded from Maven Central.
| user | string | no | - | Redis
authentication user |
| auth | string | no | - | Redis
authentication password |
| db_num | int | no | 0 | Redis
database index |
-| mode | string | no | single | Redis
mode: `single` or `cluster` |
+| mode | enum | no | single | Redis
mode: `single` or `cluster` |
| nodes | list | yes when mode=cluster | - | Redis
cluster nodes in format `["host1:port1", "host2:port2"]` |
| keys | string | yes when tables_configs is absent | - | Redis
key pattern to scan. Supports fuzzy matching; users need to ensure the matched
keys have the same type. Mutually exclusive with `tables_configs`. |
-| data_type | string | yes when tables_configs is absent | - | Redis
data type of the matched keys: `key`, `string`, `hash`, `list`, `set`, `zset`.
Required together with `keys` for single key pattern reading. |
+| data_type | enum | yes when tables_configs is absent | - | Redis
data type of the matched keys: `key`, `string`, `hash`, `list`, `set`, `zset`.
Required together with `keys` for single key pattern reading. |
| tables_configs | list | no | - | List of
table configurations for multi-table reading |
| hash_key_parse_mode | string | no | all | Parse
mode for HASH data (also honored per `tables_configs` entry): `all` emits the
whole hash value as a single JSON string column, `kv` maps the hash fields
(plus the key under `key_field_name`) onto the configured `schema`, one row per
Redis hash key |
| read_key_enabled | boolean | no | false | If
set to true, the source reads Redis values together with their keys. When
enabled, `single_field_name` must be set |
@@ -84,14 +84,14 @@ When using `tables_configs` to read multiple key patterns,
each table configurat
| name | type | required | default value | description |
|---------------------|--------|----------|---------------|-------------|
| keys | string | yes | - | Redis key pattern
to scan |
-| data_type | string | yes | - | Redis data type:
`key`, `string`, `hash`, `list`, `set`, `zset` |
+| data_type | enum | yes | - | Redis data type:
`key`, `string`, `hash`, `list`, `set`, `zset` |
| batch_size | int | no | 10 | Batch size for
SCAN operations |
-| format | string | no | json | Data format:
`json` or `text` |
+| format | enum | no | json | Data format:
`json` or `text` |
| schema | config | no | - | Schema
configuration for this table |
-| hash_key_parse_mode | string | no | all | Hash key parse
mode: `all` or `kv` |
-| read_key_enabled | boolean| no | false | Include Redis key
in output |
-| key_field_name | string | no | - | Field name for
Redis key |
-| single_field_name | string | yes for single-value types (string, list,
set, zset) when read_key_enabled = true | - | Field name for the Redis value |
+| hash_key_parse_mode | enum | no | all | Hash key parse
mode: `all` or `kv` |
+| read_key_enabled | boolean | no | false | Include the Redis key in the
output. This requires a `schema` and `format = json`. |
+| key_field_name | string | no | `hash_key` for `hash`, `key` otherwise |
Output field that holds the Redis key. |
+| single_field_name | string | conditional | - | Required when
`read_key_enabled = true` and a `string` value or a `list`, `set`, or `zset`
element is a scalar or array. This option names the output field that holds the
value. JSON objects supply their own fields. |
| field_delimiter | string | no | ',' | Delimiter for text
format |
**Note:** When this configuration corresponds to a single table, configure
these table-level options at the outer layer instead of using `tables_configs`.
For example, put `keys`, `data_type`, `format`, and `schema` directly under
`Redis`.
@@ -157,12 +157,12 @@ When set to `true`, both the key and its associated value
are included in the re
By default (`false`), only the value is read and included.
-If you set `read_key_enabled = true` in a single-table configuration, you must
-also specify `single_field_name`, regardless of the data type. For single-value
-Redis data types (such as `string`, `list`, `set`, or `zset`) it maps the value
-to a schema column, and reading fails without it. `key_field_name` is optional
-and defaults to `key`. Entries of `tables_configs` are not affected by this
-validation: there `single_field_name` is only needed for single-value types.
+When `read_key_enabled = true`, the option rule requires `single_field_name`
to be set at the top level of the source
+config, regardless of the configured `data_type` (this conditional is checked
on the flattened single-table config;
+`tables_configs` entries only need `keys` and `data_type`). The value is used
to map non-object values (such as plain
+`string`/`list`/`set`/`zset` values) to a schema column; values that already
parse as JSON objects (for example `hash`
+fields in `json` format) are mapped by their own fields. `key_field_name` is
optional and defaults to `hash_key` for
+`hash` data and `key` otherwise.
When you configure a schema, include the actual output field names, including
the default `key` field or the name set by `key_field_name`.
@@ -348,9 +348,12 @@ single-table configuration this option is required whenever
primitive values (e.g., `string`, `int`) it names the schema column the value
is
mapped to, and reading fails without it.
-**Note:** For complex Redis data types such as hashes, the value fields come
-from the hash structure and the option is only enforced by the single-table
-configuration validation described above.
+This name is used in the schema to map the value field.
+
+**Note:** This option is not applied to values that already parse as JSON
objects, such as `hash` fields read in `json`
+format — those are mapped by their own fields. However, the top-level option
rule still requires this option whenever
+`read_key_enabled = true`, even if the target data type would not use it at
runtime. This requirement applies to the
+flattened single-table config only; `tables_configs` entries are not required
to set it.
Example :
```hocon
@@ -583,8 +586,9 @@ sink {
### Read With Custom Key And Value Field Names
Use `key_field_name`, `single_field_name`, and `read_key_enabled = true` to
include the Redis key in the output and
-control how its value maps to a schema column. For primitive value types
(`string`, `list`, `set`, `zset`) you
-must set `single_field_name` so the connector knows which schema column
receives the value.
+control how its value maps to a schema column. `single_field_name` is required
whenever `read_key_enabled = true`
+(the option rule enforces it for every `data_type`), and it determines which
schema column receives the value for
+non-object values such as `string`, `list`, `set`, and `zset`.
```hocon
source {
diff --git a/docs/en/connectors/source/RocketMQ.md
b/docs/en/connectors/source/RocketMQ.md
index 190e72b382..22c7d881c2 100644
--- a/docs/en/connectors/source/RocketMQ.md
+++ b/docs/en/connectors/source/RocketMQ.md
@@ -34,7 +34,7 @@ Reads messages from Apache RocketMQ topics. The connector can
read one or more t
|------|------|----------|---------|-------------|
| name.srv.addr | String | yes | - | RocketMQ name server address, for example
`localhost:9876`. |
| topics | String | no | - | Topic name list separated by commas, for example
`"topic_a,topic_b"`. Configure only one of `topics`, `tables_configs`, and
`table_list`. |
-| tables_configs | List | no | - | Multi-table read configuration. Each item
must contain `topics` and can contain `format`, `schema`, `tags`, `start.mode`,
`start.mode.timestamp`, `start.mode.offsets`, and `ignore_parse_errors`. |
+| tables_configs | List | no | - | Multi-table read configuration. Each item
must contain `topics` and can contain `format`, `schema`, `tags`, `start.mode`,
`start.mode.timestamp`, `start.mode.offsets`, `ignore_parse_errors`, and
`field.delimiter`. |
| table_list | List | no | - | Deprecated. Use `tables_configs` instead. |
| tags | String | no | - | Tag list separated by commas. Only messages whose
RocketMQ tag exactly matches one configured value are consumed. |
| acl.enabled | Boolean | no | false | Whether to enable RocketMQ ACL
authentication. |
diff --git a/docs/en/transforms/llm.md b/docs/en/transforms/llm.md
index 08665f81c5..157b335c47 100644
--- a/docs/en/transforms/llm.md
+++ b/docs/en/transforms/llm.md
@@ -31,6 +31,8 @@ more.
The model provider to use. The available options are:
OPENAI, DOUBAO, DEEPSEEK, KIMIAI, MICROSOFT, ZHIPU, CUSTOM
+> Note: QIANFAN is accepted by the option enum but the LLM transform does not
implement it and fails at initialization; it is only supported by the embedding
transform.
+
> tips: If you use Microsoft, please make sure api_path cannot be empty
### output_data_type
diff --git a/docs/en/transforms/replace.md b/docs/en/transforms/replace.md
index aba22afa30..8d80c1cc94 100644
--- a/docs/en/transforms/replace.md
+++ b/docs/en/transforms/replace.md
@@ -10,7 +10,7 @@ Examines string value in given fields and replaces substring
of the string value
| name | type | required | default value |
|---------------|---------|----------|---------------|
-| replace_fields | array | yes | |
+| replace_fields | array | yes | - |
| pattern | string | yes | - |
| replacement | string | yes | - |
| is_regex | boolean | no | false |
@@ -59,7 +59,7 @@ A list of per-table rules. Each entry must contain
`table_path` in the form `dat
Controls what happens when several `table_transform` entries have the same
`table_path`: `FIRST_MATCH` applies only the first matching entry, `ALL_MATCH`
applies all matching entries in order. If not set, duplicate `table_path`
entries are rejected.
-### common options [string]
+### common options
Transform plugin common parameters, please refer to [Transform
Plugin](common-options/common-options.md) for details
diff --git a/docs/zh/connectors/sink/IoTDB.md b/docs/zh/connectors/sink/IoTDB.md
index 59669f36a8..14848f9e79 100644
--- a/docs/zh/connectors/sink/IoTDB.md
+++ b/docs/zh/connectors/sink/IoTDB.md
@@ -231,7 +231,7 @@ sink {
}
```
-`node_urls` 支持传入多个 IoTDB 节点。Sink 会为每个任务选择一个活跃写入节点,并在活跃节点失败时切换到其它节点。
+`node_urls` 支持传入多个 IoTDB 节点,这些节点会作为候选主机传给 IoTDB session 客户端。Sink 会为每个任务创建单个
session;写入失败时会在同一 session 上重试,候选主机之间的端点重连由 IoTDB
客户端自身处理。服务端或语句错误并非在所有失败场景下都能恢复成功。
## 变更日志
diff --git a/docs/zh/connectors/sink/IoTDBv2.md
b/docs/zh/connectors/sink/IoTDBv2.md
index 9ea2e379b3..e1f5bdb64b 100644
--- a/docs/zh/connectors/sink/IoTDBv2.md
+++ b/docs/zh/connectors/sink/IoTDBv2.md
@@ -56,7 +56,7 @@ import ChangeLog from '../changelog/connector-iotdb-v2.md';
| key_measurement_fields | Array | 否 | 见描述 | IoTDB 树模型:在
SeaTunnelRow 中指定 IoTDB
测量列表的字段名(如未指定,则包括排除`key_device`&`key_timestamp`后的其余字段);<br/> IoTDB 表模型:在
SeaTunnelRow 中指定 IoTDB
测点列(FIELD)的字段名(如未指定,则包括排除`key_device`&`key_timestamp`&`key_tag_fields`&`key_attribute_fields`后的其余字段)
|
| key_tag_fields | Array | 否 | - | IoTDB 树模型:不生效;<br/>
IoTDB 表模型:在 SeaTunnelRow 中指定 IoTDB 标签列(TAG)的字段名
|
| key_attribute_fields | Array | 否 | - | IoTDB 树模型:不生效;<br/>
IoTDB 表模型:在 SeaTunnelRow 中指定 IoTDB 属性列(ATTRIBUTE)的字段名
|
-| batch_size | Integer | 否 | 1024 | 缓存的记录数达到
`batch_size` 时,连接器会把数据刷新到 IoTDB;在 checkpoint 提交前和写入器关闭时也会刷新。
|
+| batch_size | Integer | 否 | 1024(见说明) | 缓存的记录数达到
`batch_size` 时,连接器会把数据刷新到 IoTDB;在 checkpoint
提交前和写入器关闭时也会刷新。注意:未配置该选项时,内置默认值目前不会生效——此时数据只会在 checkpoint/关闭时刷新。如需按条数刷新,请显式配置
`batch_size`。 |
| max_retries | Integer | 否 | - | 刷新失败时的最大重试次数。
|
| retry_backoff_multiplier_ms | Integer | 否 | - | 计算重试等待时间的退避倍数,单位为毫秒。
|
| max_retry_backoff_ms | Integer | 否 | - | 最大重试等待时间,单位为毫秒。
|
diff --git a/docs/zh/connectors/sink/Neo4j.md b/docs/zh/connectors/sink/Neo4j.md
index eaf3fca2c3..f31977752e 100644
--- a/docs/zh/connectors/sink/Neo4j.md
+++ b/docs/zh/connectors/sink/Neo4j.md
@@ -32,7 +32,7 @@ Neo4j Sink 连接器通过执行 Cypher 语句把 SeaTunnel 数据写入 Neo4j
| kerberos_ticket | String | 否 | - | 用于 Neo4j 认证的
Kerberos ticket。
|
| database | String | 是 | - | Neo4j 数据库名。
|
| query | String | 是 | - | 写入数据使用的 Cypher
语句。`ONE_BY_ONE` 模式使用 `$name` 这类占位符;`BATCH` 模式使用 `UNWIND $batch AS row`。
|
-| queryParamPosition | Object | 仅 ONE_BY_ONE | - | Cypher
参数名和输入行字段位置的映射。`write_mode = "ONE_BY_ONE"` 时必须填写。
|
+| queryParamPosition | map | 仅 ONE_BY_ONE | - | Cypher
参数名和输入行字段位置的映射。`write_mode = "ONE_BY_ONE"` 时必须填写。
|
| max_batch_size | Integer | 否 | 500 | `write_mode =
"BATCH"` 时,单个事务最多写入的数据条数,必须大于 0。
|
| write_mode | String | 否 | ONE_BY_ONE | 写入模式。可选值为
`ONE_BY_ONE` 和 `BATCH`。
|
| max_transaction_retry_time | Long | 否 | 30 | 最大事务重试时间,单位为秒。
|
diff --git a/docs/zh/connectors/sink/Redis.md b/docs/zh/connectors/sink/Redis.md
index 3eec6c8c1e..c849e6dcd3 100644
--- a/docs/zh/connectors/sink/Redis.md
+++ b/docs/zh/connectors/sink/Redis.md
@@ -53,13 +53,13 @@ Zeta 的 `--dry-run connect` 会校验 Redis 是否可达以及是否接受配
| host | string | `mode = SINGLE` 时必填 | - | 单节点模式下的
Redis 主机地址。 |
| port | int | 否 | 6379 | 单节点模式下的
Redis 端口。 |
| nodes | list | `mode = CLUSTER` 时必填 | - | Redis
Cluster 节点,例如 `["redis-0:6379", "redis-1:6379"]`。 |
-| mode | string | 否 | SINGLE | Redis
部署模式,支持 `SINGLE` 和 `CLUSTER`。 |
+| mode | enum | 否 | SINGLE | Redis
部署模式,支持 `SINGLE` 和 `CLUSTER`。 |
| user | string | 否 | - | Redis
ACL 用户名。 |
| auth | string | 否 | - | Redis
认证密码。 |
| db_num | int | 否 | 0 | Redis
数据库编号,主要用于单节点模式。 |
| key | string | 是 | - | Redis
key、上游字段名,或开启 `support_custom_key` 后的 key 模板。 |
-| data_type | string | 是 | - | Redis
数据类型,支持 `KEY`、`STRING`、`HASH`、`LIST`、`SET`、`ZSET`。 |
-| format | string | 否 | JSON | 未配置
value 字段时的序列化格式,支持 `JSON` 和 `TEXT`。 |
+| data_type | enum | 是 | - | Redis
数据类型,支持 `KEY`、`STRING`、`HASH`、`LIST`、`SET`、`ZSET`。 |
+| format | enum | 否 | JSON | 未配置
value 字段时的序列化格式,支持 `JSON` 和 `TEXT`。 |
| field_delimiter | string | 否 | `,` | `format
= TEXT` 时使用的字段分隔符。 |
| batch_size | int | 否 | 10 |
每次批量写入前最多缓存的行数。 |
| expire | long | 否 | -1 | Redis
key 过期时间,单位秒。小于等于 0 表示不设置过期时间。 |
diff --git a/docs/zh/connectors/source/Clickhouse.md
b/docs/zh/connectors/source/Clickhouse.md
index a6bc5b9a09..dbef11fbb0 100644
--- a/docs/zh/connectors/source/Clickhouse.md
+++ b/docs/zh/connectors/source/Clickhouse.md
@@ -63,6 +63,7 @@ import ChangeLog from '../changelog/connector-clickhouse.md';
| table_list | Array | 否 | - |
要读取的数据表列表,支持配置多表.
|
| clickhouse.config | Map | 否 | - | 除了上述必须由
`clickhouse-jdbc` 指定的必填参数外,用户还可以指定多个可选参数,这些参数涵盖了 `clickhouse-jdbc`
提供的所有[参数](https://github.com/ClickHouse/clickhouse-jdbc/tree/master/clickhouse-client#configuration).
|
| server_time_zone | String | 否 | ZoneId.systemDefault() |
数据库服务中的会话时区。如果未设置,则使用ZoneId.systemDefault()设置服务时区.
|
+| split.size | Int | 否 | Integer.MAX_VALUE | 配置在 source
外层时,每个 SeaTunnel split 包含的 ClickHouse part 数量。仅在单个表的 `table_list` 配置展平到外层时使用;在
`table_list` 条目内部请配置 `split_size`。最小值为 `1`,值越小,拆分越多,并行读取粒度越细。 |
| common-options | | 否 | - | 源插件常用参数,详见
[源通用选项](../common-options/source-common-options.md).
|
多表配置:
diff --git a/docs/zh/connectors/source/Maxcompute.md
b/docs/zh/connectors/source/Maxcompute.md
index ba34fda06b..f75a4ee986 100644
--- a/docs/zh/connectors/source/Maxcompute.md
+++ b/docs/zh/connectors/source/Maxcompute.md
@@ -30,7 +30,7 @@ import ChangeLog from '../changelog/connector-maxcompute.md';
| accesskey | string | 否 | - | 访问
MaxCompute 的 AccessKey Secret。
|
| sts_token | string | 否 | - |
MaxCompute 临时认证 STS Token。配置 `sts_token` 时,`accessId` 与 `accesskey` 必填。
|
| endpoint | string | 是 | - |
MaxCompute 端点,以 `http` 开头。
|
-| project | string | 是 | - |
在阿里云中创建的 MaxCompute 项目。
|
+| project | string | 否 | - |
在阿里云中创建的 MaxCompute 项目。选项规则不强制要求:`table_list` 的每一项都可以单独配置 `project`
覆盖外层值,因此外层配置是可选的。除非每个 `table_list` 条目都自带 `project`,否则请配置该参数。 |
| table_name | string | 未配置 `table_list` 时必填 | - | 目标
MaxCompute 表名,例如 `fake`。
|
| schema_name | string | 否 | - |
MaxCompute Schema 名称(Project 与 Table 之间的命名空间)。仅当表位于非默认 Schema 时需要设置。
|
| partition_spec | string | 否 | - |
MaxCompute 分区表的规范,例如 `ds='20220101'`。
|
diff --git a/docs/zh/connectors/source/Redis.md
b/docs/zh/connectors/source/Redis.md
index ef0102ae60..fbfeb5be3f 100644
--- a/docs/zh/connectors/source/Redis.md
+++ b/docs/zh/connectors/source/Redis.md
@@ -55,10 +55,10 @@ Redis 值。校验成功**不代表**匹配的 key 存在、已存储的值与 `
| user | string | 否 | - | Redis 认证用户名 |
| auth | string | 否 | - | Redis 认证密码 |
| db_num | int | 否 | 0 | Redis 数据库索引 |
-| mode | string | 否 | single | Redis 模式:`single` 或
`cluster` |
+| mode | enum | 否 | single | Redis 模式:`single` 或
`cluster` |
| nodes | list | `mode=cluster` 时必须 | - | Redis 集群节点,格式为
`["host1:port1", "host2:port2"]` |
| keys | string | 未配置 `tables_configs` 时必须 | - | 要扫描的 Redis key
pattern,支持模糊匹配;用户需保证匹配到的 key 类型相同。与 `tables_configs` 互斥。 |
-| data_type | string | 未配置 `tables_configs` 时必须 | - | 匹配到的 key 的
Redis 数据类型:`key`、`string`、`hash`、`list`、`set`、`zset`。单 key pattern 读取时需与 `keys`
一起配置。 |
+| data_type | enum | 未配置 `tables_configs` 时必须 | - | 匹配到的 key 的
Redis 数据类型:`key`、`string`、`hash`、`list`、`set`、`zset`。单 key pattern 读取时需与 `keys`
一起配置。 |
| tables_configs | list | 否 | - | 多表读取时的表配置列表 |
| hash_key_parse_mode | string | 否 | all | HASH
数据的解析模式(`tables_configs` 表项同样生效):`all` 将整个 hash 值作为单个 JSON 字符串列输出,`kv` 将 hash
字段(连同 `key_field_name` 下的 key)按配置的 `schema` 映射,每个 Redis hash key 输出一行 |
| read_key_enabled | boolean | 否 | false | 设置为 true 时,源连接器在读取
Redis 值的同时会读取对应的 key。开启后必须设置 `single_field_name` |
@@ -80,14 +80,14 @@ Redis 值。校验成功**不代表**匹配的 key 存在、已存储的值与 `
| 名称 | 类型 | 是否必须 | 默认值 | 描述
|
|---------------------|---------|--------|-------|--------------------------------------------|
| keys | string | 是 | - | 要扫描的 Redis key pattern
|
-| data_type | string | 是 | - | Redis
数据类型:`key`、`string`、`hash`、`list`、`set`、`zset` |
+| data_type | enum | 是 | - | Redis
数据类型:`key`、`string`、`hash`、`list`、`set`、`zset` |
| batch_size | int | 否 | 10 | SCAN 操作的批量大小
|
-| format | string | 否 | json | 数据格式:`json` 或 `text`
|
+| format | enum | 否 | json | 数据格式:`json` 或 `text`
|
| schema | config | 否 | - | Schema 配置
|
-| hash_key_parse_mode | string | 否 | all | Hash key 解析模式:`all` 或 `kv`
|
-| read_key_enabled | boolean | 否 | false | 是否在输出中包含 Redis key
|
-| key_field_name | string | 否 | - | Redis key 的字段名称
|
-| single_field_name | string | read_key_enabled = true
且为单值类型(string、list、set、zset)时必填 | - | Redis value 的字段名称
|
+| hash_key_parse_mode | enum | 否 | all | Hash key 解析模式:`all` 或 `kv`
|
+| read_key_enabled | boolean | 否 | false | 在输出中加入 Redis key。启用时需要配置 `schema`
并使用 `format = json`。 |
+| key_field_name | string | 否 | `hash` 类型为 `hash_key`,其余类型为 `key` | 输出行中保存
Redis key 的字段名。 |
+| single_field_name | string | 条件必填 | - | 当 `read_key_enabled = true` 且
`string` 的值或 `list`、`set`、`zset` 的元素为标量或数组时,必须用此参数指定保存该值的输出字段。JSON 对象直接使用自身字段。 |
| field_delimiter | string | 否 | ',' | 文本格式的分隔符
|
**注意:** 当只读取单表时,请把这些表级参数直接配置在 `Redis` 外层,例如
`keys`、`data_type`、`format`、`schema`,不需要使用 `tables_configs`。
@@ -147,7 +147,7 @@ keys 模式
默认值为 `false`,也就是只读取 value。
-单表配置下开启 `read_key_enabled` 时,必须同时配置 `single_field_name`,与 `data_type` 无关。对于
`string`、`list`、`set`、`zset` 这类单值类型,该选项指定 Redis value
写入哪一列,缺失时读取会直接失败。`key_field_name` 是可选项,默认字段名为 `key`。`tables_configs`
中的表级配置不受该校验限制:此时仅单值类型需要配置 `single_field_name`。
+当 `read_key_enabled = true` 时,选项规则要求必须在源顶层配置中设置 `single_field_name`,与配置的
`data_type` 无关(该校验只针对扁平的单表配置;`tables_configs` 表项只需 `keys` 和
`data_type`)。该字段的值用于把非对象值(例如 `string`、`list`、`set`、`zset` 的普通值)映射到 schema
列;本身就能解析成 JSON 对象的值(例如 `json` 格式下的 `hash` 字段)则按对象自身字段映射。`key_field_name`
是可选项,`hash` 类型默认字段名为 `hash_key`,其它类型默认为 `key`。
配置 schema 时,需要包含实际输出的字段名,包括默认的 `key` 字段或 `key_field_name` 指定的字段名。
@@ -178,7 +178,9 @@ schema {
`read_key_enabled = true` 时,指定 Redis value 输出到哪一个字段。
-单表配置下,只要 `read_key_enabled = true`,无论 `data_type` 是什么,配置校验都要求该选项必填。对于
`string`、`list`、`set`、`zset` 这类单值类型,该字段就是 value 映射到的 schema 列,缺失时读取会直接失败;对于
`hash` 这类可以直接映射成多列对象的数据,value 字段来自 hash 结构本身,但单表配置校验仍会要求填写该选项。
+该选项主要用于 `string`、`list`、`set`、`zset` 这类不能直接映射成多列对象的数据。对于本身就能解析成 JSON 对象的值(例如
`json` 格式下的 `hash` 字段),该选项不会被应用,对象按自身字段映射。
+
+**注意:** 即使目标数据类型在运行时不会使用该选项,只要配置了 `read_key_enabled =
true`,顶层选项规则仍然要求配置该选项。该要求只针对扁平的单表配置;`tables_configs` 表项不要求设置该选项。
### batch_size [int]
@@ -540,8 +542,9 @@ sink {
### 使用自定义键名和值列名读取
通过 `key_field_name`、`single_field_name` 和 `read_key_enabled = true` 可以把 Redis
键纳入输出,并控制其
-值映射到 schema 中的哪一列。对于基础值类型(`string`、`list`、`set`、`zset`),必须设置
`single_field_name`,
-让连接器知道哪个 schema 列接收该值。
+值映射到 schema 中的哪一列。只要开启 `read_key_enabled = true`,就必须设置
`single_field_name`(选项规则对
+所有 `data_type` 都生效),并且对于 `string`、`list`、`set`、`zset` 这类非对象值,该选项决定了哪个 schema 列
+接收该值。
```hocon
source {
diff --git a/docs/zh/connectors/source/RocketMQ.md
b/docs/zh/connectors/source/RocketMQ.md
index 99b5b84ca6..eb069d7703 100644
--- a/docs/zh/connectors/source/RocketMQ.md
+++ b/docs/zh/connectors/source/RocketMQ.md
@@ -34,7 +34,7 @@ import ChangeLog from '../changelog/connector-rocketmq.md';
|--------|------|----------|--------|------|
| name.srv.addr | String | 是 | - | RocketMQ NameServer 地址,例如 `localhost:9876`。
|
| topics | String | 否 | - | topic 名称,多个 topic 使用逗号分隔,例如
`"topic_a,topic_b"`。`topics`、`tables_configs` 和 `table_list` 只能配置其中一个。 |
-| tables_configs | List | 否 | - | 多表读取配置。每一项必须包含 `topics`,并可配置
`format`、`schema`、`tags`、`start.mode`、`start.mode.timestamp`、`start.mode.offsets`
和 `ignore_parse_errors`。 |
+| tables_configs | List | 否 | - | 多表读取配置。每一项必须包含 `topics`,并可配置
`format`、`schema`、`tags`、`start.mode`、`start.mode.timestamp`、`start.mode.offsets`、`ignore_parse_errors`
和 `field.delimiter`。 |
| table_list | List | 否 | - | 已废弃,请使用 `tables_configs`。 |
| tags | String | 否 | - | tag 名称,多个 tag 使用逗号分隔。只消费 RocketMQ tag 与配置值完全匹配的消息。 |
| acl.enabled | Boolean | 否 | false | 是否启用 RocketMQ ACL 鉴权。 |
diff --git a/docs/zh/transforms/llm.md b/docs/zh/transforms/llm.md
index b76ef80948..4fa55767b3 100644
--- a/docs/zh/transforms/llm.md
+++ b/docs/zh/transforms/llm.md
@@ -28,7 +28,9 @@ LLM 转换插件利用大型语言模型(LLM)的能力处理数据,将输
### model_provider
要使用的模型提供者。可用选项为:
-OPENAI,DOUBAO,DEEPSEEK,KIMIAI,MICROSOFT, ZHIPU, CUSTOM
+OPENAI,DOUBAO,DEEPSEEK,KIMIAI,MICROSOFT,ZHIPU,CUSTOM
+
+> 注意:QIANFAN 虽然是枚举中的合法取值,但 LLM 转换并未实现该提供者,初始化时会抛出不支持的异常;目前仅 Embedding 转换支持
QIANFAN。
> tips: 如果使用 Microsoft, 请确保 api_path 配置不能为空
### output_data_type
diff --git a/docs/zh/transforms/replace.md b/docs/zh/transforms/replace.md
index 824abea2a9..61ab563094 100644
--- a/docs/zh/transforms/replace.md
+++ b/docs/zh/transforms/replace.md
@@ -10,7 +10,7 @@
| 名称 | 类型 | 是否必须 | 默认值 |
|---------------|---------|------|-------|
-| replace_fields | array | yes | |
+| replace_fields | array | 是 | - |
| pattern | string | yes | - |
| replacement | string | yes | - |
| is_regex | boolean | no | false |
@@ -59,7 +59,7 @@
控制当多个 `table_transform` 条目的 `table_path` 相同时的处理方式:`FIRST_MATCH`
只应用第一个匹配的条目,`ALL_MATCH` 按顺序应用所有匹配的条目。如果未设置,重复的 `table_path` 条目会被拒绝。
-### common options [string]
+### common options
转换插件的常见参数, 请参考 [Transform Plugin](common-options/common-options.md) 了解详情