This is an automated email from the ASF dual-hosted git repository.
github-merge-queue[bot] 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 d96364aabc [Docs] Fix connector doc inaccuracies verified against
source code (#13401)
d96364aabc is described below
commit d96364aabc45de306cda9da82040c500783eea91
Author: Jast <[email protected]>
AuthorDate: Wed Nov 25 14:16:03 2026 +0000
[Docs] Fix connector doc inaccuracies verified against source code (#13401)
Co-authored-by: zhangshenghang <[email protected]>
Co-authored-by: jast <[email protected]>
Co-authored-by: zhiwei.niu <[email protected]>
---
docs/en/connectors/sink/ClickhouseFile.md | 10 ++++++----
docs/en/connectors/sink/Easysearch.md | 2 +-
docs/en/connectors/sink/Hive.md | 6 +++++-
docs/en/connectors/sink/IoTDB.md | 2 +-
docs/en/connectors/sink/IoTDBv2.md | 9 ++++++---
docs/en/connectors/sink/NatsJetStream.md | 2 +-
docs/en/connectors/sink/Snowflake.md | 5 ++---
docs/en/connectors/sink/Typesense.md | 6 +++++-
docs/en/connectors/source/Clickhouse.md | 2 ++
docs/en/connectors/source/Easysearch.md | 2 +-
docs/en/connectors/source/OceanBase.md | 4 ++--
docs/en/connectors/source/Pulsar.md | 8 ++++++--
docs/en/engines/zeta/user-command.md | 6 +++---
docs/zh/connectors/sink/ClickhouseFile.md | 10 ++++++----
docs/zh/connectors/sink/Easysearch.md | 2 +-
docs/zh/connectors/sink/Hive.md | 6 +++++-
docs/zh/connectors/sink/IoTDB.md | 2 +-
docs/zh/connectors/sink/IoTDBv2.md | 9 ++++++---
docs/zh/connectors/sink/NatsJetStream.md | 2 +-
docs/zh/connectors/sink/Snowflake.md | 5 ++---
docs/zh/connectors/sink/Typesense.md | 6 +++++-
docs/zh/connectors/source/Clickhouse.md | 2 ++
docs/zh/connectors/source/Easysearch.md | 2 +-
docs/zh/connectors/source/OceanBase.md | 4 ++--
docs/zh/connectors/source/Pulsar.md | 8 ++++++--
docs/zh/engines/zeta/user-command.md | 6 +++---
26 files changed, 82 insertions(+), 46 deletions(-)
diff --git a/docs/en/connectors/sink/ClickhouseFile.md
b/docs/en/connectors/sink/ClickhouseFile.md
index b0682cf938..4929bbedb6 100644
--- a/docs/en/connectors/sink/ClickhouseFile.md
+++ b/docs/en/connectors/sink/ClickhouseFile.md
@@ -34,10 +34,10 @@ Write data to Clickhouse can also be done using JDBC
| sharding_key | string | no | -
|
| copy_method | string | no | scp
|
| node_free_password | boolean | no | false
|
-| node_pass | list | no | -
|
-| node_pass.node_address | string | no | -
|
+| node_pass | list | yes | -
|
+| node_pass.node_address | string | yes | -
|
| node_pass.username | string | no | "root"
|
-| node_pass.password | string | no | -
|
+| node_pass.password | string | yes | -
|
| compatible_mode | boolean | no | false
|
| file_fields_delimiter | string | no | "\t"
|
| file_temp_path | string | no |
"/tmp/seatunnel/clickhouse-local/file" |
@@ -90,9 +90,11 @@ you can configure this option to true, otherwise you need to
configure the corre
Used to save the addresses and corresponding passwords of all clickhouse
servers
+Note: `node_pass` is a list; every entry must contain `node_address` and
`password` (`username` falls back to `root` when not configured). Missing
either one fails job initialization.
+
### node_pass.node_address [string]
-The address corresponding to the clickhouse server
+The address corresponding to the clickhouse server. Required inside each
`node_pass` entry.
### node_pass.username [string]
diff --git a/docs/en/connectors/sink/Easysearch.md
b/docs/en/connectors/sink/Easysearch.md
index 894c3bf331..56e2d8f3d2 100644
--- a/docs/en/connectors/sink/Easysearch.md
+++ b/docs/en/connectors/sink/Easysearch.md
@@ -35,7 +35,7 @@ Engine Supported
| Easysearch Data Type | SeaTunnel Data Type |
|-----------------------------|----------------------|
-| STRING<br/>KEYWORD<br/>TEXT | STRING |
+| STRING<br/>KEYWORD<br/>TEXT<br/>BINARY | STRING |
| BOOLEAN | BOOLEAN |
| BYTE | BYTE |
| SHORT | SHORT |
diff --git a/docs/en/connectors/sink/Hive.md b/docs/en/connectors/sink/Hive.md
index 70404eb98c..1a4b8447ff 100644
--- a/docs/en/connectors/sink/Hive.md
+++ b/docs/en/connectors/sink/Hive.md
@@ -192,13 +192,17 @@ Option values:
We use templates to automatically create Hive tables, which will create
corresponding table creation statements based on the type of upstream data and
schema type, and the default template can be modified according to the
situation. Available template variables: ${database}, ${table},
${rowtype_fields}, ${rowtype_partition_fields}, ${table_location},
${current_timestamp}.
-**Default value**: When not specified, uses a default PARQUET non-partitioned
table template:
+**Default value**: When not specified, table creation goes through the Hive
metastore client and produces a PARQUET non-partitioned managed table. The
equivalent default template is (the metastore path stamps
`seatunnel.creation.mode = default_template`, so the template below keeps that
same value; `${current_timestamp}` is replaced with creation epoch
milliseconds):
```sql
CREATE TABLE IF NOT EXISTS `${database}`.`${table}` (
${rowtype_fields}
)
STORED AS PARQUET
LOCATION '${table_location}'
+TBLPROPERTIES (
+ 'seatunnel.creation.mode' = 'default_template',
+ 'seatunnel.created.time' = '${current_timestamp}'
+)
```
### common options
diff --git a/docs/en/connectors/sink/IoTDB.md b/docs/en/connectors/sink/IoTDB.md
index d675693910..44e22a40e7 100644
--- a/docs/en/connectors/sink/IoTDB.md
+++ b/docs/en/connectors/sink/IoTDB.md
@@ -61,7 +61,7 @@ Used to write data to IoTDB.
| max_thrift_frame_size | Integer | No | -
| Thrift max frame size in IoTDB client
|
| zone_id | string | No | -
| java.time.ZoneId in IoTDB client
|
| enable_rpc_compression | Boolean | No | -
| Enable rpc compression in IoTDB client
|
-| connection_timeout_in_ms | Integer | No | -
| The maximum time (in ms) to wait when connecting to IoTDB
|
+| connection_timeout_in_ms | Integer | No | -
| The maximum time (in ms) to wait when connecting to IoTDB. NOTE: this
option requires `enable_rpc_compression` to be set; configuring it without
`enable_rpc_compression` fails configuration loading. |
| common-options | | no | -
| Sink plugin common parameters, please refer to [Sink Common
Options](../common-options/sink-common-options.md) for details
|
## Write Rules
diff --git a/docs/en/connectors/sink/IoTDBv2.md
b/docs/en/connectors/sink/IoTDBv2.md
index a67dc6c6a2..de88460864 100644
--- a/docs/en/connectors/sink/IoTDBv2.md
+++ b/docs/en/connectors/sink/IoTDBv2.md
@@ -29,6 +29,8 @@ Used to write data to IoTDB 2.x. The connector name in job
configuration is `IoT
## Data Type Mapping
+The mapping below applies to the default tree model (`sql_dialect = "tree"`).
In tree mode `STRING` is written as IoTDB `TEXT`, and types not listed here
(for example `TIMESTAMP` and `DATE`) are rejected with `UNSUPPORTED_DATA_TYPE`.
The table model (`sql_dialect = "table"`) maps `STRING` to `STRING` and
additionally supports `TIMESTAMP` and `DATE`.
+
| SeaTunnel Data Type | IoTDB Data Type |
|---------------------|-----------------|
| BOOLEAN | BOOLEAN |
@@ -38,9 +40,7 @@ Used to write data to IoTDB 2.x. The connector name in job
configuration is `IoT
| BIGINT | INT64 |
| FLOAT | FLOAT |
| DOUBLE | DOUBLE |
-| STRING | STRING |
-| TIMESTAMP | TIMESTAMP |
-| DATE | DATE |
+| STRING | TEXT |
## Sink Options
@@ -125,6 +125,7 @@ sink {
node_urls = ["localhost:6667"]
username = "root"
password = "root"
+ storage_group = "" # required option; empty string because `key_device`
already contains the full device path
key_device = "device_name" # specify the `deviceId` use device_name field
}
}
@@ -155,6 +156,7 @@ sink {
node_urls = ["localhost:6667"]
username = "root"
password = "root"
+ storage_group = "" # required option; empty string because `key_device`
already contains the full device path
key_device = "device_name" # specify the `deviceId` use device_name field
key_timestamp = "event_ts" # specify the `timestamp` use event_ts field
}
@@ -186,6 +188,7 @@ sink {
node_urls = ["localhost:6667"]
username = "root"
password = "root"
+ storage_group = "" # required option; empty string because `key_device`
already contains the full device path
key_device = "device_name"
key_timestamp = "event_ts"
key_measurement_fields = ["temperature", "moisture"]
diff --git a/docs/en/connectors/sink/NatsJetStream.md
b/docs/en/connectors/sink/NatsJetStream.md
index 160508b0dc..c3e23e1ce2 100644
--- a/docs/en/connectors/sink/NatsJetStream.md
+++ b/docs/en/connectors/sink/NatsJetStream.md
@@ -104,7 +104,7 @@ Supported mapping keys:
Unsupported mapping keys are rejected.
-When an optional mapping (`subject`, `id`, `headers`) points to a field that
does not exist in the input schema, the connector silently skips that mapping.
For example, with the default mapping `{id:id, subject:subject,
headers:headers, data:data}`, a schema that only contains a `data` field will
still be accepted; `id`, `subject`, and `headers` are simply not set on the
published message.
+When an optional mapping (`id`, `headers`) points to a field that does not
exist in the input schema, the connector silently skips that mapping. A
`subject` mapping pointing to a nonexistent field is only skipped when the
sink-level `subject` fallback is configured; otherwise validation fails. For
example, with the default mapping `{id:id, subject:subject, headers:headers,
data:data}`, a schema that only contains a `data` field is accepted only if
`subject` is also configured; without it [...]
### include_row_kind_header [boolean]
diff --git a/docs/en/connectors/sink/Snowflake.md
b/docs/en/connectors/sink/Snowflake.md
index 1c56b10606..838d796e9f 100644
--- a/docs/en/connectors/sink/Snowflake.md
+++ b/docs/en/connectors/sink/Snowflake.md
@@ -61,13 +61,12 @@ When the sink creates a table, a SeaTunnel `DECIMAL(p, s)`
column with `p > 38`
| Name | Type | Required | Default |
Description
|
|-------------------------------------------|---------|----------|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| url | String | Yes | - |
JDBC connection URL, for example
`jdbc:snowflake://<account_name>.snowflakecomputing.com`. |
-| generate_sink_sql | Boolean | No | false |
Generate SQL statements based on the `database`/`table`/`primary_keys` you want
to write to. |
| driver | String | Yes | - |
JDBC driver class name. Use `net.snowflake.client.jdbc.SnowflakeDriver` for
Snowflake.
|
+| generate_sink_sql | Boolean | No | false |
Generate sink SQL from `database`, `table`, and `primary_keys` instead of using
a custom `query`. When `true`, `database` becomes required; omit `query` so the
generated SQL is used — a nonblank `query` still takes precedence.
|
| username | String | No | - |
Username for the Snowflake account.
|
| password | String | No | - |
Password for the Snowflake account.
|
| query | String | No | - |
SQL used to write upstream rows. Takes precedence over `database`/`table`
auto-generated SQL, and disables catalog-based optimizations (no auto-generated
upsert). |
-| generate_sink_sql | Boolean | No | false |
Whether to generate sink SQL from `database`, `table` and `primary_keys`
instead of using `query`.
|
-| database | String | No | - |
Database name. When `generate_sink_sql = true`, used with `table` to generate
`INSERT`/upsert SQL. Mutually exclusive with `query`; when both are set,
`query` wins. |
+| database | String | Yes when `generate_sink_sql = true` | - | Target
database used with `table` to generate write SQL. |
| table | String | No | - |
Target table name. Used together with `database` and `generate_sink_sql` to
generate writes.
|
| primary_keys | Array | No | - |
Primary-key columns. Required when `generate_sink_sql = true` together with
`enable_upsert = true` to build an upsert (insert-or-update) statement.
|
| connection_check_timeout_sec | Int | No | 30 |
Seconds to wait for the connection check before failing.
|
diff --git a/docs/en/connectors/sink/Typesense.md
b/docs/en/connectors/sink/Typesense.md
index 5f14eece5a..72aff0e2d0 100644
--- a/docs/en/connectors/sink/Typesense.md
+++ b/docs/en/connectors/sink/Typesense.md
@@ -104,7 +104,11 @@ Choose how to handle existing data on the target side
before starting the synchr
:::tip
-The connector uses Typesense's bulk import endpoint. `UPDATE` and `DELETE` row
kinds are not interpreted as CDC operations — every upstream row is upserted
into the target collection based on the generated document `id`. Use
`data_save_mode = DROP_DATA` together with a stable `primary_keys`
configuration to make repeated jobs behave like upserts rather than appends.
+The connector interprets CDC row kinds: `INSERT` and `UPDATE_AFTER` rows are
upserted into the target collection via Typesense's bulk import endpoint based
on the generated document `id`, `UPDATE_BEFORE` rows are skipped, and `DELETE`
rows delete the document with the generated `id`. Configure `primary_keys` so
the document `id` is stable across CDC events.
+
+The writer sends deletes immediately and can hold earlier upserts until the
batch is flushed.
+With `max_batch_size > 1`, a buffered upsert can recreate a document after a
later delete of the same ID.
+Set `max_batch_size = 1` to preserve this order within each sink writer.
:::
diff --git a/docs/en/connectors/source/Clickhouse.md
b/docs/en/connectors/source/Clickhouse.md
index 01ede21089..0d7d040bdb 100644
--- a/docs/en/connectors/source/Clickhouse.md
+++ b/docs/en/connectors/source/Clickhouse.md
@@ -79,6 +79,8 @@ Table list configuration:
Note: When this configuration corresponds to a single table, you can flatten
the configuration items in table_list to the outer layer. In that flattened
form, configure `split.size` instead of `split_size`.
+Note: Each `table_list` entry (or the flattened outer-level configuration)
must set at least one of `table_path` or `sql`. The connector fails with
`table_path` and `sql` parameter cannot be both empty when both are missing.
+
## Parallel Reader
The Clickhouse source connector supports parallel reading of data.
diff --git a/docs/en/connectors/source/Easysearch.md
b/docs/en/connectors/source/Easysearch.md
index f2ebda93c6..1f514ad23e 100644
--- a/docs/en/connectors/source/Easysearch.md
+++ b/docs/en/connectors/source/Easysearch.md
@@ -40,7 +40,7 @@ Engine Supported
| Easysearch Data Type | SeaTunnel Data Type |
|-----------------------------|----------------------|
-| STRING<br/>KEYWORD<br/>TEXT | STRING |
+| STRING<br/>KEYWORD<br/>TEXT<br/>BINARY | STRING |
| BOOLEAN | BOOLEAN |
| BYTE | BYTE |
| SHORT | SHORT |
diff --git a/docs/en/connectors/source/OceanBase.md
b/docs/en/connectors/source/OceanBase.md
index df443f2273..28c8214ad6 100644
--- a/docs/en/connectors/source/OceanBase.md
+++ b/docs/en/connectors/source/OceanBase.md
@@ -94,7 +94,7 @@ Read OceanBase data through JDBC. OceanBase can run in
MySQL-compatible mode or
| table_list | Array | No | - |
List of tables to read. Use it for multi-table reads. Each item can contain
`table_path`, `query`, `partition_column`, and other table-level settings.
|
| where_condition | String | No | - |
Common row filter for all tables or queries. It must start with `where`, for
example `where id > 100`.
|
| connection_check_timeout_sec | Int | No | 30 | The
time in seconds to wait for the database operation used to validate the
connection to complete
|
-| partition_column | String | No | - | The
column name for parallelism's partition, only support numeric type column and
string type column.
|
+| partition_column | String | No | - | The
column name for parallelism's partition, supports numeric type, string type and
DATE type columns.
|
| partition_lower_bound | String | No | - | The
partition_column min value for scan, if not set SeaTunnel will query database
get min value.
|
| partition_upper_bound | String | No | - | The
partition_column max value for scan, if not set SeaTunnel will query database
get max value.
|
| partition_num | Int | No | 10 | The
number of partition count, only support positive integer. When reading by
`table_path`, prefer `split.size` to control split size.
|
@@ -112,7 +112,7 @@ Read OceanBase data through JDBC. OceanBase can run in
MySQL-compatible mode or
| skip_analyze | Boolean | No | false |
Skip table count analysis during dynamic chunk split. It is mainly used by
Oracle-compatible read scenarios.
|
| use_regex | Boolean | No | false |
Treat `table_path` as a regular expression when matching tables.
|
| decimal_type_narrowing | Boolean | No | true | In
Oracle-compatible mode, narrow decimal values to INT or BIGINT when it can be
done without losing precision.
|
-| int_type_narrowing | Boolean | No | true | In
MySQL-compatible mode, narrow `TINYINT(1)` to BOOLEAN when it can be done
without losing precision.
|
+| int_type_narrowing | Boolean | No | true | Not
currently honored by the OceanBase connector: in MySQL-compatible mode
`TINYINT(1)` is always read as BOOLEAN.
|
| dialect | String | No | - |
Appointed JDBC dialect. OceanBase is usually detected from the URL, so this is
only needed for special compatibility cases.
|
| properties | Map | No | - |
Additional connection configuration parameters,when properties and URL have the
same parameters, the priority is determined by the <br/>specific implementation
of the driver. For example, in MySQL, properties take precedence over the URL.
|
| common-options | | No | - |
Source plugin common parameters, please refer to [Source Common
Options](../common-options/source-common-options.md) for details
|
diff --git a/docs/en/connectors/source/Pulsar.md
b/docs/en/connectors/source/Pulsar.md
index e20dfec04e..d1dc6432cb 100644
--- a/docs/en/connectors/source/Pulsar.md
+++ b/docs/en/connectors/source/Pulsar.md
@@ -370,9 +370,13 @@ source {
### Read From a Topic Pattern With Discovery
-When the topic list grows over time, combine `topic-pattern` with
`topic-discovery.interval` to pick up newly created topics automatically.
+When the topic list grows over time, combine `topic-pattern` with
`topic-discovery.interval` to pick up newly created topics automatically.
Dynamic discovery only works for unbounded reads: run the job in `STREAMING`
mode with `cursor.stop.mode = "NEVER"`, otherwise the source fails with
`Bounded streams do not support dynamic partition discovery.`
```hocon
+env {
+ job.mode = "STREAMING"
+}
+
source {
Pulsar {
topic-pattern = "persistent://public/default/orders-.*"
@@ -381,7 +385,7 @@ source {
admin.service-url = "http://localhost:8080"
topic-discovery.interval = 30000
cursor.startup.mode = "EARLIEST"
- cursor.stop.mode = "LATEST"
+ cursor.stop.mode = "NEVER"
format = json
schema = {
fields {
diff --git a/docs/en/engines/zeta/user-command.md
b/docs/en/engines/zeta/user-command.md
index a9231d2fd3..5a2cb6cbc5 100644
--- a/docs/en/engines/zeta/user-command.md
+++ b/docs/en/engines/zeta/user-command.md
@@ -265,9 +265,9 @@ This command will output detailed information about all
members in the cluster,
**Example output:**
```
Member ID Address Role
Version
-a1b2c3d4-e5f6-7890-abcd-ef1234567890 192.168.1.100:5801 ACTIVE MASTER
5.3.0
-b2c3d4e5-f6g7-8901-bcde-f23456789012 192.168.1.101:5801 MASTER
5.3.0
-c3d4e5f6-g7h8-9012-cdef-345678901234 192.168.1.102:5801 WORKER
5.3.0
+a1b2c3d4-e5f6-7890-abcd-ef1234567890 192.168.1.100:5801 ACTIVE MASTER
5.1.7
+b2c3d4e5-f6a7-8901-bcde-f23456789012 192.168.1.101:5801 MASTER
5.1.7
+c3d4e5f6-a7b8-9012-cdef-345678901234 192.168.1.102:5801 WORKER
5.1.7
```
**Note**: You must specify the cluster name with the `-cn` parameter. The
cluster must be running for this command to work.
diff --git a/docs/zh/connectors/sink/ClickhouseFile.md
b/docs/zh/connectors/sink/ClickhouseFile.md
index 6f16719c79..01884a224e 100644
--- a/docs/zh/connectors/sink/ClickhouseFile.md
+++ b/docs/zh/connectors/sink/ClickhouseFile.md
@@ -32,10 +32,10 @@ import ChangeLog from
'../changelog/connector-clickhouse.md';
| sharding_key | string | no | -
|
| copy_method | string | no | scp
|
| node_free_password | boolean | no | false
|
-| node_pass | list | no | -
|
-| node_pass.node_address | string | no | -
|
+| node_pass | list | yes | -
|
+| node_pass.node_address | string | yes | -
|
| node_pass.username | string | no | "root"
|
-| node_pass.password | string | no | -
|
+| node_pass.password | string | yes | -
|
| compatible_mode | boolean | no | false
|
| file_fields_delimiter | string | no | "\t"
|
| file_temp_path | string | no |
"/tmp/seatunnel/clickhouse-local/file" |
@@ -84,9 +84,11 @@ import ChangeLog from '../changelog/connector-clickhouse.md';
用来保存所有clickhouse服务器地址及其对应的访问密码。
+注意: `node_pass` 为列表结构,每一个条目中都必须包含 `node_address` 和 `password` 两个属性(`username`
不配置时默认为 `root`),缺少任何一个都会导致任务初始化失败。
+
### node_pass.node_address [string]
-clickhouse服务器节点地址。
+clickhouse服务器节点地址。在 `node_pass` 每个条目中必填。
### node_pass.username [string]
diff --git a/docs/zh/connectors/sink/Easysearch.md
b/docs/zh/connectors/sink/Easysearch.md
index 2597538621..c51493d3b8 100644
--- a/docs/zh/connectors/sink/Easysearch.md
+++ b/docs/zh/connectors/sink/Easysearch.md
@@ -35,7 +35,7 @@ import ChangeLog from '../changelog/connector-easysearch.md';
| Easysearch 数据类型 | SeaTunnel 数据类型 |
|-----------------------------|----------------------|
-| STRING<br/>KEYWORD<br/>TEXT | STRING |
+| STRING<br/>KEYWORD<br/>TEXT<br/>BINARY | STRING |
| BOOLEAN | BOOLEAN |
| BYTE | BYTE |
| SHORT | SHORT |
diff --git a/docs/zh/connectors/sink/Hive.md b/docs/zh/connectors/sink/Hive.md
index 4efcc9db42..0fc0c1da86 100644
--- a/docs/zh/connectors/sink/Hive.md
+++ b/docs/zh/connectors/sink/Hive.md
@@ -196,13 +196,17 @@ Kerberos 的 keytab 文件路径
我们使用模板来自动创建 Hive
表,它将根据上游数据类型和模式类型创建相应的建表语句,默认模板可以根据情况进行修改。可用的模板变量:${database}, ${table},
${rowtype_fields}, ${rowtype_partition_fields}, ${table_location},
${current_timestamp}。
-**默认值**: 当未指定时,使用默认的 PARQUET 非分区表模板:
+**默认值**: 当未指定时,建表通过 Hive metastore 客户端完成,生成 PARQUET 非分区托管表。等价的默认模板如下(metastore
路径写入的表属性为 `seatunnel.creation.mode =
default_template`,因此下方模板保持相同取值;`${current_timestamp}` 会被替换为建表时的毫秒时间戳):
```sql
CREATE TABLE IF NOT EXISTS `${database}`.`${table}` (
${rowtype_fields}
)
STORED AS PARQUET
LOCATION '${table_location}'
+TBLPROPERTIES (
+ 'seatunnel.creation.mode' = 'default_template',
+ 'seatunnel.created.time' = '${current_timestamp}'
+)
```
### 通用选项
diff --git a/docs/zh/connectors/sink/IoTDB.md b/docs/zh/connectors/sink/IoTDB.md
index 7708e8d213..59669f36a8 100644
--- a/docs/zh/connectors/sink/IoTDB.md
+++ b/docs/zh/connectors/sink/IoTDB.md
@@ -61,7 +61,7 @@ import ChangeLog from '../changelog/connector-iotdb.md';
| max_thrift_frame_size | Integer | 否 | -
| IoTDB 客户端的最大 Thrift 帧大小
|
| zone_id | string | 否 | -
| IoTDB 客户端使用的 `java.time.ZoneId`
|
| enable_rpc_compression | Boolean | 否 | -
| 在 IoTDB 客户端中启用rpc压缩
|
-| connection_timeout_in_ms | Integer | 否 | -
| 连接到 IoTDB 时等待的最长时间(毫秒)
|
+| connection_timeout_in_ms | Integer | 否 | -
| 连接到 IoTDB 时等待的最长时间(毫秒)。注意:该选项必须与 `enable_rpc_compression` 一起配置,仅配置它而不配置
`enable_rpc_compression` 会导致配置加载失败。 |
| common-options | | 否 | -
| Sink 插件通用参数,详见 [Sink 通用选项](../common-options/sink-common-options.md)
|
## 写入规则
diff --git a/docs/zh/connectors/sink/IoTDBv2.md
b/docs/zh/connectors/sink/IoTDBv2.md
index c805a1a232..9ea2e379b3 100644
--- a/docs/zh/connectors/sink/IoTDBv2.md
+++ b/docs/zh/connectors/sink/IoTDBv2.md
@@ -29,6 +29,8 @@ import ChangeLog from '../changelog/connector-iotdb-v2.md';
## 数据类型映射
+下表适用于默认的树模型(`sql_dialect = "tree"`)。树模型下 `STRING` 写入为 IoTDB 的 `TEXT`,未列出的类型(例如
`TIMESTAMP` 和 `DATE`)会抛出 `UNSUPPORTED_DATA_TYPE`。表模型(`sql_dialect = "table"`)下
`STRING` 映射为 `STRING`,并且额外支持 `TIMESTAMP` 和 `DATE`。
+
| SeaTunnel 数据类型 | IoTDB 数据类型 |
|----------------|------------|
| BOOLEAN | BOOLEAN |
@@ -38,9 +40,7 @@ import ChangeLog from '../changelog/connector-iotdb-v2.md';
| BIGINT | INT64 |
| FLOAT | FLOAT |
| DOUBLE | DOUBLE |
-| STRING | STRING |
-| TIMESTAMP | TIMESTAMP |
-| DATE | DATE |
+| STRING | TEXT |
## Sink 选项
@@ -126,6 +126,7 @@ sink {
node_urls = ["localhost:6667"]
username = "root"
password = "root"
+ storage_group = "" # 必填选项;这里设为空字符串,因为 `key_device` 字段已包含完整设备路径
key_device = "device_name" # specify the `deviceId` use device_name field
}
}
@@ -156,6 +157,7 @@ sink {
node_urls = ["localhost:6667"]
username = "root"
password = "root"
+ storage_group = "" # 必填选项;这里设为空字符串,因为 `key_device` 字段已包含完整设备路径
key_device = "device_name" # specify the `deviceId` use device_name field
key_timestamp = "event_ts" # specify the `timestamp` use event_ts field
}
@@ -187,6 +189,7 @@ sink {
node_urls = ["localhost:6667"]
username = "root"
password = "root"
+ storage_group = "" # 必填选项;这里设为空字符串,因为 `key_device` 字段已包含完整设备路径
key_device = "device_name"
key_timestamp = "event_ts"
key_measurement_fields = ["temperature", "moisture"]
diff --git a/docs/zh/connectors/sink/NatsJetStream.md
b/docs/zh/connectors/sink/NatsJetStream.md
index 2bf3a86094..7893112f50 100644
--- a/docs/zh/connectors/sink/NatsJetStream.md
+++ b/docs/zh/connectors/sink/NatsJetStream.md
@@ -104,7 +104,7 @@ native 模式中的 message ID 只能作为 **broker 侧的重复缓解提示**
不支持的映射键会直接校验失败。
-当可选映射(`subject`、`id`、`headers`)指向的字段不存在于输入 schema 时,连接器会静默跳过该映射。例如,使用默认映射
`{id:id, subject:subject, headers:headers, data:data}` 时,如果 schema 只包含 `data`
字段,仍然会被接受;`id`、`subject` 和 `headers` 只是不会设置到发布的消息上。
+当可选映射(`id`、`headers`)指向的字段不存在于输入 schema 时,连接器会静默跳过该映射。`subject` 映射只有在同时配置了
sink 级 `subject` 兜底选项时才会被跳过,否则校验直接失败。例如,使用默认映射 `{id:id, subject:subject,
headers:headers, data:data}` 时,只有同时配置了 `subject` 选项,仅包含 `data` 字段的 schema
才会被接受;否则任务会因 schema 校验错误而失败。
### include_row_kind_header [boolean]
diff --git a/docs/zh/connectors/sink/Snowflake.md
b/docs/zh/connectors/sink/Snowflake.md
index e8211ebb6f..2a3fb31ceb 100644
--- a/docs/zh/connectors/sink/Snowflake.md
+++ b/docs/zh/connectors/sink/Snowflake.md
@@ -61,13 +61,12 @@ import ChangeLog from '../changelog/connector-jdbc.md';
| 名称 | 类型 | 是否必填 | 默认值 | 描述
|
|-------------------------------|---------|----------|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| url | String | 是 | - | JDBC 连接 URL,例如
`jdbc:snowflake://<account_name>.snowflakecomputing.com`。
|
-| generate_sink_sql | Boolean | 否 | false | 根据要写入的
`database`/`table`/`primary_keys` 自动生成 SQL 语句。 |
| driver | String | 是 | - | JDBC
驱动类名,Snowflake 使用 `net.snowflake.client.jdbc.SnowflakeDriver`。
|
+| generate_sink_sql | Boolean | 否 | false | 根据
`database`、`table` 和 `primary_keys` 自动生成写入 SQL,而不是使用自定义 `query`。为 `true` 时
`database` 变为必填;请不要设置 `query`,以便使用自动生成的 SQL——非空的 `query` 仍然优先生效。
|
| username | String | 否 | - | Snowflake
账户用户名。
|
| password | String | 否 | - | Snowflake
账户密码。
|
| query | String | 否 | - | 写入上游数据的
SQL。优先级高于 `database`/`table` 自动生成的 SQL;设置后会关闭基于目录的优化(无法自动生成 upsert)。
|
-| generate_sink_sql | Boolean | 否 | false | 是否根据
`database`、`table` 和 `primary_keys` 自动生成写入 SQL,而不是使用 `query`。
|
-| database | String | 否 | - |
数据库名。`generate_sink_sql = true` 时与 `table` 一起用于生成 `INSERT`/upsert SQL;与 `query`
互斥,同时设置时 `query` 优先。 |
+| database | String | `generate_sink_sql = true` 时必填 | - | 目标数据库。生成写入 SQL 时与
`table` 一起使用。 |
| table | String | 否 | - | 目标表名。与
`database` 一起配合 `generate_sink_sql` 生成写入语句。
|
| primary_keys | Array | 否 | - |
主键列。`generate_sink_sql = true` 且 `enable_upsert = true` 时用于构建
upsert(insert-or-update)语句。
|
| connection_check_timeout_sec | Int | 否 | 30 | 连接校验超时时间(秒)。
|
diff --git a/docs/zh/connectors/sink/Typesense.md
b/docs/zh/connectors/sink/Typesense.md
index 45c8ea6b1b..8884c9fe88 100644
--- a/docs/zh/connectors/sink/Typesense.md
+++ b/docs/zh/connectors/sink/Typesense.md
@@ -103,7 +103,11 @@ Typesense collection 创建时会使用上游 SeaTunnel 表结构。如果希望
:::tip
-连接器使用 Typesense 的批量导入接口。`UPDATE` 和 `DELETE` 行类型不会被解释为 CDC 操作 —— 每条上游记录都会按生成的文档
`id` 被 upsert 到目标 collection。如果希望重复作业行为类似 upsert 而不是追加,可以把 `data_save_mode` 设为
`DROP_DATA`,并配置稳定的 `primary_keys`。
+连接器会按 CDC 行类型处理数据:`INSERT` 和 `UPDATE_AFTER` 记录会通过 Typesense 的批量导入接口按生成的文档 `id`
upsert 到目标 collection,`UPDATE_BEFORE` 记录会被跳过,`DELETE` 记录会删除对应生成的 `id` 的文档。请配置
`primary_keys`,保证文档 `id` 在 CDC 事件间保持稳定。
+
+写入器会立即发送删除请求,先到达的 upsert 可能仍在批次中等待刷新。
+当 `max_batch_size > 1` 时,缓冲的 upsert 可能在同一 ID 被删除后重新创建该文档。
+将 `max_batch_size` 设置为 `1` 可保持同一个 sink 写入器内的事件顺序。
:::
diff --git a/docs/zh/connectors/source/Clickhouse.md
b/docs/zh/connectors/source/Clickhouse.md
index 86c41752cc..a6bc5b9a09 100644
--- a/docs/zh/connectors/source/Clickhouse.md
+++ b/docs/zh/connectors/source/Clickhouse.md
@@ -78,6 +78,8 @@ import ChangeLog from '../changelog/connector-clickhouse.md';
注意: 当此配置对应于单个表时,您可以将table_list中的配置项展平到外层。展开到外层时,分片大小参数使用 `split.size`,而不是
`split_size`。
+注意: 每一个 `table_list` 条目(或展平后的外层配置)必须至少配置 `table_path` 和 `sql`
中的一个。如果两者都为空,连接器会抛出 `table_path` and `sql` parameter cannot be both empty. 错误。
+
## 并行读取
Clickhouse源连接器支持并行读取数据。
diff --git a/docs/zh/connectors/source/Easysearch.md
b/docs/zh/connectors/source/Easysearch.md
index 50d778ad62..6353c1abc3 100644
--- a/docs/zh/connectors/source/Easysearch.md
+++ b/docs/zh/connectors/source/Easysearch.md
@@ -41,7 +41,7 @@ import ChangeLog from '../changelog/connector-easysearch.md';
| Easysearch 数据类型 | SeaTunnel 数据类型 |
|-----------------------------|----------------------|
-| STRING<br/>KEYWORD<br/>TEXT | STRING |
+| STRING<br/>KEYWORD<br/>TEXT<br/>BINARY | STRING |
| BOOLEAN | BOOLEAN |
| BYTE | BYTE |
| SHORT | SHORT |
diff --git a/docs/zh/connectors/source/OceanBase.md
b/docs/zh/connectors/source/OceanBase.md
index 849661ea1f..51bd1306b3 100644
--- a/docs/zh/connectors/source/OceanBase.md
+++ b/docs/zh/connectors/source/OceanBase.md
@@ -94,7 +94,7 @@ import ChangeLog from '../changelog/connector-jdbc.md';
| table_list | Array | 否 | - | 待读取的表列表,用于多表读取。每个表配置中可以包含
`table_path`、`query`、`partition_column` 等表级参数。 |
| where_condition | String | 否 | - | 所有表或查询共用的过滤条件,必须以 `where` 开头,例如 `where id
> 100`。 |
| connection_check_timeout_sec | Int | 否 | 30 | 等待用于验证连接的数据库操作完成的时间(秒) |
-| partition_column | String | 否 | - | 用于并行性分割的列名,仅支持数值类型列和字符串类型列。 |
+| partition_column | String | 否 | - | 用于并行性分割的列名,支持数值类型列、字符串类型列和 DATE 类型列。 |
| partition_lower_bound | String | 否 | - | partition_column
的最小值用于扫描,如果未设置,SeaTunnel 将查询数据库获取最小值。 |
| partition_upper_bound | String | 否 | - | partition_column
的最大值用于扫描,如果未设置,SeaTunnel 将查询数据库获取最大值。 |
| partition_num | Int | 否 | 10 | 分片数量,仅支持正整数。使用 `table_path` 读取时,推荐通过
`split.size` 控制单个分片大小。 |
@@ -112,7 +112,7 @@ import ChangeLog from '../changelog/connector-jdbc.md';
| skip_analyze | Boolean | 否 | false | 动态分片阶段跳过表行数分析,主要用于 Oracle 兼容读取场景。 |
| use_regex | Boolean | 否 | false | 是否将 `table_path` 当作正则表达式匹配表。 |
| decimal_type_narrowing | Boolean | 否 | true | Oracle 兼容模式下,在不丢失精度时将 Decimal
收窄为 INT 或 BIGINT。 |
-| int_type_narrowing | Boolean | 否 | true | MySQL 兼容模式下,在不丢失精度时将 `TINYINT(1)`
收窄为 BOOLEAN。 |
+| int_type_narrowing | Boolean | 否 | true | OceanBase 连接器当前不使用该选项:MySQL 兼容模式下
`TINYINT(1)` 始终读取为 BOOLEAN。 |
| dialect | String | 否 | - | 指定 JDBC 方言。OceanBase 通常会根据 URL
自动识别,只有特殊兼容场景才需要显式配置。 |
| properties | Map | 否 | - | 其他连接配置参数,当 properties 和 URL
具有相同参数时,优先级由驱动程序的具体实现确定。例如,在 MySQL 中,properties 优先于 URL。 |
| common-options | | 否 | - | 源插件通用参数,详见
[源通用选项](../common-options/source-common-options.md)。 |
diff --git a/docs/zh/connectors/source/Pulsar.md
b/docs/zh/connectors/source/Pulsar.md
index 5a90026a45..288c1cbfeb 100644
--- a/docs/zh/connectors/source/Pulsar.md
+++ b/docs/zh/connectors/source/Pulsar.md
@@ -363,9 +363,13 @@ source {
### 按 topic-pattern 自动发现新 topic
-当 topic 列表会随时间增长时,可以组合使用 `topic-pattern` 与
`topic-discovery.interval`,让连接器自动发现新增的 topic。
+当 topic 列表会随时间增长时,可以组合使用 `topic-pattern` 与
`topic-discovery.interval`,让连接器自动发现新增的 topic。动态发现只在无界读取下生效:必须以 `STREAMING`
模式运行并使用 `cursor.stop.mode = "NEVER"`,否则源连接器会抛出 `Bounded streams do not support
dynamic partition discovery.` 错误。
```hocon
+env {
+ job.mode = "STREAMING"
+}
+
source {
Pulsar {
topic-pattern = "persistent://public/default/orders-.*"
@@ -374,7 +378,7 @@ source {
admin.service-url = "http://localhost:8080"
topic-discovery.interval = 30000
cursor.startup.mode = "EARLIEST"
- cursor.stop.mode = "LATEST"
+ cursor.stop.mode = "NEVER"
format = json
schema = {
fields {
diff --git a/docs/zh/engines/zeta/user-command.md
b/docs/zh/engines/zeta/user-command.md
index 3fd117804b..6b8f9c88a8 100644
--- a/docs/zh/engines/zeta/user-command.md
+++ b/docs/zh/engines/zeta/user-command.md
@@ -281,9 +281,9 @@ sh bin/seatunnel-cluster.sh -m -cn my_cluster
**输出示例:**
```
Member ID Address Role
Version
-a1b2c3d4-e5f6-7890-abcd-ef1234567890 192.168.1.100:5801 ACTIVE MASTER
5.3.0
-b2c3d4e5-f6g7-8901-bcde-f23456789012 192.168.1.101:5801 MASTER
5.3.0
-c3d4e5f6-g7h8-9012-cdef-345678901234 192.168.1.102:5801 WORKER
5.3.0
+a1b2c3d4-e5f6-7890-abcd-ef1234567890 192.168.1.100:5801 ACTIVE MASTER
5.1.7
+b2c3d4e5-f6a7-8901-bcde-f23456789012 192.168.1.101:5801 MASTER
5.1.7
+c3d4e5f6-a7b8-9012-cdef-345678901234 192.168.1.102:5801 WORKER
5.1.7
```
**注意**: 必须使用 `-cn` 参数指定集群名称。集群必须处于运行状态才能执行此命令。