You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by gi...@apache.org on 2026/09/23 10:21:40 UTC
(seatunnel) 01/01: [Docs] Fix connector doc inaccuracies and add missing option rows verified against source code (#12447)
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-12447-045d6a57932f5fbd75997da523097eec4cab22f6
in repository https://gitbox.apache.org/repos/asf/seatunnel.git
commit 2a8abf1e65971dd9c91b2ef69b2c90b747b2e0fb
Author: Jast <sh...@apache.org>
AuthorDate: Wed Sep 23 10:21:16 2026 +0000
[Docs] Fix connector doc inaccuracies and add missing option rows verified against source code (#12447)
Co-authored-by: jast <xx...@xxx.com>
---
docs/en/connectors/sink/BigQuery.md | 2 +-
docs/en/connectors/sink/Clickhouse.md | 2 ++
docs/en/connectors/sink/ClickhouseFile.md | 4 +++-
docs/en/connectors/sink/DB2.md | 6 +++---
docs/en/connectors/sink/Databend.md | 2 +-
docs/en/connectors/sink/DuckDB.md | 6 +++---
docs/en/connectors/sink/Hbase.md | 1 +
docs/en/connectors/sink/Hudi.md | 1 +
docs/en/connectors/sink/HugeGraph.md | 1 +
docs/en/connectors/sink/Iceberg.md | 2 +-
docs/en/connectors/sink/Kingbase.md | 4 ++--
docs/en/connectors/sink/Mysql.md | 4 ++--
docs/en/connectors/sink/Oracle.md | 8 ++++----
docs/en/connectors/sink/PostgreSql.md | 6 +++---
docs/en/connectors/sink/Qdrant.md | 1 +
docs/en/connectors/sink/Redshift.md | 4 ++--
docs/en/connectors/sink/S3-Redshift.md | 2 +-
docs/en/connectors/sink/SqlServer.md | 4 ++--
docs/en/connectors/sink/StarRocks.md | 4 ++--
docs/en/connectors/sink/Vertica.md | 8 ++++----
docs/en/connectors/sink/Zendesk.md | 1 +
docs/en/connectors/source/DB2-CDC.md | 5 +++--
docs/en/connectors/source/DB2.md | 6 +++---
docs/en/connectors/source/Databend.md | 2 +-
docs/en/connectors/source/DuckDB.md | 12 ++++++------
docs/en/connectors/source/HiveJdbc.md | 5 +++--
docs/en/connectors/source/Kafka.md | 4 ++--
docs/en/connectors/source/Kingbase.md | 2 +-
docs/en/connectors/source/MySQL-CDC.md | 5 +++--
docs/en/connectors/source/Opengauss-CDC.md | 6 ++++--
docs/en/connectors/source/Oracle-CDC.md | 28 ++--------------------------
docs/en/connectors/source/Oracle.md | 4 ++--
docs/en/connectors/source/Snowflake.md | 2 +-
docs/zh/connectors/sink/BigQuery.md | 2 +-
docs/zh/connectors/sink/Clickhouse.md | 2 ++
docs/zh/connectors/sink/ClickhouseFile.md | 4 +++-
docs/zh/connectors/sink/DB2.md | 6 +++---
docs/zh/connectors/sink/Databend.md | 2 +-
docs/zh/connectors/sink/DuckDB.md | 5 +++--
docs/zh/connectors/sink/Hbase.md | 1 +
docs/zh/connectors/sink/Hudi.md | 21 ++++++++++++++++++++-
docs/zh/connectors/sink/HugeGraph.md | 1 +
docs/zh/connectors/sink/Iceberg.md | 2 +-
docs/zh/connectors/sink/Kingbase.md | 4 ++--
docs/zh/connectors/sink/Mysql.md | 4 ++--
docs/zh/connectors/sink/Oracle.md | 8 ++++----
docs/zh/connectors/sink/PostgreSql.md | 6 +++---
docs/zh/connectors/sink/Qdrant.md | 1 +
docs/zh/connectors/sink/Redshift.md | 4 ++--
docs/zh/connectors/sink/S3-Redshift.md | 2 +-
docs/zh/connectors/sink/SqlServer.md | 4 ++--
docs/zh/connectors/sink/StarRocks.md | 4 ++--
docs/zh/connectors/sink/Vertica.md | 8 ++++----
docs/zh/connectors/sink/Zendesk.md | 1 +
docs/zh/connectors/source/DB2-CDC.md | 5 +++--
docs/zh/connectors/source/DB2.md | 6 +++---
docs/zh/connectors/source/Databend.md | 2 +-
docs/zh/connectors/source/DuckDB.md | 12 ++++++------
docs/zh/connectors/source/HiveJdbc.md | 5 +++--
docs/zh/connectors/source/Kafka.md | 4 ++--
docs/zh/connectors/source/Kingbase.md | 2 +-
docs/zh/connectors/source/MySQL-CDC.md | 5 +++--
docs/zh/connectors/source/Opengauss-CDC.md | 6 ++++--
docs/zh/connectors/source/Oracle-CDC.md | 28 ++--------------------------
docs/zh/connectors/source/Oracle.md | 4 ++--
docs/zh/connectors/source/Snowflake.md | 2 +-
66 files changed, 163 insertions(+), 164 deletions(-)
diff --git a/docs/en/connectors/sink/BigQuery.md b/docs/en/connectors/sink/BigQuery.md
index ae90d6d089..e97a434497 100644
--- a/docs/en/connectors/sink/BigQuery.md
+++ b/docs/en/connectors/sink/BigQuery.md
@@ -49,7 +49,7 @@ Sink connector for Google Cloud BigQuery using the Storage Write API for high-pe
| schema_save_mode | enum | No | CREATE_SCHEMA_WHEN_NOT_EXIST | Schema save mode. See below. |
| data_save_mode | enum | No | APPEND_DATA | Data save mode. See below. |
| custom_sql | string | No | - | Custom SQL to execute when `data_save_mode` is `CUSTOM_PROCESSING`. |
-| multi_table_sink_replica | int | No | - | Sink common option. It controls sink replica count in multi-table runtime. |
+| multi_table_sink_replica | int | No | 1 | Sink common option. It controls sink replica count in multi-table runtime. |
| common-options | | No | - | Sink common options. See [Sink Common Options](../common-options/sink-common-options.md). |
### Authentication Options
diff --git a/docs/en/connectors/sink/Clickhouse.md b/docs/en/connectors/sink/Clickhouse.md
index 584cb4eddb..123eb0ee3b 100644
--- a/docs/en/connectors/sink/Clickhouse.md
+++ b/docs/en/connectors/sink/Clickhouse.md
@@ -76,6 +76,8 @@ Create the target table before running the job. Automatic table creation for `TI
| data_save_mode | Enum | No | APPEND_DATA | Data save mode. Please refer to the `data_save_mode` section below. |
| custom_sql | String | No | - | Required when `data_save_mode = CUSTOM_PROCESSING`. The SQL is executed before the synchronization task starts. |
| save_mode_create_template | String | No | see below | Template used to create the ClickHouse table when schema save mode creates a table. |
+| server_time_zone | String | No | JVM system default | The session time zone of the ClickHouse server. Defaults to the JVM system time zone (`ZoneId.systemDefault()`). |
+| multi_table_sink_replica | Int | No | 1 | The number of replicas for multi-table write. When `multi_table_sink_replica > 1`, the data is written to multiple tables in parallel. |
| common-options | | No | - | Sink plugin common parameters, please refer to [Sink Common Options](../common-options/sink-common-options.md) for details. |
### schema_save_mode [Enum]
diff --git a/docs/en/connectors/sink/ClickhouseFile.md b/docs/en/connectors/sink/ClickhouseFile.md
index 12e2fda651..5f9f8e8690 100644
--- a/docs/en/connectors/sink/ClickhouseFile.md
+++ b/docs/en/connectors/sink/ClickhouseFile.md
@@ -40,7 +40,9 @@ Write data to Clickhouse can also be done using JDBC
| compatible_mode | boolean | no | false |
| file_fields_delimiter | string | no | "\t" |
| file_temp_path | string | no | "/tmp/seatunnel/clickhouse-local/file" |
-| key_path | string | no | "/tmp/id_rsa" |
+| key_path | string | no | - |
+| server_time_zone | string | no | ZoneId.systemDefault() |
+| clickhouse.config | map | no | - |
| common-options | | no | - |
### host [string]
diff --git a/docs/en/connectors/sink/DB2.md b/docs/en/connectors/sink/DB2.md
index a7bf802972..03e4e2b231 100644
--- a/docs/en/connectors/sink/DB2.md
+++ b/docs/en/connectors/sink/DB2.md
@@ -52,12 +52,12 @@ Write data to DB2 through JDBC. Supports batch and streaming jobs, concurrent wr
| DECIMAL<br/>DEC<br/>NUMERIC<br/>NUM | DECIMAL(38,18) |
| REAL | FLOAT |
| FLOAT<br/>DOUBLE<br/>DOUBLE PRECISION<br/>DECFLOAT | DOUBLE |
-| CHAR<br/>VARCHAR<br/>LONG VARCHAR<br/>CLOB<br/>GRAPHIC<br/>VARGRAPHIC<br/>LONG VARGRAPHIC<br/>DBCLOB | STRING |
-| BLOB | BYTES |
+| CHAR<br/>VARCHAR<br/>LONG VARCHAR<br/>CLOB<br/>GRAPHIC<br/>VARGRAPHIC<br/>LONG VARGRAPHIC<br/>DBCLOB<br/>XML | STRING |
+| BLOB<br/>BINARY<br/>VARBINARY | BYTES |
| DATE | DATE |
| TIME | TIME |
| TIMESTAMP | TIMESTAMP |
-| ROWID<br/>XML | Not supported yet |
+| ROWID | Not supported yet |
## Sink Options
diff --git a/docs/en/connectors/sink/Databend.md b/docs/en/connectors/sink/Databend.md
index ee9edaa1f0..74dd6f91d5 100644
--- a/docs/en/connectors/sink/Databend.md
+++ b/docs/en/connectors/sink/Databend.md
@@ -49,7 +49,7 @@ They can be downloaded via install-plugin.sh or from the Maven central repositor
| url | String | Yes | - | Databend JDBC connection URL. It must start with `jdbc:databend://` |
| username | String | Yes | - | Databend database username |
| password | String | Yes | - | Databend database password |
-| database | String | No | - | Databend database name, defaults to the database name specified in the connection URL |
+| database | String | No | - | Databend database name used when `generate_sink_sql = true` (together with `table`) to generate the write SQL. No default is applied when unset |
| table | String | No | - | Databend table name |
| batch_size | Integer | No | 1000 | Number of records for batch writing |
| auto_commit | Boolean | No | true | Whether to auto-commit transactions |
diff --git a/docs/en/connectors/sink/DuckDB.md b/docs/en/connectors/sink/DuckDB.md
index b5b411f3aa..d2f8ab1a5a 100644
--- a/docs/en/connectors/sink/DuckDB.md
+++ b/docs/en/connectors/sink/DuckDB.md
@@ -72,8 +72,8 @@ works against a local database file path (`jdbc:duckdb:/path/to/database.db`) or
| username | String | No | - | Connection instance user name. DuckDB does not require authentication for local files; leave empty unless you wrap it with a custom authenticator. |
| password | String | No | - | Connection instance password. DuckDB does not require authentication for local files; leave empty unless you wrap it with a custom authenticator. |
| query | String | No | - | Use this SQL to write upstream input data to the database, for example `INSERT ...`. When `query` is set, it has higher priority than `database`/`table`/`table_list`. |
-| database | String | No | main | Use this `database` and `table` to auto-generate SQL and write upstream input data to the database. This option is mutually exclusive with `query` and has a higher priority. |
-| table | String | No | - | Use database and this table name to auto-generate SQL and write upstream input data to the database. This option is mutually exclusive with `query` and has a higher priority. |
+| database | String | No | - | Use this `database` and `table` to auto-generate SQL and write upstream input data to the database. This option is only used to auto-generate SQL when `generate_sink_sql = true`; when `query` is set, `query` takes precedence. |
+| table | String | No | - | Use database and this table name to auto-generate SQL and write upstream input data to the database. This option is only used to auto-generate SQL when `generate_sink_sql = true`; when `query` is set, `query` takes precedence. |
| primary_keys | Array | No | - | This option is used to support operations such as `insert`, `delete`, and `update` when automatically generating SQL. |
| connection_check_timeout_sec | Int | No | 30 | The time in seconds to wait for the database operation used to validate the connection to complete. |
| max_retries | Int | No | 0 | The number of retries to submit a failed `executeBatch` call. |
@@ -87,7 +87,7 @@ works against a local database file path (`jdbc:duckdb:/path/to/database.db`) or
| field_ide | String | No | - | Identify whether the field needs to be converted when synchronizing from the source to the sink. `ORIGINAL` indicates no conversion is needed; `UPPERCASE` indicates conversion to uppercase; `LOWERCASE` indicates conversion to lowercase. |
| properties | Map | No | - | Additional connection configuration parameters. When properties and URL have the same parameters, the priority is determined by the specific driver implementation. For DuckDB, properties take precedence over the URL. |
| common-options | | No | - | Sink plugin common parameters, please refer to [Sink Common Options](../common-options/sink-common-options.md) for details. |
-| schema_save_mode | Enum | No | CREATE_SCHEMA_WHEN_NOT_EXIST | How to handle the existing table schema on the target side before the sync task starts. Supported values: `RECREATE_SCHEMA`, `CREATE_SCHEMA_WHEN_NOT_EXIST`, `ERROR_WHEN_SCHEMA_NOT_EXIST`. |
+| schema_save_mode | Enum | No | CREATE_SCHEMA_WHEN_NOT_EXIST | How to handle the existing table schema on the target side before the sync task starts. Supported values: `RECREATE_SCHEMA`, `CREATE_SCHEMA_WHEN_NOT_EXIST`, `ERROR_WHEN_SCHEMA_NOT_EXIST`, `IGNORE`. |
| data_save_mode | Enum | No | APPEND_DATA | How to handle existing data on the target side before the sync task starts. Supported values: `DROP_DATA`, `APPEND_DATA`, `CUSTOM_PROCESSING`, `ERROR_WHEN_DATA_EXISTS`. |
| custom_sql | String | No | - | When `data_save_mode = CUSTOM_PROCESSING`, fill in the CUSTOM_SQL parameter. This is a SQL statement that runs before the synchronization task. |
| enable_upsert | Boolean | No | true | Enable upsert by `primary_keys`. If the task only has `insert`, setting this parameter to `false` can speed up data import. |
diff --git a/docs/en/connectors/sink/Hbase.md b/docs/en/connectors/sink/Hbase.md
index 3c0ed011ba..039f3d759a 100644
--- a/docs/en/connectors/sink/Hbase.md
+++ b/docs/en/connectors/sink/Hbase.md
@@ -39,6 +39,7 @@ how null values, row keys, WAL, timestamps, and existing data are handled.
| schema_save_mode | enum | no | CREATE_SCHEMA_WHEN_NOT_EXIST | How to handle the target table before writing. |
| data_save_mode | enum | no | APPEND_DATA | How to handle existing data before writing. |
| hbase_extra_config | config | no | - | Extra HBase or Hadoop client configuration. |
+| ttl | long | no | -1 | Expiration time in milliseconds for written HBase cells; `-1` means cells never expire. |
| multi_table_sink_replica | int | no | 1 | Number of sink writer replicas for each table in a multi-table job. |
| common-options | | no | - | Sink plugin common parameters, such as `plugin_input`. |
diff --git a/docs/en/connectors/sink/Hudi.md b/docs/en/connectors/sink/Hudi.md
index 617533c4be..546793e498 100644
--- a/docs/en/connectors/sink/Hudi.md
+++ b/docs/en/connectors/sink/Hudi.md
@@ -32,6 +32,7 @@ Base configuration:
| table_list | Array | no | - | Per-table settings for multi-table jobs. |
| schema_save_mode | enum | no | CREATE_SCHEMA_WHEN_NOT_EXIST | How to handle the target schema before the job starts. |
| data_save_mode | enum | no | APPEND_DATA | How to handle existing table data before the job starts. |
+| multi_table_sink_replica | int | no | 1 | Replica number for every table writer in multi-table sink mode. |
| common-options | Config | no | - | [Common sink options](../common-options/sink-common-options.md). |
Table list configuration:
diff --git a/docs/en/connectors/sink/HugeGraph.md b/docs/en/connectors/sink/HugeGraph.md
index aa1926825c..beca7414f5 100644
--- a/docs/en/connectors/sink/HugeGraph.md
+++ b/docs/en/connectors/sink/HugeGraph.md
@@ -61,6 +61,7 @@ New `mappings` configurations default to `schema_save_mode = CREATE_SCHEMA_WHEN_
| `schema_save_mode` | Enum | No | `CREATE_SCHEMA_WHEN_NOT_EXIST` for `mappings`; `ERROR_WHEN_SCHEMA_NOT_EXIST` for legacy `schema_config` | Schema management mode. |
| `data_save_mode` | Enum | No | `APPEND_DATA` | How pre-existing data is handled before writing. `APPEND_DATA` keeps existing data. `DROP_DATA` deletes, once at job start, only the data of the labels this job targets (edges then vertices), preserving their schema and any other labels' data; the drop is scoped per label (so one table's drop does not wipe another) and is not re-run on checkpoint restart. |
| `delete_vertex_with_edges` | Boolean | No | `false` for `mappings`; `true` for legacy `schema_config` | When true, DELETE rows for vertices also delete associated edges. |
+| `allow_cascade_delete_unmapped_edges` | Boolean | No | `false` | When `data_save_mode = DROP_DATA`, dropping vertices cascades to their incident edges — including edge labels not listed in this job's `mappings`. Default `false`: the job fails fast and lists the unmapped edge labels. Set to `true` to accept the destructive cascade. |
| `schema_config` | Object | No | - | Deprecated legacy mapping object. Use `mappings` instead. Either `mappings` or `schema_config` must be specified. |
| `selected_fields` | List | No | - | Deprecated. Still honored with legacy `schema_config`; use mapping `properties` for new jobs. |
| `ignored_fields` | List | No | - | Deprecated. Still honored with legacy `schema_config`; use mapping `properties` for new jobs. |
diff --git a/docs/en/connectors/sink/Iceberg.md b/docs/en/connectors/sink/Iceberg.md
index 8c4be05d2e..8c44e6808a 100644
--- a/docs/en/connectors/sink/Iceberg.md
+++ b/docs/en/connectors/sink/Iceberg.md
@@ -81,7 +81,7 @@ libfb303-xxx.jar
| data_save_mode | Enum | no | APPEND_DATA | the data save mode, please refer to `data_save_mode` below |
| custom_sql | string | Required when `data_save_mode` is `CUSTOM_PROCESSING` | - | Custom `delete` SQL for `CUSTOM_PROCESSING` data save mode, for example `delete from ... where ...`. |
| iceberg.table.commit-branch | string | no | - | Default branch for commits |
-| multi_table_sink_replica | int | no | - | Replica number for every table writer in multi-table sink mode. Use this when one upstream job writes to multiple Iceberg tables and each table needs more than one sink writer. |
+| multi_table_sink_replica | int | no | 1 | Replica number for every table writer in multi-table sink mode. Use this when one upstream job writes to multiple Iceberg tables and each table needs more than one sink writer. |
| krb5_path | string | no | /etc/krb5.conf | The path of `krb5.conf`, used for Kerberos authentication. |
| kerberos_principal | string | no | - | The principal for Kerberos authentication. |
| kerberos_keytab_path | string | no | - | The keytab file path for Kerberos authentication. |
diff --git a/docs/en/connectors/sink/Kingbase.md b/docs/en/connectors/sink/Kingbase.md
index 7505637c30..db0376c09c 100644
--- a/docs/en/connectors/sink/Kingbase.md
+++ b/docs/en/connectors/sink/Kingbase.md
@@ -63,8 +63,8 @@ import ChangeLog from '../changelog/connector-jdbc.md';
| username | String | No | - | Connection instance user name. The old key `user` is still accepted as a fallback. |
| password | String | No | - | Connection instance password |
| query | String | No | - | Use this sql write upstream input datas to database. e.g `INSERT ...`,`query` have the higher priority |
-| database | String | No | - | Use this `database` and `table-name` auto-generate sql and receive upstream input datas write to database.<br/>This option is mutually exclusive with `query` and has a higher priority. |
-| table | String | No | - | Use database and this table-name auto-generate sql and receive upstream input datas write to database.<br/>This option is mutually exclusive with `query` and has a higher priority. |
+| database | String | No | - | Use this `database` and `table-name` auto-generate sql and receive upstream input datas write to database.<br/>This option is only used to auto-generate SQL when `generate_sink_sql = true`; when `query` is set, `query` takes precedence. |
+| table | String | No | - | Use database and this table-name auto-generate sql and receive upstream input datas write to database.<br/>This option is only used to auto-generate SQL when `generate_sink_sql = true`; when `query` is set, `query` takes precedence. |
| primary_keys | Array | No | - | This option is used to support operations such as `insert`, `delete`, and `update` when automatically generate sql. |
| connection_check_timeout_sec | Int | No | 30 | The time in seconds to wait for the database operation used to validate the connection to complete. |
| max_retries | Int | No | 0 | The number of retries to submit failed (executeBatch) |
diff --git a/docs/en/connectors/sink/Mysql.md b/docs/en/connectors/sink/Mysql.md
index c58c758dba..ea7832dc92 100644
--- a/docs/en/connectors/sink/Mysql.md
+++ b/docs/en/connectors/sink/Mysql.md
@@ -74,8 +74,8 @@ semantics (using XA transaction guarantee).
| username | String | No | - | Connection instance user name |
| password | String | No | - | Connection instance password |
| query | String | No | - | Use this sql write upstream input datas to database. e.g `INSERT ...`,`query` have the higher priority |
-| database | String | No | - | Use this `database` and `table-name` auto-generate sql and receive upstream input datas write to database.<br/>This option is mutually exclusive with `query` and has a higher priority. |
-| table | String | No | - | Use database and this table-name auto-generate sql and receive upstream input datas write to database.<br/>This option is mutually exclusive with `query` and has a higher priority. |
+| database | String | No | - | Use this `database` and `table-name` auto-generate sql and receive upstream input datas write to database.<br/>This option is only used to auto-generate SQL when `generate_sink_sql = true`; when `query` is set, `query` takes precedence. |
+| table | String | No | - | Use database and this table-name auto-generate sql and receive upstream input datas write to database.<br/>This option is only used to auto-generate SQL when `generate_sink_sql = true`; when `query` is set, `query` takes precedence. |
| primary_keys | Array | No | - | This option is used to support operations such as `insert`, `delete`, and `update` when automatically generate sql. |
| connection_check_timeout_sec | Int | No | 30 | The time in seconds to wait for the database operation used to validate the connection to complete. |
| max_retries | Int | No | 0 | The number of retries to submit failed (executeBatch) |
diff --git a/docs/en/connectors/sink/Oracle.md b/docs/en/connectors/sink/Oracle.md
index 21bade39d6..e99db4a64a 100644
--- a/docs/en/connectors/sink/Oracle.md
+++ b/docs/en/connectors/sink/Oracle.md
@@ -51,7 +51,7 @@ semantics (using XA transaction guarantee).
| Oracle Data Type | SeaTunnel Data Type |
|--------------------------------------------------------------------------------------|---------------------|
-| INTEGER | INT |
+| INTEGER | DECIMAL(38,0) |
| FLOAT | DECIMAL(38, 18) |
| NUMBER(precision <= 9, scale == 0) | INT |
| NUMBER(9 < precision <= 18, scale == 0) | BIGINT |
@@ -60,7 +60,7 @@ semantics (using XA transaction guarantee).
| BINARY_DOUBLE | DOUBLE |
| BINARY_FLOAT<br/>REAL | FLOAT |
| CHAR<br/>NCHAR<br/>NVARCHAR2<br/>VARCHAR2<br/>LONG<br/>ROWID<br/>NCLOB<br/>CLOB<br/> | STRING |
-| DATE | DATE |
+| DATE | TIMESTAMP |
| TIMESTAMP<br/>TIMESTAMP WITH LOCAL TIME ZONE | TIMESTAMP |
| BLOB<br/>RAW<br/>LONG RAW<br/>BFILE | BYTES |
@@ -73,8 +73,8 @@ semantics (using XA transaction guarantee).
| username | String | No | - | Connection instance user name |
| password | String | No | - | Connection instance password |
| query | String | No | - | Use this sql write upstream input datas to database. e.g `INSERT ...`,`query` have the higher priority |
-| database | String | No | - | Use this `database` and `table-name` auto-generate sql and receive upstream input datas write to database.<br/>This option is mutually exclusive with `query` and has a higher priority. |
-| table | String | No | - | Use database and this table-name auto-generate sql and receive upstream input datas write to database.<br/>This option is mutually exclusive with `query` and has a higher priority. |
+| database | String | No | - | Use this `database` and `table-name` auto-generate sql and receive upstream input datas write to database.<br/>This option is only used to auto-generate SQL when `generate_sink_sql = true`; when `query` is set, `query` takes precedence. |
+| table | String | No | - | Use database and this table-name auto-generate sql and receive upstream input datas write to database.<br/>This option is only used to auto-generate SQL when `generate_sink_sql = true`; when `query` is set, `query` takes precedence. |
| primary_keys | Array | No | - | This option is used to support operations such as `insert`, `delete`, and `update` when automatically generate sql. |
| connection_check_timeout_sec | Int | No | 30 | The time in seconds to wait for the database operation used to validate the connection to complete. |
| max_retries | Int | No | 0 | The number of retries to submit failed (executeBatch) |
diff --git a/docs/en/connectors/sink/PostgreSql.md b/docs/en/connectors/sink/PostgreSql.md
index 743563d78c..213289ddf5 100644
--- a/docs/en/connectors/sink/PostgreSql.md
+++ b/docs/en/connectors/sink/PostgreSql.md
@@ -82,8 +82,8 @@ semantics (using XA transaction guarantee).
| username | String | No | - | Connection instance user name [...]
| password | String | No | - | Connection instance password [...]
| query | String | No | - | Use this sql write upstream input datas to database. e.g `INSERT ...`,`query` have the higher priority [...]
-| database | String | No | - | Use this `database` and `table-name` auto-generate sql and receive upstream input datas write to database.<br/>This option is mutually exclusive with `query` and has a higher priority. [...]
-| table | String | No | - | Use database and this table-name auto-generate sql and receive upstream input datas write to database.<br/>This option is mutually exclusive with `query` and has a higher priority.The table parameter can fill in the name of an unwilling table, which will eventually be used as the table name of the creation table, and supports variables (`${table_name}`, `${schema_name}`). Replacement rules: [...]
+| database | String | No | - | Use this `database` and `table-name` auto-generate sql and receive upstream input datas write to database.<br/>This option is only used to auto-generate SQL when `generate_sink_sql = true`; when `query` is set, `query` takes precedence. [...]
+| table | String | No | - | Use database and this table-name auto-generate sql and receive upstream input datas write to database.<br/>This option is only used to auto-generate SQL when `generate_sink_sql = true`; when `query` is set, `query` takes precedence.The table parameter can fill in the name of an unwilling table, which will eventually be used as the table name of the creation table, and supports variables (`${ [...]
| primary_keys | Array | No | - | This option is used to support operations such as `insert`, `delete`, and `update` when automatically generate sql. [...]
| connection_check_timeout_sec | Int | No | 30 | The time in seconds to wait for the database operation used to validate the connection to complete. [...]
| max_retries | Int | No | 0 | The number of retries to submit failed (executeBatch) [...]
@@ -107,7 +107,7 @@ semantics (using XA transaction guarantee).
Use `database` and this `table-name` auto-generate sql and receive upstream input datas write to database.
-This option is mutually exclusive with `query` and has a higher priority.
+This option is only used to auto-generate SQL when `generate_sink_sql = true`; when `query` is set, `query` takes precedence.
The table parameter can fill in the name of an unwilling table, which will eventually be used as the table name of the creation table, and supports variables (`${table_name}`, `${schema_name}`). Replacement rules: `${schema_name}` will replace the SCHEMA name passed to the target side, and `${table_name}` will replace the name of the table passed to the table at the target side.
diff --git a/docs/en/connectors/sink/Qdrant.md b/docs/en/connectors/sink/Qdrant.md
index 0904472a7d..9f4b36d2fa 100644
--- a/docs/en/connectors/sink/Qdrant.md
+++ b/docs/en/connectors/sink/Qdrant.md
@@ -32,6 +32,7 @@ The Qdrant sink writes SeaTunnel rows into one existing Qdrant collection. Norma
| port | int | no | 6334 | Qdrant gRPC port. |
| api_key | string | no | "" | Qdrant API key for authenticated deployments. |
| use_tls | bool | no | false | Whether to use TLS for the gRPC connection. |
+| multi_table_sink_replica | int | no | 1 | Replica number for every table writer in multi-table sink mode. |
| common-options | | no | - | Sink common options. |
### collection_name [string]
diff --git a/docs/en/connectors/sink/Redshift.md b/docs/en/connectors/sink/Redshift.md
index 2be0c43da6..0850b95627 100644
--- a/docs/en/connectors/sink/Redshift.md
+++ b/docs/en/connectors/sink/Redshift.md
@@ -74,8 +74,8 @@ semantics (using XA transaction guarantee).
| username | String | No | - | Connection instance user name |
| password | String | No | - | Connection instance password |
| query | String | No | - | Use this sql write upstream input datas to database. e.g `INSERT ...`,`query` have the higher priority |
-| database | String | No | - | Use this `database` and `table-name` auto-generate sql and receive upstream input datas write to database.<br/>This option is mutually exclusive with `query` and has a higher priority. |
-| table | String | No | - | Use database and this table-name auto-generate sql and receive upstream input datas write to database.<br/>This option is mutually exclusive with `query` and has a higher priority. |
+| database | String | No | - | Use this `database` and `table-name` auto-generate sql and receive upstream input datas write to database.<br/>This option is only used to auto-generate SQL when `generate_sink_sql = true`; when `query` is set, `query` takes precedence. |
+| table | String | No | - | Use database and this table-name auto-generate sql and receive upstream input datas write to database.<br/>This option is only used to auto-generate SQL when `generate_sink_sql = true`; when `query` is set, `query` takes precedence. |
| schema | String | No | - | The schema name of the target table in Redshift. SeaTunnel does not apply a default value for this option. Configure it explicitly when the target table is not already schema-qualified or when using catalog-based operations such as `generate_sink_sql`, `schema_save_mode`, and `data_save_mode`. |
| primary_keys | Array | No | - | This option is used to support operations such as `insert`, `delete`, and `update` when automatically generate sql. |
| connection_check_timeout_sec | Int | No | 30 | The time in seconds to wait for the database operation used to validate the connection to complete. |
diff --git a/docs/en/connectors/sink/S3-Redshift.md b/docs/en/connectors/sink/S3-Redshift.md
index e55ea4f461..841dbba9c1 100644
--- a/docs/en/connectors/sink/S3-Redshift.md
+++ b/docs/en/connectors/sink/S3-Redshift.md
@@ -40,7 +40,7 @@ By default, we use 2PC commit to ensure `exactly-once`
| access_secret | string | no | - | The access secret of the S3 file system. If not set, the Hadoop credential provider chain must be configured correctly. See [hadoop-aws](https://hadoop.apache.org/docs/stable/hadoop-aws/tools/hadoop-aws/index.html). |
| hadoop_s3_properties | map | no | - | Additional Hadoop S3A/Hadoop-AWS options. Use this to set things like `fs.s3a.aws.credentials.provider`. See [Hadoop-AWS](https://hadoop.apache.org/docs/stable/hadoop-aws/tools/hadoop-aws/index.html). |
| file_name_expression | string | no | "${transactionId}" | File name expression appended under `path`. Use `${now}` or `${uuid}` to inject timestamp or UUID. When `is_enable_transaction = true`, `${transactionId}_` is automatically prepended. |
-| file_format_type | string | no | "text" | File format written to S3. Supported values: `text`, `csv`, `parquet`, `orc`, `json`. The final file name ends with the corresponding suffix (e.g. `txt` for text). |
+| file_format_type | string | no | csv | File format written to S3. Supported values: `text`, `csv`, `parquet`, `orc`, `json`. The final file name ends with the corresponding suffix (e.g. `txt` for text). |
| filename_time_format | string | no | "yyyy.MM.dd" | Time format used to resolve `${now}` inside `file_name_expression`. See [Java SimpleDateFormat](https://docs.oracle.com/javase/tutorial/i18n/format/simpleDateFormat.html) for the full syntax. |
| field_delimiter | string | no | '\001' | Column delimiter used in `text` and `csv` files. |
| row_delimiter | string | no | "\n" | Row delimiter used in `text` and `csv` files. |
diff --git a/docs/en/connectors/sink/SqlServer.md b/docs/en/connectors/sink/SqlServer.md
index 7caa49168d..acc20231e4 100644
--- a/docs/en/connectors/sink/SqlServer.md
+++ b/docs/en/connectors/sink/SqlServer.md
@@ -76,8 +76,8 @@ semantics (using XA transaction guarantee).
| username | String | No | - | Connection instance user name |
| password | String | No | - | Connection instance password |
| query | String | No | - | Use this sql write upstream input datas to database. e.g `INSERT ...`,`query` have the higher priority |
-| database | String | No | - | Use this `database` and `table-name` auto-generate sql and receive upstream input datas write to database.<br/>This option is mutually exclusive with `query` and has a higher priority. |
-| table | String | No | - | Use database and this table-name auto-generate sql and receive upstream input datas write to database.<br/>This option is mutually exclusive with `query` and has a higher priority. |
+| database | String | No | - | Use this `database` and `table-name` auto-generate sql and receive upstream input datas write to database.<br/>This option is only used to auto-generate SQL when `generate_sink_sql = true`; when `query` is set, `query` takes precedence. |
+| table | String | No | - | Use database and this table-name auto-generate sql and receive upstream input datas write to database.<br/>This option is only used to auto-generate SQL when `generate_sink_sql = true`; when `query` is set, `query` takes precedence. |
| primary_keys | Array | No | - | This option is used to support operations such as `insert`, `delete`, and `update` when automatically generate sql. |
| connection_check_timeout_sec | Int | No | 30 | The time in seconds to wait for the database operation used to validate the connection to complete. |
| max_retries | Int | No | 0 | The number of retries to submit failed (executeBatch) |
diff --git a/docs/en/connectors/sink/StarRocks.md b/docs/en/connectors/sink/StarRocks.md
index 6d6809d55a..1467424fd8 100644
--- a/docs/en/connectors/sink/StarRocks.md
+++ b/docs/en/connectors/sink/StarRocks.md
@@ -108,9 +108,9 @@ You can use the following placeholders
### table [string]
-Use `database` and this `table-name` auto-generate sql and receive upstream input datas write to database.
+Together with `database`, this option identifies the target StarRocks table that receives the upstream data.
-This option is mutually exclusive with `query` and has a higher priority.
+If `table` is not set, the upstream table name is used.
The table parameter can fill in the name of an unwilling table, which will eventually be used as the table name of the creation table, and supports variables (`${table_name}`, `${schema_name}`). Replacement rules: `${schema_name}` will replace the SCHEMA name passed to the target side, and `${table_name}` will replace the name of the table passed to the table at the target side.
diff --git a/docs/en/connectors/sink/Vertica.md b/docs/en/connectors/sink/Vertica.md
index d5dee19e57..373130e33f 100644
--- a/docs/en/connectors/sink/Vertica.md
+++ b/docs/en/connectors/sink/Vertica.md
@@ -48,7 +48,7 @@ semantics (using XA transaction guarantee).
| Vertica Data Type | SeaTunnel Data Type |
|-----------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|
-| BIT(1)<br/>INT UNSIGNED | BOOLEAN |
+| BIT | BOOLEAN |
| TINYINT<br/>TINYINT UNSIGNED<br/>SMALLINT<br/>SMALLINT UNSIGNED<br/>MEDIUMINT<br/>MEDIUMINT UNSIGNED<br/>INT<br/>INTEGER<br/>YEAR | INT |
| INT UNSIGNED<br/>INTEGER UNSIGNED<br/>BIGINT | BIGINT |
| BIGINT UNSIGNED | DECIMAL(20,0) |
@@ -61,7 +61,7 @@ semantics (using XA transaction guarantee).
| DATE | DATE |
| TIME | TIME |
| DATETIME<br/>TIMESTAMP | TIMESTAMP |
-| TINYBLOB<br/>MEDIUMBLOB<br/>BLOB<br/>LONGBLOB<br/>BINARY<br/>VARBINAR<br/>BIT(n) | BYTES |
+| TINYBLOB<br/>MEDIUMBLOB<br/>BLOB<br/>LONGBLOB<br/>BINARY<br/>VARBINARY | BYTES |
| GEOMETRY<br/>UNKNOWN | Not supported yet |
## Sink Options
@@ -73,8 +73,8 @@ semantics (using XA transaction guarantee).
| username | String | No | - | Connection instance user name |
| password | String | No | - | Connection instance password |
| query | String | No | - | Use this sql write upstream input datas to database. e.g `INSERT ...`,`query` have the higher priority |
-| database | String | No | - | Use this `database` and `table-name` auto-generate sql and receive upstream input datas write to database.<br/>This option is mutually exclusive with `query` and has a higher priority. |
-| table | String | No | - | Use database and this table-name auto-generate sql and receive upstream input datas write to database.<br/>This option is mutually exclusive with `query` and has a higher priority. |
+| database | String | No | - | Use this `database` and `table-name` auto-generate sql and receive upstream input datas write to database.<br/>This option is only used to auto-generate SQL when `generate_sink_sql = true`; when `query` is set, `query` takes precedence. |
+| table | String | No | - | Use database and this table-name auto-generate sql and receive upstream input datas write to database.<br/>This option is only used to auto-generate SQL when `generate_sink_sql = true`; when `query` is set, `query` takes precedence. |
| primary_keys | Array | No | - | This option is used to support operations such as `insert`, `delete`, and `update` when automatically generate sql. |
| connection_check_timeout_sec | Int | No | 30 | The time in seconds to wait for the database operation used to validate the connection to complete. |
| max_retries | Int | No | 0 | The number of retries to submit failed (executeBatch) |
diff --git a/docs/en/connectors/sink/Zendesk.md b/docs/en/connectors/sink/Zendesk.md
index e44fe11434..645add6afc 100644
--- a/docs/en/connectors/sink/Zendesk.md
+++ b/docs/en/connectors/sink/Zendesk.md
@@ -37,6 +37,7 @@ URL (e.g., `{"ticket": {...}}` for the tickets endpoint).
| rate_limit_backoff_ms | int | No | 30000 | Base backoff time in milliseconds when receiving a 429 (rate limit) response. Default 30000ms. Must be `>= 0`. |
| resource_key | String | No | - | The JSON wrapping key for the Zendesk API request body (e.g. `"ticket"`, `"user"`, `"organization"`). When set, this value is used directly instead of inferring the key from the URL path. Useful for endpoints whose plural form is not handled by the automatic inference. |
| rate_limit_max_retries | int | No | 3 | Maximum number of retries after receiving a 429 response. Default 3. Must be `>= 0`. |
+| multi_table_sink_replica | int | No | 1 | Replica number for every table writer in multi-table sink mode. |
| common-options | | No | - | Sink common options. See [Sink Common Options](../common-options/sink-common-options.md). |
## Usage Notes
diff --git a/docs/en/connectors/source/DB2-CDC.md b/docs/en/connectors/source/DB2-CDC.md
index 0210bbc64d..a4b0b0a07d 100644
--- a/docs/en/connectors/source/DB2-CDC.md
+++ b/docs/en/connectors/source/DB2-CDC.md
@@ -79,8 +79,9 @@ UPDATE and DELETE changes after the initial snapshot is finished.
| incremental.parallelism | Integer | No | 1 | The number of parallel readers in the incremental phase. |
| snapshot.split.size | Integer | No | 8096 | The split size of table snapshot. |
| snapshot.fetch.size | Integer | No | 1024 | The maximum fetch size for each poll when reading table snapshot. |
-| server-time-zone | String | No | UTC | The session time zone in database server. |
-| connect.timeout.ms | Duration | No | 30s | The maximum time that the connector should wait after trying to connect to the database server before timing out. |
+| enable_concurrent_read | Boolean | No | true | Whether to enable concurrent read with split during the snapshot phase. When set to false, the source reads the table as a single split without any split analysis, which is useful for tables without indexes. |
+| server-time-zone | String | No | - | The session time zone in database server. |
+| connect.timeout.ms | Long | No | 30000 | The maximum time that the connector should wait after trying to connect to the database server before timing out. |
| connect.max-retries | Integer | No | 3 | The maximum retry times to build database server connection. |
| connection.pool.size | Integer | No | 20 | The connection pool size. |
| chunk-key.even-distribution.factor.upper-bound | Double | No | 100 | The upper bound used to decide whether a split key is evenly distributed. |
diff --git a/docs/en/connectors/source/DB2.md b/docs/en/connectors/source/DB2.md
index 7e84a923bb..57576cd335 100644
--- a/docs/en/connectors/source/DB2.md
+++ b/docs/en/connectors/source/DB2.md
@@ -57,12 +57,12 @@ Read data from DB2 through JDBC. DB2 requires the IBM `db2jcc` driver; SeaTunnel
| DECIMAL<br/>DEC<br/>NUMERIC<br/>NUM | DECIMAL(38,18) |
| REAL | FLOAT |
| FLOAT<br/>DOUBLE<br/>DOUBLE PRECISION<br/>DECFLOAT | DOUBLE |
-| CHAR<br/>VARCHAR<br/>LONG VARCHAR<br/>CLOB<br/>GRAPHIC<br/>VARGRAPHIC<br/>LONG VARGRAPHIC<br/>DBCLOB | STRING |
-| BLOB | BYTES |
+| CHAR<br/>VARCHAR<br/>LONG VARCHAR<br/>CLOB<br/>GRAPHIC<br/>VARGRAPHIC<br/>LONG VARGRAPHIC<br/>DBCLOB<br/>XML | STRING |
+| BLOB<br/>BINARY<br/>VARBINARY | BYTES |
| DATE | DATE |
| TIME | TIME |
| TIMESTAMP | TIMESTAMP |
-| ROWID<br/>XML | Not supported yet |
+| ROWID | Not supported yet |
## Source Options
diff --git a/docs/en/connectors/source/Databend.md b/docs/en/connectors/source/Databend.md
index 501ac0b01c..ef992a01ad 100644
--- a/docs/en/connectors/source/Databend.md
+++ b/docs/en/connectors/source/Databend.md
@@ -78,7 +78,7 @@ Basic Configuration:
| url | String | Yes | - | Databend JDBC connection URL. It must start with `jdbc:databend://` |
| username | String | Yes | - | Databend database username |
| password | String | Yes | - | Databend database password |
-| database | String | No | - | Databend database name, defaults to the database name specified in the connection URL |
+| database | String | No | `default` | Databend database name. If not set, the source falls back to the `default` database |
| table | String | No | - | Databend table name |
| query | String | No | - | Databend query statement. If set, it overrides database and table settings |
| sql | String | No | - | Alias-style custom SQL statement. If both `sql` and `query` are set, `sql` takes precedence |
diff --git a/docs/en/connectors/source/DuckDB.md b/docs/en/connectors/source/DuckDB.md
index 3c0d538bee..0d80cc2a8f 100644
--- a/docs/en/connectors/source/DuckDB.md
+++ b/docs/en/connectors/source/DuckDB.md
@@ -80,9 +80,9 @@ and reading multiple tables in one job through `table_list`.
| query | String | Yes | - | Query statement |
| 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 primary key, and only can config one column. |
-| partition_lower_bound | BigDecimal | No | - | The partition_column min value for scan, if not set SeaTunnel will query database get min value. |
-| partition_upper_bound | BigDecimal | No | - | The partition_column max value for scan, if not set SeaTunnel will query database get max value. |
-| partition_num | Int | No | job parallelism | The number of partition count, only support positive integer. default value is job parallelism |
+| 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. default value is 10 |
| fetch_size | Int | No | 0 | For queries that return a large number of objects, you can configure<br/> the row fetch size used in the query to improve performance by<br/> reducing the number database hits required to satisfy the selection criteria.<br/> Zero means use jdbc default value. |
| 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 DuckDB, properties take precedence over the URL. |
| table_path | String | No | - | The path to the full path of table, you can use this configuration instead of `query`. <br/>examples: <br/>duckdb: "main.table1" <br/> |
@@ -115,11 +115,11 @@ How many rows in one split, captured tables are split into multiple splits when
The column name for split data.
-#### partition_upper_bound [BigDecimal]
+#### partition_upper_bound [string]
The partition_column max value for scan, if not set SeaTunnel will query database get max value.
-#### partition_lower_bound [BigDecimal]
+#### partition_lower_bound [string]
The partition_column min value for scan, if not set SeaTunnel will query database get min value.
@@ -127,7 +127,7 @@ The partition_column min value for scan, if not set SeaTunnel will query databas
> Not recommended for use, The correct approach is to control the number of split through `split.size`
-How many splits do we need to split into, only support positive integer. default value is job parallelism.
+How many splits do we need to split into, only support positive integer. default value is 10.
## Tips
diff --git a/docs/en/connectors/source/HiveJdbc.md b/docs/en/connectors/source/HiveJdbc.md
index 2d4c3dd5f3..650747f889 100644
--- a/docs/en/connectors/source/HiveJdbc.md
+++ b/docs/en/connectors/source/HiveJdbc.md
@@ -53,7 +53,8 @@ authentication is supported.
| Hive Data Type | SeaTunnel Data Type |
|-------------------------------------------------------------------------------------------|---------------------|
| BOOLEAN | BOOLEAN |
-| TINYINT<br/> SMALLINT | SHORT |
+| TINYINT | BYTE |
+| SMALLINT | SHORT |
| INT<br/>INTEGER | INT |
| BIGINT | LONG |
| FLOAT | FLOAT |
@@ -80,7 +81,7 @@ authentication is supported.
| partition_column | String | No | - | The column name for parallelism partition. Only supports numeric primary key columns. |
| partition_lower_bound | BigDecimal | No | - | The `partition_column` minimum value for the scan. If not set, SeaTunnel queries the database for the minimum value. |
| partition_upper_bound | BigDecimal | No | - | The `partition_column` maximum value for the scan. If not set, SeaTunnel queries the database for the maximum value. |
-| partition_num | Int | No | job parallelism | Number of partitions. Only positive integers are supported. Default value is the job parallelism. |
+| partition_num | Int | No | 10 | Number of partitions. Only positive integers are supported. Default value is 10. |
| fetch_size | Int | No | 0 | For queries that return a large number of rows, configure the row fetch size used in the query to improve performance by reducing the number of database hits required to satisfy the selection criteria. `0` means use the JDBC driver default. |
| common-options | | No | - | Source plugin common parameters, please refer to [Source Common Options](../common-options/source-common-options.md) for details. |
| use_kerberos | Boolean | No | false | Whether to enable Kerberos authentication. |
diff --git a/docs/en/connectors/source/Kafka.md b/docs/en/connectors/source/Kafka.md
index 4cfb662557..99ddb78fdd 100644
--- a/docs/en/connectors/source/Kafka.md
+++ b/docs/en/connectors/source/Kafka.md
@@ -69,6 +69,7 @@ They can be downloaded via install-plugin.sh or from the Maven central repositor
| schema | Config | No | - | The structure of the data, including field names and field types. For more details, please refer to [Schema Feature](../../introduction/concepts/schema-feature.md). [...]
| format | String | No | json | Data format. The default format is json. Optional text format, canal_json, debezium_json, maxwell_json, ogg_json, avro , protobuf and native. If you use json or text format. The default field separator is ", ". If you customize the delimiter, add the "field_delimiter" option.If you use canal format, please refer to [canal-json](../form [...]
| avro_schema | String | No | - | Effective when `format` is `avro`. Provides the writer Avro schema used to deserialize binary Avro messages whose record name, namespace, or union layout differs from the SeaTunnel schema. [...]
+| value_converter_schema_enabled | Boolean | No | true | Effective only when `format = compatible_kafka_connect_json`. Whether the Kafka Connect value converter carries its schema in the JSON payload. [...]
| format_error_handle_way | String | No | fail | The processing method of data format error. The default value is fail, and the optional value is (fail, skip). When fail is selected, data format error will block and an exception will be thrown. When skip is selected, data format error will skip this line data. [...]
| debezium_record_include_schema | Boolean | No | true | Effective when `format` is `debezium_json`. Set whether Debezium records include schema information. [...]
| debezium_record_table_filter | Config | No | - | Used for filtering data in debezium format, only when the format is set to `debezium_json`. Please refer `debezium_record_table_filter` below [...]
@@ -590,7 +591,6 @@ source {
start_mode = "earliest"
format_error_handle_way = skip
format = "NATIVE"
- value_converter_schema_enabled = false
consumer.group = "native_group"
}
}
@@ -729,7 +729,7 @@ Note: the `key` field in NATIVE format is base64-encoded bytes.
### What message formats does Kafka Source support?
-Kafka Source supports: `json`, `text`, `canal_json`, `debezium_json`, `ogg_json`, `avro`, `protobuf`, and `NATIVE`. Use `NATIVE` when you need access to Kafka-level metadata (headers, key, partition, timestamp) as part of the record.
+Kafka Source supports: `json`, `text`, `canal_json`, `debezium_json`, `maxwell_json`, `ogg_json`, `avro`, `protobuf`, `compatible_kafka_connect_json`, and `NATIVE`. Use `NATIVE` when you need access to Kafka-level metadata (headers, key, partition, timestamp) as part of the record.
`format = avro` expects raw Avro-encoded messages by default. For messages produced by a Confluent `KafkaAvroSerializer`, set `strip_schema_registry_header = true` and provide `avro_schema`. SeaTunnel detects the header by its leading magic byte and strips the fixed five-byte wire header (magic byte `0` plus four-byte schema ID) before decoding, without contacting Schema Registry. The option is opt-in, so raw Avro behavior is unchanged when it is `false`.
diff --git a/docs/en/connectors/source/Kingbase.md b/docs/en/connectors/source/Kingbase.md
index d15f73ddcb..ae7eec540f 100644
--- a/docs/en/connectors/source/Kingbase.md
+++ b/docs/en/connectors/source/Kingbase.md
@@ -68,7 +68,7 @@ Read external data source data through JDBC.
| partition_column | String | No | - | The column name for parallelism's partition, only support numeric type column and string type column. |
| partition_lower_bound | BigDecimal | No | - | The partition_column min value for scan, if not set SeaTunnel will query database get min value. |
| partition_upper_bound | BigDecimal | No | - | The partition_column max value for scan, if not set SeaTunnel will query database get max value. |
-| partition_num | Int | No | job parallelism | The number of partition count, only support positive integer. Default value is job parallelism. |
+| partition_num | Int | No | 10 | The number of partition count, only support positive integer. Default value is 10. |
| fetch_size | Int | No | 0 | For queries that return a large number of objects, you can configure <br/> the row fetch size used in the query to improve performance by <br/> reducing the number database hits required to satisfy the selection criteria.<br/> Zero means use jdbc default value. |
| use_regex | Boolean | No | false | Control regular expression matching for table_path. When set to `true`, the table_path will be treated as a regular expression pattern. When set to `false` or not specified, the table_path will be treated as an exact path (no regex matching). |
| table_path | String | No | - | The path to the full path of table, you can use this configuration instead of `query`. <br/>example: <br/>"test_schema.table1" [...]
diff --git a/docs/en/connectors/source/MySQL-CDC.md b/docs/en/connectors/source/MySQL-CDC.md
index c518937e83..58975f62b5 100644
--- a/docs/en/connectors/source/MySQL-CDC.md
+++ b/docs/en/connectors/source/MySQL-CDC.md
@@ -205,9 +205,10 @@ When an initial consistent snapshot is made for large databases, your establishe
| stop.specific-offset.pos | Long | No | - | Stop from the specified binlog file position. **Note, This option is required when the `stop.mode` option used `specific`.** [...]
| snapshot.split.size | Integer | No | 8096 | The split size (number of rows) of table snapshot, captured tables are split into multiple splits when read the snapshot of table. [...]
| snapshot.fetch.size | Integer | No | 1024 | The maximum fetch size for per poll when read table snapshot. [...]
+| incremental.parallelism | Integer | No | 1 | The number of parallel readers in the incremental (binlog) phase. [...]
| server-id | String | No | - | Numeric ID or numeric ID range used by this CDC reader, for example `5400` or `5400-5408`. Each ID must be unique in the MySQL cluster. When the job has multiple readers or reads multiple tables in parallel, configure an ID range large enough for the job. If this option is omitted, SeaTunnel generates a random ID, but an explicit value is recommended for production. [...]
-| server-time-zone | String | No | UTC | The session time zone in database server. If not set, then ZoneId.systemDefault() is used to determine the server time zone. [...]
-| connect.timeout.ms | Duration | No | 30000 | The maximum time that the connector should wait after trying to connect to the database server before timing out. [...]
+| server-time-zone | String | No | - | The session time zone in database server. If not set, then ZoneId.systemDefault() is used to determine the server time zone. [...]
+| connect.timeout.ms | Long | No | 30000 | The maximum time that the connector should wait after trying to connect to the database server before timing out. [...]
| connect.max-retries | Integer | No | 3 | The max retry times that the connector should retry to build database server connection. [...]
| connection.pool.size | Integer | No | 20 | The jdbc connection pool size. [...]
| chunk-key.even-distribution.factor.upper-bound | Double | No | 100 | The upper bound of the chunk key distribution factor. This factor is used to determine whether the table data is evenly distributed. If the distribution factor is calculated to be less than or equal to this upper bound (i.e., (MAX(id) - MIN(id) + 1) / row count), the table chunks would be optimized for even distribution. Otherwise, if the distribution factor is greater, the table will be considered as unev [...]
diff --git a/docs/en/connectors/source/Opengauss-CDC.md b/docs/en/connectors/source/Opengauss-CDC.md
index 5381900c76..c6fb489b08 100644
--- a/docs/en/connectors/source/Opengauss-CDC.md
+++ b/docs/en/connectors/source/Opengauss-CDC.md
@@ -83,10 +83,12 @@ select 'ALTER TABLE ' || schemaname || '.' || tablename || ' REPLICA IDENTITY FU
| stop.mode | Enum | No | NEVER | Optional stop mode for Opengauss CDC consumer. The only valid enumeration is `never`: the source keeps streaming WAL changes and never stops on its own once it reaches the incremental phase. [...]
| snapshot.split.size | Integer | No | 8096 | The split size (number of rows) of table snapshot, captured tables are split into multiple splits when read the snapshot of table. [...]
| snapshot.fetch.size | Integer | No | 1024 | The maximum fetch size for per poll when read table snapshot. [...]
+| incremental.parallelism | Integer | No | 1 | The number of parallel readers in the incremental phase. [...]
+| enable_concurrent_read | Boolean | No | true | Whether to enable concurrent read with split during the snapshot phase. When set to false, the source reads the table as a single split without any split analysis, which is useful for tables without indexes. [...]
| slot.name | String | No | seatunnel | The Opengauss logical decoding slot name. Use a different slot name for each CDC job that reads from the same Opengauss instance. [...]
| decoding.plugin.name | String | No | pgoutput | The name of the Postgres logical decoding plug-in installed on the server,Supported values are decoderbufs, wal2json, wal2json_rds, wal2json_streaming,wal2json_rds_streaming and pgoutput. [...]
-| server-time-zone | String | No | UTC | The session time zone in database server. If not set, then ZoneId.systemDefault() is used to determine the server time zone. [...]
-| connect.timeout.ms | Duration | No | 30000 | The maximum time that the connector should wait after trying to connect to the database server before timing out. [...]
+| server-time-zone | String | No | - | The session time zone in database server. If not set, then ZoneId.systemDefault() is used to determine the server time zone. [...]
+| connect.timeout.ms | Long | No | 30000 | The maximum time that the connector should wait after trying to connect to the database server before timing out. [...]
| connect.max-retries | Integer | No | 3 | The max retry times that the connector should retry to build database server connection. [...]
| connection.pool.size | Integer | No | 20 | The jdbc connection pool size. [...]
| chunk-key.even-distribution.factor.upper-bound | Double | No | 100 | The upper bound of the chunk key distribution factor. This factor is used to determine whether the table data is evenly distributed. If the distribution factor is calculated to be less than or equal to this upper bound (i.e., (MAX(id) - MIN(id) + 1) / row count), the table chunks would be optimized for even distribution. Otherwise, if the distribution factor is greater, the table will be considered as une [...]
diff --git a/docs/en/connectors/source/Oracle-CDC.md b/docs/en/connectors/source/Oracle-CDC.md
index 941f247a95..7cbe579abc 100644
--- a/docs/en/connectors/source/Oracle-CDC.md
+++ b/docs/en/connectors/source/Oracle-CDC.md
@@ -238,8 +238,8 @@ exit;
| stop.mode | Enum | No | NEVER | Optional stop mode for Oracle CDC consumer. The only valid value is `never`, so a streaming Oracle CDC source keeps running until the job is stopped. [...]
| snapshot.split.size | Integer | No | 8096 | The split size (number of rows) of table snapshot, captured tables are split into multiple splits when read the snapshot of table. [...]
| snapshot.fetch.size | Integer | No | 1024 | The maximum fetch size for per poll when read table snapshot. [...]
-| server-time-zone | String | No | UTC | The session time zone in database server. If not set, then ZoneId.systemDefault() is used to determine the server time zone. This value is also used when converting `startup.timestamp` to SCN. Set it explicitly when database time zone and JVM time zone are different. [...]
-| connect.timeout.ms | Duration | No | 30000 | The maximum time that the connector should wait after trying to connect to the database server before timing out. [...]
+| server-time-zone | String | No | - | The session time zone in database server. If not set, then ZoneId.systemDefault() is used to determine the server time zone. This value is also used when converting `startup.timestamp` to SCN. Set it explicitly when database time zone and JVM time zone are different. [...]
+| connect.timeout.ms | Long | No | 30000 | The maximum time that the connector should wait after trying to connect to the database server before timing out. [...]
| connect.max-retries | Integer | No | 3 | The max retry times that the connector should retry to build database server connection. [...]
| connection.pool.size | Integer | No | 20 | The jdbc connection pool size. [...]
| incremental.parallelism | Integer | No | 1 | Number of parallel readers used after the snapshot phase enters incremental log reading. [...]
@@ -258,30 +258,6 @@ exit;
| schema-changes.exclude | List | No | - | Schema change event types listed here are NOT sent downstream. Applied after `schema-changes.include`; exclude wins on conflict. See [Schema change event filtering](#schema-change-event-filtering). [...]
| debezium | Config | No | - | Pass-through [Debezium's properties](https://github.com/debezium/debezium/blob/v1.9.8.Final/documentation/modules/ROOT/pages/connectors/oracle.adoc#connector-properties) to Debezium Embedded Engine which is used to capture data changes from Oracle server. [...]
| common-options | | no | - | Source plugin common parameters, please refer to [Source Common Options](../common-options/source-common-options.md) for details [...]
-| decimal_type_narrowing | Boolean | No | true | Decimal type narrowing, if true, the decimal type will be narrowed to the int or long type if without loss of precision. Only support for Oracle at now. Please refer to `decimal_type_narrowing` below [...]
-
-
-### decimal_type_narrowing
-
-Decimal type narrowing, if true, the decimal type will be narrowed to the int or long type if without loss of precision. Only support for Oracle at now.
-
-eg:
-
-decimal_type_narrowing = true
-
-| Oracle | SeaTunnel |
-|---------------|-----------|
-| NUMBER(1, 0) | Boolean |
-| NUMBER(6, 0) | INT |
-| NUMBER(10, 0) | BIGINT |
-
-decimal_type_narrowing = false
-
-| Oracle | SeaTunnel |
-|---------------|----------------|
-| NUMBER(1, 0) | Decimal(1, 0) |
-| NUMBER(6, 0) | Decimal(6, 0) |
-| NUMBER(10, 0) | Decimal(10, 0) |
## Task Example
diff --git a/docs/en/connectors/source/Oracle.md b/docs/en/connectors/source/Oracle.md
index 4b20cc45ba..2d92bd5dcc 100644
--- a/docs/en/connectors/source/Oracle.md
+++ b/docs/en/connectors/source/Oracle.md
@@ -74,7 +74,7 @@ Read external data source data through JDBC.
| partition_column | String | No | - | The column name for parallelism's partition, only support numeric type,Only support numeric type primary key, and only can config one column. |
| partition_lower_bound | BigDecimal | No | - | The partition_column min value for scan, if not set SeaTunnel will query database get min value. |
| partition_upper_bound | BigDecimal | No | - | The partition_column max value for scan, if not set SeaTunnel will query database get max value. |
-| partition_num | Int | No | job parallelism | The number of partition count, only support positive integer. default value is job parallelism |
+| partition_num | Int | No | 10 | The number of partition count, only support positive integer. default value is 10 |
| fetch_size | Int | No | 0 | For queries that return a large number of objects,you can configure<br/> the row fetch size used in the query toimprove performance by<br/> reducing the number database hits required to satisfy the selection criteria.<br/> Zero means use jdbc default value. |
| 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 Oracle, properties take precedence over the URL. |
| use_regex | Boolean | No | false | Control regular expression matching for table_path. When set to `true`, the table_path will be treated as a regular expression pattern. When set to `false` or not specified, the table_path will be treated as an exact path (no regex matching). |
@@ -170,7 +170,7 @@ The partition_column min value for scan, if not set SeaTunnel will query databas
> Not recommended for use, The correct approach is to control the number of split through `split.size`
-How many splits do we need to split into, only support positive integer. default value is job parallelism.
+How many splits do we need to split into, only support positive integer. default value is 10.
## tips
diff --git a/docs/en/connectors/source/Snowflake.md b/docs/en/connectors/source/Snowflake.md
index de3c804f3d..b9b12d2ba5 100644
--- a/docs/en/connectors/source/Snowflake.md
+++ b/docs/en/connectors/source/Snowflake.md
@@ -76,7 +76,7 @@ Read data from Snowflake through JDBC. SeaTunnel uses the official Snowflake JDB
### Tips
-> If `partition_column` is not set, the source reads with one split. If it is set, SeaTunnel reads data in parallel according to `partition_num` (default 10) or the job's parallelism, whichever is greater.
+> If `partition_column` is not set, the source reads with one split. If it is set, SeaTunnel creates `partition_num` splits (default 10) and distributes them across readers; set `partition_num` no smaller than the job parallelism if you want one split per reader.
>
> Snowflake JDBC URL parameters such as `GEOGRAPHY_OUTPUT_FORMAT` can be appended with `?` (e.g. `?GEOGRAPHY_OUTPUT_FORMAT='EWKT'`). See the Snowflake [Geospatial Data Types](https://docs.snowflake.com/en/sql-reference/data-types-geospatial) reference for the full list.
diff --git a/docs/zh/connectors/sink/BigQuery.md b/docs/zh/connectors/sink/BigQuery.md
index 4f08253e53..0d1c14cdae 100644
--- a/docs/zh/connectors/sink/BigQuery.md
+++ b/docs/zh/connectors/sink/BigQuery.md
@@ -48,7 +48,7 @@ import ChangeLog from '../changelog/connector-bigquery.md';
| schema_save_mode | enum | 否 | CREATE_SCHEMA_WHEN_NOT_EXIST | Schema 保存模式。详见下文。 |
| data_save_mode | enum | 否 | APPEND_DATA | Data 保存模式。详见下文。 |
| custom_sql | string | 否 | - | 当 `data_save_mode` 选择 `CUSTOM_PROCESSING` 时,需要填写的自定义 SQL 语句。 |
-| multi_table_sink_replica | int | 否 | - | Sink 通用参数,用于控制多表运行时每张表的 sink 副本数。 |
+| multi_table_sink_replica | int | 否 | 1 | Sink 通用参数,用于控制多表运行时每张表的 sink 副本数。 |
| common-options | | 否 | - | Sink 通用参数,详见 [Sink Common Options](../common-options/sink-common-options.md)。 |
### 认证参数
diff --git a/docs/zh/connectors/sink/Clickhouse.md b/docs/zh/connectors/sink/Clickhouse.md
index 80a3a9c1bc..a92b131d13 100644
--- a/docs/zh/connectors/sink/Clickhouse.md
+++ b/docs/zh/connectors/sink/Clickhouse.md
@@ -75,6 +75,8 @@ Sink 对这些字段使用显式 UTC 转换,包括更新和删除条件。包
| data_save_mode | Enum | 否 | APPEND_DATA | 数据保存模式,请参考下面的 `data_save_mode`。 |
| custom_sql | String | 否 | - | 当 `data_save_mode = CUSTOM_PROCESSING` 时必填。该 SQL 会在同步任务开始前执行。 |
| save_mode_create_template | String | 否 | 见下文 | 当表结构保存模式需要创建表时使用的建表模板。 |
+| server_time_zone | String | 否 | JVM 系统默认 | ClickHouse 服务器的会话时区。默认为 JVM 系统时区(`ZoneId.systemDefault()`)。 |
+| multi_table_sink_replica | Int | 否 | 1 | 多表写入时的写入器副本数。当 `multi_table_sink_replica > 1` 时,多表并行写入。 |
| common-options | | 否 | - | Sink 插件通用参数,详见 [Sink 常用选项](../common-options/sink-common-options.md)。 |
### schema_save_mode [Enum]
diff --git a/docs/zh/connectors/sink/ClickhouseFile.md b/docs/zh/connectors/sink/ClickhouseFile.md
index 348fc83b97..6c612c2df8 100644
--- a/docs/zh/connectors/sink/ClickhouseFile.md
+++ b/docs/zh/connectors/sink/ClickhouseFile.md
@@ -39,7 +39,9 @@ import ChangeLog from '../changelog/connector-clickhouse.md';
| compatible_mode | boolean | no | false |
| file_fields_delimiter | string | no | "\t" |
| file_temp_path | string | no | "/tmp/seatunnel/clickhouse-local/file" |
-| key_path | string | no | "/tmp/id_rsa" |
+| key_path | string | no | - |
+| server_time_zone | string | no | ZoneId.systemDefault() |
+| clickhouse.config | map | no | - |
| common-options | | no | - |
### host [string]
diff --git a/docs/zh/connectors/sink/DB2.md b/docs/zh/connectors/sink/DB2.md
index 87be4be45b..8bf3660e66 100644
--- a/docs/zh/connectors/sink/DB2.md
+++ b/docs/zh/connectors/sink/DB2.md
@@ -52,12 +52,12 @@ import ChangeLog from '../changelog/connector-jdbc.md';
| DECIMAL<br/>DEC<br/>NUMERIC<br/>NUM | DECIMAL(38,18) |
| REAL | FLOAT |
| FLOAT<br/>DOUBLE<br/>DOUBLE PRECISION<br/>DECFLOAT | DOUBLE |
-| CHAR<br/>VARCHAR<br/>LONG VARCHAR<br/>CLOB<br/>GRAPHIC<br/>VARGRAPHIC<br/>LONG VARGRAPHIC<br/>DBCLOB | STRING |
-| BLOB | BYTES |
+| CHAR<br/>VARCHAR<br/>LONG VARCHAR<br/>CLOB<br/>GRAPHIC<br/>VARGRAPHIC<br/>LONG VARGRAPHIC<br/>DBCLOB<br/>XML | STRING |
+| BLOB<br/>BINARY<br/>VARBINARY | BYTES |
| DATE | DATE |
| TIME | TIME |
| TIMESTAMP | TIMESTAMP |
-| ROWID<br/>XML | 暂不支持 |
+| ROWID | 暂不支持 |
## 选项
diff --git a/docs/zh/connectors/sink/Databend.md b/docs/zh/connectors/sink/Databend.md
index 188f087a36..e2d009b7b1 100644
--- a/docs/zh/connectors/sink/Databend.md
+++ b/docs/zh/connectors/sink/Databend.md
@@ -48,7 +48,7 @@ Databend sink 内部通过 stage attachment 实现数据的批量导入。
| url | String | 是 | - | Databend JDBC 连接 URL,必须以 `jdbc:databend://` 开头 |
| username | String | 是 | - | Databend 数据库用户名 |
| password | String | 是 | - | Databend 数据库密码 |
-| database | String | 否 | - | Databend 数据库名称,默认使用连接 URL 中指定的数据库名 |
+| database | String | 否 | - | `generate_sink_sql = true` 时与 `table` 一起用于生成写入 SQL 的 Databend 数据库名称。未设置时不会自动回退 |
| table | String | 否 | - | Databend 表名称 |
| batch_size | Integer | 否 | 1000 | 批量写入的记录数 |
| auto_commit | Boolean | 否 | true | 是否自动提交事务 |
diff --git a/docs/zh/connectors/sink/DuckDB.md b/docs/zh/connectors/sink/DuckDB.md
index 57e5e0a3d8..6cf6ff41fd 100644
--- a/docs/zh/connectors/sink/DuckDB.md
+++ b/docs/zh/connectors/sink/DuckDB.md
@@ -67,8 +67,8 @@ import ChangeLog from '../changelog/connector-jdbc.md';
| username | String | 否 | - | 连接实例用户名 |
| password | String | 否 | - | 连接实例密码 |
| query | String | 否 | - | 使用此 sql 将上游输入数据写入数据库。例如 `INSERT ...`,`query` 具有更高的优先级 |
-| database | String | 否 | main | 使用此 `database` 和 `table-name` 自动生成 sql 并接收上游输入数据写入数据库。<br/>此选项与 `query` 互斥且具有更高的优先级。 |
-| table | String | 否 | - | 使用数据库和此表名自动生成 sql 并接收上游输入数据写入数据库。<br/>此选项与 `query` 互斥且具有更高的优先级。 |
+| database | String | 否 | - | 使用此 `database` 和 `table-name` 自动生成 sql 并接收上游输入数据写入数据库。<br/>仅当 `generate_sink_sql = true` 时用于自动生成 SQL;设置 `query` 时以 `query` 为准。 |
+| table | String | 否 | - | 使用数据库和此表名自动生成 sql 并接收上游输入数据写入数据库。<br/>仅当 `generate_sink_sql = true` 时用于自动生成 SQL;设置 `query` 时以 `query` 为准。 |
| primary_keys | Array | 否 | - | 此选项用于在自动生成 sql 时支持 `insert`、`delete` 和 `update` 等操作。 |
| connection_check_timeout_sec | Int | 否 | 30 | 等待用于验证连接的数据库操作完成的时间(以秒为单位)。 |
| max_retries | Int | 否 | 0 | 提交失败(executeBatch)的重试次数 |
@@ -86,6 +86,7 @@ import ChangeLog from '../changelog/connector-jdbc.md';
| data_save_mode | Enum | 否 | APPEND_DATA | 在同步任务开启之前,针对目标端已有数据选择不同的处理方案。 |
| custom_sql | String | 否 | - | 当 data_save_mode 选择 CUSTOM_PROCESSING 时,应填写 CUSTOM_SQL 参数。此参数通常填写可执行的 SQL。SQL 将在同步任务之前执行。 |
| enable_upsert | Boolean | 否 | true | 通过 primary_keys 存在启用 upsert,如果任务只有 `insert`,将此参数设置为 `false` 可以加快数据导入速度 |
+| multi_table_sink_replica | Int | 否 | 1 | 多表写入时的写入器副本数。当 `multi_table_sink_replica > 1` 时,多表并行写入。 |
### 提示
diff --git a/docs/zh/connectors/sink/Hbase.md b/docs/zh/connectors/sink/Hbase.md
index 4644fb6926..e805b514f4 100644
--- a/docs/zh/connectors/sink/Hbase.md
+++ b/docs/zh/connectors/sink/Hbase.md
@@ -37,6 +37,7 @@ import ChangeLog from '../changelog/connector-hbase.md';
| schema_save_mode | enum | 否 | CREATE_SCHEMA_WHEN_NOT_EXIST | 写入前如何处理目标表结构。 |
| data_save_mode | enum | 否 | APPEND_DATA | 写入前如何处理目标端已有数据。 |
| hbase_extra_config | config | 否 | - | 额外的 HBase 或 Hadoop 客户端配置。 |
+| ttl | long | 否 | -1 | 写入 HBase 单元格的过期时间(毫秒);`-1` 表示永不过期。 |
| multi_table_sink_replica | int | 否 | 1 | 多表写入时每张表对应的 Sink Writer 副本数。 |
| common-options | | 否 | - | Sink 插件通用参数,例如 `plugin_input`。 |
diff --git a/docs/zh/connectors/sink/Hudi.md b/docs/zh/connectors/sink/Hudi.md
index 7cd1224b73..adf7b4ee2f 100644
--- a/docs/zh/connectors/sink/Hudi.md
+++ b/docs/zh/connectors/sink/Hudi.md
@@ -32,6 +32,7 @@ SeaTunnel Hudi sink 会写入 Hudi 数据文件和 `.hoodie` 元数据,但不
| table_list | array | 否 | - |
| schema_save_mode | enum | 否 | CREATE_SCHEMA_WHEN_NOT_EXIST |
| data_save_mode | enum | 否 | APPEND_DATA |
+| multi_table_sink_replica | int | 否 | 1 |
| common-options | config | 否 | - |
表清单配置:
@@ -56,7 +57,9 @@ SeaTunnel Hudi sink 会写入 Hudi 数据文件和 `.hoodie` 元数据,但不
| record_byte_size | int | 否 | 1024 |
| cdc_enabled | boolean| 否 | false |
-注意:写入单表时,可以把 `table_list` 中的表配置项平铺到外层。
+注意:写入单表时,可以把 `table_list` 中的表配置项平铺到外层。多表作业中,表级配置需放在各自的 `table_list` 条目内;`table_dfs_path`、`conf_files_path`、`schema_save_mode` 和 `data_save_mode` 保持在 sink 层级。
+
+`record_key_fields` 在 `UPSERT` 模式下必填(启动时校验),在 `BULK_INSERT` 模式下也必填(当前未校验——缺少该配置会在写入时抛出 `NullPointerException`,而不是配置期错误)。对于 CDC 输入,上游记录必须包含 `record_key_fields` 引用的字段;仅当需要 Hudi CDC 变更日志时才设置 `cdc_enabled = true`。
### table_name [string]
@@ -274,6 +277,22 @@ sink {
}
```
+### S3 存储
+
+sink 可以写入 S3 兼容路径。`connector-hudi` 模块不依赖 `hadoop-aws`/`aws-java-sdk`,因此要解析 `s3a://` 协议,需要先将 `hadoop-aws` 和匹配的 AWS SDK 包(或 SeaTunnel 的 `seatunnel-hadoop-aws` jar)放入 `$SEATUNNEL_HOME/lib`(或连接器的插件 lib 目录),下面的示例才能运行。之后通过 `conf_files_path`(或运行时 classpath)提供所需的 Hadoop 文件系统配置,再使用 `s3a://` 表路径。
+
+```hocon
+sink {
+ Hudi {
+ table_dfs_path = "s3a://hudi/"
+ conf_files_path = "/etc/hadoop/core-site.xml;/etc/hadoop/hdfs-site.xml"
+ table_name = "st_test"
+ op_type = "UPSERT"
+ record_key_fields = "id"
+ }
+}
+```
+
## 变更日志
<ChangeLog />
diff --git a/docs/zh/connectors/sink/HugeGraph.md b/docs/zh/connectors/sink/HugeGraph.md
index f8b64a324f..5f5ee76680 100644
--- a/docs/zh/connectors/sink/HugeGraph.md
+++ b/docs/zh/connectors/sink/HugeGraph.md
@@ -61,6 +61,7 @@ HugeGraph sink连接器允许您将数据从SeaTunnel写入Apache HugeGraph,
| `schema_save_mode` | Enum | 否 | `mappings` 为 `CREATE_SCHEMA_WHEN_NOT_EXIST`;legacy 为 `ERROR_WHEN_SCHEMA_NOT_EXIST` | Schema 管理模式。 |
| `data_save_mode` | Enum | 否 | `APPEND_DATA` | 写入前如何处理已有数据。`APPEND_DATA` 保留已有数据;`DROP_DATA` 在任务开始时**仅**删除本任务涉及的 label 的数据(先边后点),保留其 schema 以及其他 label 的数据;删除按 label 隔离(某张表的 DROP 不会波及其他表),且在 checkpoint 重启时不会重复执行。 |
| `delete_vertex_with_edges` | Boolean | 否 | `mappings` 为 `false`;legacy 为 `true` | 为 true 时,顶点 DELETE 行会同时删除关联边。 |
+| `allow_cascade_delete_unmapped_edges` | Boolean | 否 | `false` | 当 `data_save_mode = DROP_DATA` 时,删除顶点会级联删除其关联的边——包括未在本作业 `mappings` 中列出的边 label。默认 `false`:作业快速失败并列出未映射的边 label。设为 `true` 表示接受该破坏性级联删除。 |
| `schema_config` | Object | 否 | - | 已废弃的 legacy 映射对象。请使用 `mappings`。必须配置 `mappings` 或 `schema_config` 之一。 |
| `selected_fields` | List | 否 | - | 已废弃。Legacy `schema_config` 仍会应用;新任务请使用 mapping 内的 `properties`。 |
| `ignored_fields` | List | 否 | - | 已废弃。Legacy `schema_config` 仍会应用;新任务请使用 mapping 内的 `properties`。 |
diff --git a/docs/zh/connectors/sink/Iceberg.md b/docs/zh/connectors/sink/Iceberg.md
index 13d5bdd6ff..5cdad95992 100644
--- a/docs/zh/connectors/sink/Iceberg.md
+++ b/docs/zh/connectors/sink/Iceberg.md
@@ -81,7 +81,7 @@ libfb303-xxx.jar
| data_save_mode | Enum | no | APPEND_DATA | 数据写入方式, 请参考下面的 `data_save_mode` |
| custom_sql | string | 当 `data_save_mode` 为 `CUSTOM_PROCESSING` 时是 | - | `CUSTOM_PROCESSING` 数据写入方式使用的自定义 `delete` SQL,例如 `delete from ... where ...`。 |
| iceberg.table.commit-branch | string | no | - | 提交的默认分支 |
-| multi_table_sink_replica | int | no | - | 多表写入模式下每张表对应的 Sink 写入并发数。一个作业写入多张 Iceberg 表,并且每张表都需要多个写入器时使用。 |
+| multi_table_sink_replica | int | no | 1 | 多表写入模式下每张表对应的 Sink 写入并发数。一个作业写入多张 Iceberg 表,并且每张表都需要多个写入器时使用。 |
| krb5_path | string | no | /etc/krb5.conf | `krb5.conf` 文件的路径,用于 Kerberos 认证。 |
| kerberos_principal | string | no | - | Kerberos 认证的 principal。 |
| kerberos_keytab_path | string | no | - | Kerberos 认证的 keytab 文件路径。 |
diff --git a/docs/zh/connectors/sink/Kingbase.md b/docs/zh/connectors/sink/Kingbase.md
index 20108c4340..6998fccad5 100644
--- a/docs/zh/connectors/sink/Kingbase.md
+++ b/docs/zh/connectors/sink/Kingbase.md
@@ -62,8 +62,8 @@ import ChangeLog from '../changelog/connector-jdbc.md';
| username | String | 否 | - | 连接实例用户名。旧配置名 `user` 仍可作为兼容写法使用。 |
| password | String | 否 | - | 连接实例密码 |
| query | String | 否 | - | 使用此 sql 将上游输入数据写入数据库。例如 `INSERT ...`,`query` 具有更高的优先级 |
-| database | String | 否 | - | 使用此 `database` 和 `table-name` 自动生成 sql 并接收上游输入数据写入数据库。<br/>此选项与 `query` 互斥,具有更高的优先级。 |
-| table | String | 否 | - | 使用数据库和此 table-name 自动生成 sql 并接收上游输入数据写入数据库。<br/>此选项与 `query` 互斥,具有更高的优先级。 |
+| database | String | 否 | - | 使用此 `database` 和 `table-name` 自动生成 sql 并接收上游输入数据写入数据库。<br/>仅当 `generate_sink_sql = true` 时用于自动生成 SQL;设置 `query` 时以 `query` 为准 |
+| table | String | 否 | - | 使用数据库和此 table-name 自动生成 sql 并接收上游输入数据写入数据库。<br/>仅当 `generate_sink_sql = true` 时用于自动生成 SQL;设置 `query` 时以 `query` 为准 |
| primary_keys | Array | 否 | - | 此选项用于在自动生成 sql 时支持 `insert`、`delete` 和 `update` 等操作。 |
| connection_check_timeout_sec | Int | 否 | 30 | 等待用于验证连接的数据库操作完成的时间(秒)。 |
| max_retries | Int | 否 | 0 | 提交失败的重试次数 (executeBatch) |
diff --git a/docs/zh/connectors/sink/Mysql.md b/docs/zh/connectors/sink/Mysql.md
index d38f17c7ca..26a7ec7d7d 100644
--- a/docs/zh/connectors/sink/Mysql.md
+++ b/docs/zh/connectors/sink/Mysql.md
@@ -74,8 +74,8 @@ import ChangeLog from '../changelog/connector-jdbc.md';
| username | String | 否 | - | 连接实例用户名。 |
| password | String | 否 | - | 连接实例密码。 |
| query | String | 否 | - | 使用此sql将上游输入数据写入数据库。例如: `INSERT ...`,`query` 具有更高的优先级 |
-| database | String | 否 | - | 使用此 `database` 和 `table-name` 自动生成sql并接收上游输入数据写入数据库。<br/>此选项与`query` 互斥,具有更高的优先级 |
-| table | String | 否 | - | 使用数据库和此表名自动生成sql并接收上游输入数据写入数据库。<br/>此选项与`query` 互斥,具有更高的优先级 |
+| database | String | 否 | - | 使用此 `database` 和 `table-name` 自动生成sql并接收上游输入数据写入数据库。<br/>仅当 `generate_sink_sql = true` 时用于自动生成 SQL;设置 `query` 时以 `query` 为准 |
+| table | String | 否 | - | 使用数据库和此表名自动生成sql并接收上游输入数据写入数据库。<br/>仅当 `generate_sink_sql = true` 时用于自动生成 SQL;设置 `query` 时以 `query` 为准 |
| primary_keys | Array | 否 | - | 此选项用于支持以下操作,例如 `insert`, `delete`, 和 `update` 当自动生成sql. |
| connection_check_timeout_sec | Int | 否 | 30 | 等待用于验证连接的数据库操作完成的时间(秒)。 |
| max_retries | Int | 否 | 0 | 提交失败的重试次数(executeBatch) |
diff --git a/docs/zh/connectors/sink/Oracle.md b/docs/zh/connectors/sink/Oracle.md
index e3c4eedd94..d818821a12 100644
--- a/docs/zh/connectors/sink/Oracle.md
+++ b/docs/zh/connectors/sink/Oracle.md
@@ -50,7 +50,7 @@ import ChangeLog from '../changelog/connector-jdbc.md';
| Oracle 数据类型 | SeaTunnel 数据类型 |
|--------------------------------------------------------------------------------------|---------------------|
-| INTEGER | INT |
+| INTEGER | DECIMAL(38,0) |
| FLOAT | DECIMAL(38, 18) |
| NUMBER(precision <= 9, scale == 0) | INT |
| NUMBER(9 < precision <= 18, scale == 0) | BIGINT |
@@ -59,7 +59,7 @@ import ChangeLog from '../changelog/connector-jdbc.md';
| BINARY_DOUBLE | DOUBLE |
| BINARY_FLOAT<br/>REAL | FLOAT |
| CHAR<br/>NCHAR<br/>NVARCHAR2<br/>VARCHAR2<br/>LONG<br/>ROWID<br/>NCLOB<br/>CLOB<br/> | STRING |
-| DATE | DATE |
+| DATE | TIMESTAMP |
| TIMESTAMP<br/>TIMESTAMP WITH LOCAL TIME ZONE | TIMESTAMP |
| BLOB<br/>RAW<br/>LONG RAW<br/>BFILE | BYTES |
@@ -72,8 +72,8 @@ import ChangeLog from '../changelog/connector-jdbc.md';
| username | String | 否 | - | 连接实例用户名。 |
| password | String | 否 | - | 连接实例密码。 |
| query | String | 否 | - | 使用此sql将上游输入数据写入数据库。例如: `INSERT ...`,`query` 具有更高的优先级 |
-| database | String | 否 | - | 使用此 `database` 和 `table-name` 自动生成sql并接收上游输入数据写入数据库。<br/>此选项与`query` 互斥,具有更高的优先级 |
-| table | String | 否 | - | 使用数据库和此表名自动生成sql并接收上游输入数据写入数据库。<br/>此选项与`query` 互斥,具有更高的优先级 |
+| database | String | 否 | - | 使用此 `database` 和 `table-name` 自动生成sql并接收上游输入数据写入数据库。<br/>仅当 `generate_sink_sql = true` 时用于自动生成 SQL;设置 `query` 时以 `query` 为准 |
+| table | String | 否 | - | 使用数据库和此表名自动生成sql并接收上游输入数据写入数据库。<br/>仅当 `generate_sink_sql = true` 时用于自动生成 SQL;设置 `query` 时以 `query` 为准 |
| primary_keys | Array | 否 | - | 此选项用于支持以下操作,例如 `insert`, `delete`, 和 `update` 当自动生成sql. |
| connection_check_timeout_sec | Int | 否 | 30 | 等待用于验证连接的数据库操作完成的时间(秒)。 |
| max_retries | Int | 否 | 0 | 提交失败的重试次数(executeBatch) |
diff --git a/docs/zh/connectors/sink/PostgreSql.md b/docs/zh/connectors/sink/PostgreSql.md
index 5d013998ec..80c7681579 100644
--- a/docs/zh/connectors/sink/PostgreSql.md
+++ b/docs/zh/connectors/sink/PostgreSql.md
@@ -78,8 +78,8 @@ import ChangeLog from '../changelog/connector-jdbc.md';
| username | String | 否 | - | 连接实例的用户名。 [...]
| password | String | 否 | - | 连接实例的密码。 [...]
| query | String | 否 | - | 使用此 SQL 将上游输入数据写入数据库。例如 `INSERT ...`,`query` 的优先级更高。 [...]
-| database | String | 否 | - | 使用此 `database` 和 `table-name` 自动生成 SQL,并接收上游输入数据写入数据库。<br/>此选项与 `query` 互斥,并具有更高的优先级。 [...]
-| table | String | 否 | - | 使用数据库和此表名自动生成 SQL,并接收上游输入数据写入数据库。<br/>此选项与 `query` 互斥,并具有更高的优先级。表参数可以填写一个不想的表的名称,最终将作为创建表的表名,并支持变量(`${table_name}`,`${schema_name}`)。替换规则: `${schema_name}` 将替换为传递给目标端的 SCHEMA 名称,`${table_name}` 将替换为传递给目标端的表名称。 |
+| database | String | 否 | - | 使用此 `database` 和 `table-name` 自动生成 SQL,并接收上游输入数据写入数据库。<br/>仅当 `generate_sink_sql = true` 时用于自动生成 SQL;设置 `query` 时以 `query` 为准 [...]
+| table | String | 否 | - | 使用数据库和此表名自动生成 SQL,并接收上游输入数据写入数据库。<br/>仅当 `generate_sink_sql = true` 时用于自动生成 SQL;设置 `query` 时以 `query` 为准表参数可以填写一个不想的表的名称,最终将作为创建表的表名,并支持变量(`${table_name}`,`${schema_name}`)。替换规则: `${schema_name}` 将替换为传递给目标端的 SCHEMA 名称,`${table_name}` 将替换为传递给目标端的表名称。 |
| primary_keys | Array | 否 | - | 此选项用于支持在自动生成 SQL 时进行 `insert`,`delete` 和 `update` 操作。 [...]
| connection_check_timeout_sec | Int | 否 | 30 | 用于验证连接的数据库操作完成的等待时间(秒)。 [...]
| max_retries | Int | 否 | 0 | 提交失败的重试次数(executeBatch)。 [...]
@@ -103,7 +103,7 @@ import ChangeLog from '../changelog/connector-jdbc.md';
使用 `database` 和此 `table-name` 自动生成 SQL,并接收上游输入数据写入数据库。
-此选项与 `query` 互斥,并具有更高的优先级。
+仅当 `generate_sink_sql = true` 时用于自动生成 SQL;设置 `query` 时以 `query` 为准
表参数可以填写一个不想的表的名称,最终将作为创建表的表名,并支持变量(`${table_name}`,`${schema_name}`)。替换规则:`${schema_name}` 将替换为传递给目标端的 SCHEMA 名称,`${table_name}` 将替换为传递给目标端的表名称。
diff --git a/docs/zh/connectors/sink/Qdrant.md b/docs/zh/connectors/sink/Qdrant.md
index 118389bc58..37eb4affc2 100644
--- a/docs/zh/connectors/sink/Qdrant.md
+++ b/docs/zh/connectors/sink/Qdrant.md
@@ -32,6 +32,7 @@ Qdrant sink 会把 SeaTunnel 行写入一个已经存在的 Qdrant collection。
| port | int | 否 | 6334 | Qdrant gRPC 端口。 |
| api_key | string | 否 | "" | 认证场景下使用的 Qdrant API key。 |
| use_tls | bool | 否 | false | gRPC 连接是否启用 TLS。 |
+| multi_table_sink_replica | int | 否 | 1 | 多表写入模式下每张表对应的 Sink 写入并发数。 |
| common-options | | 否 | - | Sink 通用选项。 |
### collection_name [string]
diff --git a/docs/zh/connectors/sink/Redshift.md b/docs/zh/connectors/sink/Redshift.md
index cf6eca3e33..58e5c326a7 100644
--- a/docs/zh/connectors/sink/Redshift.md
+++ b/docs/zh/connectors/sink/Redshift.md
@@ -71,8 +71,8 @@ import ChangeLog from '../changelog/connector-jdbc.md';
| username | String | 否 | - | 连接实例用户名 |
| password | String | 否 | - | 连接实例密码 |
| query | String | 否 | - | 使用此 SQL 将上游输入数据写入数据库。例如 `INSERT ...`,`query` 具有更高的优先级 |
-| database | String | 否 | - | 使用此 `database` 和 `table-name` 自动生成 SQL 并接收上游输入数据写入数据库。<br/>此选项与 `query` 互斥,具有更高的优先级。 |
-| table | String | 否 | - | 使用数据库和此表名自动生成 SQL 并接收上游输入数据写入数据库。<br/>此选项与 `query` 互斥,具有更高的优先级。 |
+| database | String | 否 | - | 使用此 `database` 和 `table-name` 自动生成 SQL 并接收上游输入数据写入数据库。<br/>仅当 `generate_sink_sql = true` 时用于自动生成 SQL;设置 `query` 时以 `query` 为准 |
+| table | String | 否 | - | 使用数据库和此表名自动生成 SQL 并接收上游输入数据写入数据库。<br/>仅当 `generate_sink_sql = true` 时用于自动生成 SQL;设置 `query` 时以 `query` 为准 |
| schema | String | 否 | - | Redshift 中目标表的 schema 名称。SeaTunnel 不会为该参数自动填充默认值。当目标表没有在 `table` 中显式携带 schema,或使用 `generate_sink_sql`、`schema_save_mode`、`data_save_mode` 等基于 catalog 的操作时,建议显式配置该参数。 |
| primary_keys | Array | 否 | - | 此选项用于支持自动生成 SQL 时的 `insert`、`delete` 和 `update` 操作。 |
| connection_check_timeout_sec | Int | 否 | 30 | 等待用于验证连接的数据库操作完成的时间(秒)。 |
diff --git a/docs/zh/connectors/sink/S3-Redshift.md b/docs/zh/connectors/sink/S3-Redshift.md
index 526f0624ef..c5fdc372fc 100644
--- a/docs/zh/connectors/sink/S3-Redshift.md
+++ b/docs/zh/connectors/sink/S3-Redshift.md
@@ -42,7 +42,7 @@ import ChangeLog from '../changelog/connector-s3-redshift.md';
| access_secret | string | 否 | - | S3 文件系统的 access secret。如果未配置,需要正确配置 Hadoop 凭据链,请参考 [hadoop-aws](https://hadoop.apache.org/docs/stable/hadoop-aws/tools/hadoop-aws/index.html)。 |
| hadoop_s3_properties | map | 否 | - | 额外的 Hadoop S3A / Hadoop-AWS 选项,可以用来设置 `fs.s3a.aws.credentials.provider` 等。请参考 [Hadoop-AWS](https://hadoop.apache.org/docs/stable/hadoop-aws/tools/hadoop-aws/index.html)。 |
| file_name_expression | string | 否 | "${transactionId}" | 在 `path` 下追加的文件名表达式,可使用 `${now}` 或 `${uuid}` 注入时间或 UUID。`is_enable_transaction = true` 时会自动在文件名前添加 `${transactionId}_`。 |
-| file_format_type | string | 否 | "text" | 写入 S3 的文件格式,支持 `text`、`csv`、`parquet`、`orc`、`json`。最终文件名会带相应后缀(例如 `text` 是 `txt`)。 |
+| file_format_type | string | 否 | csv | 写入 S3 的文件格式,支持 `text`、`csv`、`parquet`、`orc`、`json`。最终文件名会带相应后缀(例如 `text` 是 `txt`)。 |
| filename_time_format | string | 否 | "yyyy.MM.dd" | 解析 `file_name_expression` 中 `${now}` 的时间格式,详见 [Java SimpleDateFormat](https://docs.oracle.com/javase/tutorial/i18n/format/simpleDateFormat.html)。 |
| field_delimiter | string | 否 | '\001' | `text` 和 `csv` 文件的列分隔符。 |
| row_delimiter | string | 否 | "\n" | `text` 和 `csv` 文件的行分隔符。 |
diff --git a/docs/zh/connectors/sink/SqlServer.md b/docs/zh/connectors/sink/SqlServer.md
index e3cda0c70b..d6f65eab50 100644
--- a/docs/zh/connectors/sink/SqlServer.md
+++ b/docs/zh/connectors/sink/SqlServer.md
@@ -74,8 +74,8 @@ import ChangeLog from '../changelog/connector-jdbc.md';
| username | String | 否 | - | 连接实例的用户名 |
| password | String | 否 | - | 连接实例的密码 |
| query | String | 否 | - | 使用此 SQL 将上游输入数据写入数据库。例如 `INSERT ...`,`query` 优先级更高。 |
-| database | String | 否 | - | 使用此 `database` 和 `table-name` 自动生成 SQL 并接收上游输入数据写入数据库。此选项与 `query` 互斥,且优先级更高。 |
-| table | String | 否 | - | 使用 `database` 和此 `table-name` 自动生成 SQL 并接收上游输入数据写入数据库。此选项与 `query` 互斥,且优先级更高。 |
+| database | String | 否 | - | 使用此 `database` 和 `table-name` 自动生成 SQL 并接收上游输入数据写入数据库。仅当 `generate_sink_sql = true` 时用于自动生成 SQL;设置 `query` 时以 `query` 为准 |
+| table | String | 否 | - | 使用 `database` 和此 `table-name` 自动生成 SQL 并接收上游输入数据写入数据库。仅当 `generate_sink_sql = true` 时用于自动生成 SQL;设置 `query` 时以 `query` 为准 |
| primary_keys | Array | 否 | - | 此选项用于在自动生成 SQL 时支持 `insert`、`delete` 和 `update` 等操作。 |
| connection_check_timeout_sec | Int | 否 | 30 | 用于验证连接完成的数据库操作的等待时间(秒)。 |
| max_retries | Int | 否 | 0 | 提交失败(executeBatch)的重试次数。 |
diff --git a/docs/zh/connectors/sink/StarRocks.md b/docs/zh/connectors/sink/StarRocks.md
index a760cb7709..d38f5d48bb 100644
--- a/docs/zh/connectors/sink/StarRocks.md
+++ b/docs/zh/connectors/sink/StarRocks.md
@@ -103,9 +103,9 @@ StarRocks数据接收器根据上游数据自动获取相应的信息来填充
### table [string]
-使用选项参数`database`和`table-name`自动生成SQL,并接收上游输入数据写入StarRocks中。
+选项参数 `database` 和 `table` 共同确定接收上游数据的目标 StarRocks 表。
-此选项与 `query` 是互斥的,具具有更高的优先级。
+如果未设置 `table`,则使用上游表名。
table选项参数可以填入一任意表名,这个名字最终会被用作目标表的表名,并且支持变量(`${table_name}`,`${schema_name}`)。
替换规则如下:`${schema_name}` 将替换传递给目标端的 SCHEMA 名称,`${table_name}` 将替换传递给目标端的表名。
diff --git a/docs/zh/connectors/sink/Vertica.md b/docs/zh/connectors/sink/Vertica.md
index b0291d79ee..5eee434609 100644
--- a/docs/zh/connectors/sink/Vertica.md
+++ b/docs/zh/connectors/sink/Vertica.md
@@ -47,7 +47,7 @@ import ChangeLog from '../changelog/connector-jdbc.md';
| Vertica 数据类型 | SeaTunnel 数据类型 |
|------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------|
-| BIT(1)<br/>INT UNSIGNED | BOOLEAN |
+| BIT | BOOLEAN |
| TINYINT<br/>TINYINT UNSIGNED<br/>SMALLINT<br/>SMALLINT UNSIGNED<br/>MEDIUMINT<br/>MEDIUMINT UNSIGNED<br/>INT<br/>INTEGER<br/>YEAR | INT |
| INT UNSIGNED<br/>INTEGER UNSIGNED<br/>BIGINT | BIGINT |
| BIGINT UNSIGNED | DECIMAL(20,0) |
@@ -60,7 +60,7 @@ import ChangeLog from '../changelog/connector-jdbc.md';
| DATE | DATE |
| TIME | TIME |
| DATETIME<br/>TIMESTAMP | TIMESTAMP |
-| TINYBLOB<br/>MEDIUMBLOB<br/>BLOB<br/>LONGBLOB<br/>BINARY<br/>VARBINAR<br/>BIT(n) | BYTES |
+| TINYBLOB<br/>MEDIUMBLOB<br/>BLOB<br/>LONGBLOB<br/>BINARY<br/>VARBINARY | BYTES |
| GEOMETRY<br/>UNKNOWN | 尚未支持 |
## 接收器选项
@@ -72,8 +72,8 @@ import ChangeLog from '../changelog/connector-jdbc.md';
| username | String | 否 | - | 连接实例的用户名 |
| password | String | 否 | - | 连接实例的密码 |
| query | String | 否 | - | 使用此 SQL 将上游输入数据写入数据库。例如 `INSERT ...`,`query` 优先级更高。 |
-| database | String | 否 | - | 使用此 `database` 和 `table-name` 自动生成 SQL 并接收上游输入数据写入数据库。此选项与 `query` 互斥,且优先级更高。 |
-| table | String | 否 | - | 使用 `database` 和此 `table-name` 自动生成 SQL 并接收上游输入数据写入数据库。此选项与 `query` 互斥,且优先级更高。 |
+| database | String | 否 | - | 使用此 `database` 和 `table-name` 自动生成 SQL 并接收上游输入数据写入数据库。仅当 `generate_sink_sql = true` 时用于自动生成 SQL;设置 `query` 时以 `query` 为准 |
+| table | String | 否 | - | 使用 `database` 和此 `table-name` 自动生成 SQL 并接收上游输入数据写入数据库。仅当 `generate_sink_sql = true` 时用于自动生成 SQL;设置 `query` 时以 `query` 为准 |
| primary_keys | Array | 否 | - | 此选项用于在自动生成 SQL 时支持 `insert`、`delete` 和 `update` 等操作。 |
| connection_check_timeout_sec | Int | 否 | 30 | 用于验证连接完成的数据库操作的等待时间(秒)。 |
| max_retries | Int | 否 | 0 | 提交失败(executeBatch)的重试次数。 |
diff --git a/docs/zh/connectors/sink/Zendesk.md b/docs/zh/connectors/sink/Zendesk.md
index d327457e63..8124cc9842 100644
--- a/docs/zh/connectors/sink/Zendesk.md
+++ b/docs/zh/connectors/sink/Zendesk.md
@@ -34,6 +34,7 @@ import ChangeLog from '../changelog/connector-http-zendesk.md';
| rate_limit_backoff_ms | int | 否 | 30000 | 收到 429(速率限制)响应时的基础退避时间(毫秒)。默认 30000ms。必须 `>= 0`。 |
| resource_key | String | 否 | - | Zendesk API 请求体的 JSON 包装键(如 `"ticket"`、`"user"`、`"organization"`)。设置后将直接使用该值,而不从 URL 路径自动推断。适用于自动推断无法正确处理的端点。 |
| rate_limit_max_retries | int | 否 | 3 | 收到 429 响应后的最大重试次数。默认 3。必须 `>= 0`。 |
+| multi_table_sink_replica | int | 否 | 1 | 多表写入模式下每张表对应的 Sink 写入并发数。 |
| common-options | | 否 | - | Sink 通用选项。参见 [Sink 通用选项](../common-options/sink-common-options.md)。 |
## 使用说明
diff --git a/docs/zh/connectors/source/DB2-CDC.md b/docs/zh/connectors/source/DB2-CDC.md
index ed1dae1c9b..2054bedd6e 100644
--- a/docs/zh/connectors/source/DB2-CDC.md
+++ b/docs/zh/connectors/source/DB2-CDC.md
@@ -78,8 +78,9 @@ Debezium DB2,在初始快照完成后会继续读取已提交的 INSERT、UPDA
| incremental.parallelism | Integer | 否 | 1 | 增量阶段中并行读取器的数量。 |
| snapshot.split.size | Integer | 否 | 8096 | 表快照的分割大小。 |
| snapshot.fetch.size | Integer | 否 | 1024 | 读取表快照时每次轮询的最大获取大小。 |
-| server-time-zone | String | 否 | UTC | 数据库服务器中的会话时区。 |
-| connect.timeout.ms | Duration | 否 | 30s | 连接器尝试连接到数据库服务器后,在超时之前等待的最长时间。 |
+| enable_concurrent_read | Boolean | 否 | true | 快照阶段是否启用分片并发读取。设置为 false 时,源会以单个分片读取表,不做分片分析,适用于没有索引的表。 |
+| server-time-zone | String | 否 | - | 数据库服务器中的会话时区。 |
+| connect.timeout.ms | Long | 否 | 30000 | 连接器尝试连接到数据库服务器后,在超时之前等待的最长时间。 |
| connect.max-retries | Integer | 否 | 3 | 连接器重试建立数据库连接的最大次数。 |
| connection.pool.size | Integer | 否 | 20 | 连接池大小。 |
| chunk-key.even-distribution.factor.upper-bound | Double | 否 | 100 | 用于判断分块键是否均匀分布的上界。 |
diff --git a/docs/zh/connectors/source/DB2.md b/docs/zh/connectors/source/DB2.md
index c17b160576..1ab3e67e25 100644
--- a/docs/zh/connectors/source/DB2.md
+++ b/docs/zh/connectors/source/DB2.md
@@ -57,12 +57,12 @@ import ChangeLog from '../changelog/connector-jdbc.md';
| DECIMAL<br/>DEC<br/>NUMERIC<br/>NUM | DECIMAL(38,18) |
| REAL | FLOAT |
| FLOAT<br/>DOUBLE<br/>DOUBLE PRECISION<br/>DECFLOAT | DOUBLE |
-| CHAR<br/>VARCHAR<br/>LONG VARCHAR<br/>CLOB<br/>GRAPHIC<br/>VARGRAPHIC<br/>LONG VARGRAPHIC<br/>DBCLOB | STRING |
-| BLOB | BYTES |
+| CHAR<br/>VARCHAR<br/>LONG VARCHAR<br/>CLOB<br/>GRAPHIC<br/>VARGRAPHIC<br/>LONG VARGRAPHIC<br/>DBCLOB<br/>XML | STRING |
+| BLOB<br/>BINARY<br/>VARBINARY | BYTES |
| DATE | DATE |
| TIME | TIME |
| TIMESTAMP | TIMESTAMP |
-| ROWID<br/>XML | 暂不支持 |
+| ROWID | 暂不支持 |
## 源选项
diff --git a/docs/zh/connectors/source/Databend.md b/docs/zh/connectors/source/Databend.md
index 39ec0fcf52..023459cde5 100644
--- a/docs/zh/connectors/source/Databend.md
+++ b/docs/zh/connectors/source/Databend.md
@@ -74,7 +74,7 @@ SQL 语句。连接器在批处理模式下执行查询,并把每一行结果
| url | String | 是 | - | Databend JDBC 连接 URL,必须以 `jdbc:databend://` 开头 |
| username | String | 是 | - | Databend 数据库用户名 |
| password | String | 是 | - | Databend 数据库密码 |
-| database | String | 否 | - | Databend 数据库名称,默认使用连接 URL 中指定的数据库名 |
+| database | String | 否 | `default` | Databend 数据库名称。未设置时源端回退到 `default` 数据库 |
| table | String | 否 | - | Databend 表名称 |
| query | String | 否 | - | Databend 查询语句。如果设置,会覆盖 database 和 table 的设置 |
| sql | String | 否 | - | 自定义 SQL 语句。若同时配置 `sql` 和 `query`,优先使用 `sql` |
diff --git a/docs/zh/connectors/source/DuckDB.md b/docs/zh/connectors/source/DuckDB.md
index dfe6c09305..4278e39f13 100644
--- a/docs/zh/connectors/source/DuckDB.md
+++ b/docs/zh/connectors/source/DuckDB.md
@@ -77,9 +77,9 @@ import ChangeLog from '../changelog/connector-jdbc.md';
| query | String | 是 | - | 查询语句 |
| connection_check_timeout_sec | Int | 否 | 30 | 等待用于验证连接的数据库操作完成的时间(以秒为单位) |
| partition_column | String | 否 | - | 并行度分区的列名,仅支持数字类型主键,并且只能配置一列。 |
-| partition_lower_bound | BigDecimal | 否 | - | 扫描的 partition_column 最小值,如果未设置,SeaTunnel 将查询数据库获取最小值。 |
-| partition_upper_bound | BigDecimal | 否 | - | 扫描的 partition_column 最大值,如果未设置,SeaTunnel 将查询数据库获取最大值。 |
-| partition_num | Int | 否 | job parallelism | 分区计数的数量,仅支持正整数。默认值为作业并行度 |
+| partition_lower_bound | String | 否 | - | 扫描的 partition_column 最小值,如果未设置,SeaTunnel 将查询数据库获取最小值。 |
+| partition_upper_bound | String | 否 | - | 扫描的 partition_column 最大值,如果未设置,SeaTunnel 将查询数据库获取最大值。 |
+| partition_num | Int | 否 | 10 | 分区计数的数量,仅支持正整数。默认值为 10 |
| fetch_size | Int | 否 | 0 | 对于返回大量对象的查询,您可以配置<br/> 查询中使用的行获取大小来通过<br/> 减少满足选择条件所需的数据库命中次数来提高性能。<br/> 零表示使用 jdbc 默认值。 |
| properties | Map | 否 | - | 附加连接配置参数,当 properties 和 URL 具有相同参数时,优先级由 <br/>驱动程序的具体实现确定。例如,在 DuckDB 中,properties 优先于 URL。 |
| table_path | String | 否 | - | 表的完整路径,您可以使用此配置代替 `query`。 <br/>示例: <br/>duckdb: "main.table1" <br/> |
@@ -112,11 +112,11 @@ JDBC 源连接器支持从表中并行读取数据。SeaTunnel 将使用某些
用于拆分数据的列名。
-#### partition_upper_bound [BigDecimal]
+#### partition_upper_bound [string]
扫描的 partition_column 最大值,如果未设置,SeaTunnel 将查询数据库获取最大值。
-#### partition_lower_bound [BigDecimal]
+#### partition_lower_bound [string]
扫描的 partition_column 最小值,如果未设置,SeaTunnel 将查询数据库获取最小值。
@@ -124,7 +124,7 @@ JDBC 源连接器支持从表中并行读取数据。SeaTunnel 将使用某些
> 不建议使用,正确的方法是通过 `split.size` 控制拆分数量
-我们需要拆分成多少个拆分,仅支持正整数。默认值为作业并行度。
+我们需要拆分成多少个拆分,仅支持正整数。默认值为 10。
## 提示
diff --git a/docs/zh/connectors/source/HiveJdbc.md b/docs/zh/connectors/source/HiveJdbc.md
index 32547958a8..74d3e35cc0 100644
--- a/docs/zh/connectors/source/HiveJdbc.md
+++ b/docs/zh/connectors/source/HiveJdbc.md
@@ -50,7 +50,8 @@ import ChangeLog from '../changelog/connector-jdbc.md';
| Hive 数据类型 | SeaTunnel 数据类型 |
|-------------------------------------------------------------------------------------------|-------------------|
| BOOLEAN | BOOLEAN |
-| TINYINT<br/> SMALLINT | SHORT |
+| TINYINT | BYTE |
+| SMALLINT | SHORT |
| INT<br/>INTEGER | INT |
| BIGINT | LONG |
| FLOAT | FLOAT |
@@ -77,7 +78,7 @@ import ChangeLog from '../changelog/connector-jdbc.md';
| partition_column | String | 否 | - | 并行分区的列名,仅支持数值类型主键,且只能配置一列。 |
| partition_lower_bound | BigDecimal | 否 | - | 扫描的分区列最小值。如果未设置,SeaTunnel 将查询数据库获取最小值。 |
| partition_upper_bound | BigDecimal | 否 | - | 扫描的分区列最大值。如果未设置,SeaTunnel 将查询数据库获取最大值。 |
-| partition_num | Int | 否 | job parallelism | 分区数量,仅支持正整数。默认值是作业并行数。 |
+| partition_num | Int | 否 | 10 | 分区数量,仅支持正整数。默认值是 10。 |
| fetch_size | Int | 否 | 0 | 对于返回大量行的查询,可配置 JDBC 一次获取的行数,通过减少访问数据库的次数来提升性能。`0` 表示使用 JDBC 驱动默认。 |
| common-options | | 否 | - | 源插件常用参数,请参考 [源通用选项](../common-options/source-common-options.md)。 |
| use_kerberos | Boolean | 否 | false | 是否启用 Kerberos 认证。 |
diff --git a/docs/zh/connectors/source/Kafka.md b/docs/zh/connectors/source/Kafka.md
index c5f65c1ffc..73572e04be 100644
--- a/docs/zh/connectors/source/Kafka.md
+++ b/docs/zh/connectors/source/Kafka.md
@@ -68,6 +68,7 @@ header 字段和事件时间元数据。
| schema | Config | 否 | - | 数据结构,包括字段名称和字段类型。更多详情请参考 [Schema 特性](../../introduction/concepts/schema-feature.md)。 |
| format | String | 否 | json | 数据格式。默认格式为 json。可选格式包括 text, canal_json, debezium_json, ogg_json, maxwell_json, avro , protobuf和native。默认字段分隔符为 ", "。如果自定义分隔符,添加 "field_delimiter" 选项。如果使用 canal 格式,请参考 [canal-json](../formats/canal-json.md) 了解详细信息。如果使用 debezium 格式,请参考 [debezium-json](../formats/debezium-json.md)。一些Format的详细信息请参考 [formats](../formats) |
| avro_schema | String | 否 | - | 当 `format` 为 `avro` 时生效。用于提供二进制 Avro 消息的 writer schema,适用于消息的 record 名称、namespace 或 union 结构与 SeaTunnel schema 不完全一致的场景。 |
+| value_converter_schema_enabled | Boolean | 否 | true | 仅在 `format = compatible_kafka_connect_json` 时生效。Kafka Connect value 转换后的 JSON 载荷是否携带 schema。 |
| format_error_handle_way | String | 否 | fail | 数据格式错误的处理方式。默认值为 fail,可选值为 fail 和 skip。当选择 fail 时,数据格式错误将阻塞并抛出异常。当选择 skip 时,数据格式错误将跳过此行数据。 |
| debezium_record_include_schema | Boolean | 否 | true | 当 `format` 为 `debezium_json` 时生效,用于说明 Debezium 记录中是否携带 schema 信息。 |
| debezium_record_table_filter | Config | 否 | - | 用于过滤 debezium 格式的数据,仅当格式设置为 `debezium_json` 时使用。请参阅下面的 `debezium_record_table_filter` |
@@ -580,7 +581,6 @@ source {
start_mode = "earliest"
format_error_handle_way = skip
format = "NATIVE"
- value_converter_schema_enabled = false
consumer.group = "native_group"
}
}
@@ -719,7 +719,7 @@ transform {
### Kafka Source 支持哪些消息格式?
-支持:`json`、`text`、`canal_json`、`debezium_json`、`ogg_json`、`avro`、`protobuf` 和 `NATIVE`。当需要将 Kafka 元数据(headers、key、partition、timestamp)作为记录字段使用时,选择 `NATIVE` 格式。
+支持:`json`、`text`、`canal_json`、`debezium_json`、`maxwell_json`、`ogg_json`、`avro`、`protobuf`、`compatible_kafka_connect_json` 和 `NATIVE`。当需要将 Kafka 元数据(headers、key、partition、timestamp)作为记录字段使用时,选择 `NATIVE` 格式。
`format = avro` 默认读取原始 Avro 二进制消息。对于由 Confluent `KafkaAvroSerializer` 写入的消息,请设置 `strip_schema_registry_header = true` 并提供 `avro_schema`。连接器通过开头的 magic byte 检测并剥离固定的 5 字节线上格式头(magic byte `0` 加 4 字节 schema ID)后再解码,不会查询 Schema Registry。该选项默认关闭,关闭时原始 Avro 行为保持不变。
diff --git a/docs/zh/connectors/source/Kingbase.md b/docs/zh/connectors/source/Kingbase.md
index c8d99d658a..60ca34dd99 100644
--- a/docs/zh/connectors/source/Kingbase.md
+++ b/docs/zh/connectors/source/Kingbase.md
@@ -68,7 +68,7 @@ import ChangeLog from '../changelog/connector-jdbc.md';
| partition_column | String | 否 | - | 用于并行性分割的列名,仅支持数值类型列和字符串类型列。 |
| partition_lower_bound | BigDecimal | 否 | - | partition_column 的最小值用于扫描,如果未设置,SeaTunnel 将查询数据库获取最小值。 |
| partition_upper_bound | BigDecimal | 否 | - | partition_column 的最大值用于扫描,如果未设置,SeaTunnel 将查询数据库获取最大值。 |
-| partition_num | Int | 否 | job parallelism | 分割数量,仅支持正整数。默认值是任务并行度。 |
+| partition_num | Int | 否 | 10 | 分割数量,仅支持正整数。默认值是 10。 |
| fetch_size | Int | 否 | 0 | 对于返回大量对象的查询,您可以配置查询中使用的行提取大小,以通过减少满足选择条件所需的数据库命中次数来提高性能。零表示使用 jdbc 默认值。 |
| use_regex | Boolean | 否 | false | 控制表路径的正则表达式匹配。当设置为true时,table_path 将被视为正则表达式模式。当设置为false或未指定时,table_path 将被视为精确路径(不进行正则匹配)。 |
| table_path | String | 否 | - | 表的完整路径,您可以使用此配置代替 `query`。<br/>示例:<br/>"testdb.table1" |
diff --git a/docs/zh/connectors/source/MySQL-CDC.md b/docs/zh/connectors/source/MySQL-CDC.md
index 84d610fd9f..a77357c276 100644
--- a/docs/zh/connectors/source/MySQL-CDC.md
+++ b/docs/zh/connectors/source/MySQL-CDC.md
@@ -204,9 +204,10 @@ show variables where variable_name in ('log_bin', 'binlog_format', 'binlog_row_i
| stop.specific-offset.pos | Long | 否 | - | 从指定的binlog日志文件位置停止. **注意, 当使用 `stop.mode` 选项为 `specific` 时,此选项为必填项.** |
| snapshot.split.size | Integer | 否 | 8096 | 表快照的分割大小(行数),读取表的快照时,被捕获的表会被分割成多个分割块. |
| snapshot.fetch.size | Integer | 否 | 1024 | 每次轮询读取表快照时的最大获取大小. |
+| incremental.parallelism | Integer | 否 | 1 | 增量(binlog)阶段并行读取器的数量. |
| server-id | String | 否 | - | 此 CDC 读取器使用的数字 ID 或数字 ID 范围,例如 `5400` 或 `5400-5408`。每个 ID 在 MySQL 集群中必须唯一。当任务有多个读取并发或并行读取多张表时,请配置足够大的 ID 范围。未配置时 SeaTunnel 会随机生成 ID,但生产环境建议显式配置。 |
-| server-time-zone | String | 否 | UTC | 数据库服务中的会话时区. 如果没设置, 使用 ZoneId.systemDefault() 来确定服务的时区. |
-| connect.timeout.ms | Duration | 否 | 30000 | 连接器在尝试连接数据库服务器后,在超时之前应等待的最长时间. |
+| server-time-zone | String | 否 | - | 数据库服务中的会话时区. 如果没设置, 使用 ZoneId.systemDefault() 来确定服务的时区. |
+| connect.timeout.ms | Long | 否 | 30000 | 连接器在尝试连接数据库服务器后,在超时之前应等待的最长时间. |
| connect.max-retries | Integer | 否 | 3 | 连接器在构建数据库服务器连接时应重试的最大重试次数. |
| connection.pool.size | Integer | 否 | 20 | jdbc连接池大小. |
| chunk-key.even-distribution.factor.upper-bound | Double | 否 | 100 | 块键分布因子的上限. 该因子用于确定表数据是否分布均匀. 如果分布式因子计算结果小于或等于此上限 (即., (MAX(id) - MIN(id) + 1) / row count), 表的分块将被优化以实现均匀分布. 否则, 如果分布因子大于此上限, 该表将被视为分布不均, 并且如果估计的分片数量超过 `sample-sharding.threshold` 所指定的值, 则将使用基于采样的分片策略. 默认值是100.0. |
diff --git a/docs/zh/connectors/source/Opengauss-CDC.md b/docs/zh/connectors/source/Opengauss-CDC.md
index 6ac3046edd..84a59eb90b 100644
--- a/docs/zh/connectors/source/Opengauss-CDC.md
+++ b/docs/zh/connectors/source/Opengauss-CDC.md
@@ -78,10 +78,12 @@ select 'ALTER TABLE ' || schemaname || '.' || tablename || ' REPLICA IDENTITY FU
| stop.mode | 枚举 | 否 | NEVER | Opengauss CDC 消费者的可选停止模式。唯一有效的枚举值是 `never`:一旦进入增量阶段,数据源会持续读取 WAL 变更,不会自行停止。 |
| snapshot.split.size | 整型 | 否 | 8096 | 表快照的分割大小(行数),在读取表的快照时,捕获的表被分割成多个split |
| snapshot.fetch.size | 整型 | 否 | 1024 | 读取表快照时,每次轮询的最大读取大小 |
+| incremental.parallelism | 整型 | 否 | 1 | 增量阶段并行读取器的数量 |
+| enable_concurrent_read | 布尔 | 否 | true | 快照阶段是否启用分片并发读取。设置为 false 时,源会以单个分片读取表,不做分片分析,适用于没有索引的表 |
| slot.name | 字符串 | 否 | seatunnel | Opengauss 逻辑解码槽名称。同一个 Opengauss 实例上如果有多个 CDC 任务,请为每个任务配置不同的 `slot.name`。 |
| decoding.plugin.name | 字符串 | 否 | pgoutput | 安装在服务器上的Postgres逻辑解码插件的名称,支持的值是decoderbufs、wal2json、wal2json_rds、wal2json_streaming、wal2json_rds_streaming和pgoutput |
-| server-time-zone | 字符串 | 否 | UTC | 数据库服务器中的会话时区。如果没有设置,则使用ZoneId.systemDefault()来确定服务器的时区 |
-| connect.timeout.ms | 时间间隔 | 否 | 30000 | 在尝试连接数据库服务器之后,连接器在超时之前应该等待的最大时间 |
+| server-time-zone | 字符串 | 否 | - | 数据库服务器中的会话时区。如果没有设置,则使用ZoneId.systemDefault()来确定服务器的时区 |
+| connect.timeout.ms | Long | 否 | 30000 | 在尝试连接数据库服务器之后,连接器在超时之前应该等待的最大时间 |
| connect.max-retries | 整型 | 否 | 3 | 连接器在建立数据库服务器连接时应该重试的最大次数 |
| connection.pool.size | 整型 | 否 | 20 | jdbc连接池的大小 |
| chunk-key.even-distribution.factor.upper-bound | 双浮点型 | 否 | 100 | chunk的key分布因子的上界。该因子用于确定表数据是否均匀分布。如果分布因子被计算为小于或等于这个上界(即(MAX(id) - MIN(id) + 1) /行数),表的所有chunk将被优化以达到均匀分布。否则,如果分布因子更大,则认为表分布不均匀,如果估计的分片数量超过`sample-sharding.threshold`指定的值,则将使用基于采样的分片策略。默认值为100.0。 |
diff --git a/docs/zh/connectors/source/Oracle-CDC.md b/docs/zh/connectors/source/Oracle-CDC.md
index 1313323df2..37396fa0f5 100644
--- a/docs/zh/connectors/source/Oracle-CDC.md
+++ b/docs/zh/connectors/source/Oracle-CDC.md
@@ -237,8 +237,8 @@ exit;
| stop.mode | Enum | 否 | NEVER | Oracle CDC 使用者的可选停止模式。当前唯一有效值是 `never`,因此流式 Oracle CDC source 会一直运行,直到任务被停止。 [...]
| snapshot.split.size | Integer | 否 | 8096 | 表快照的拆分大小(行数),在读取表快照时,捕获的表将被拆分为多个拆分块。 [...]
| snapshot.fetch.size | Integer | 否 | 1024 | 读取表快照时每次轮询的最大获取大小。 [...]
-| server-time-zone | String | 否 | UTC | 数据库服务器中的会话时区。如果未设置,则使用 ZoneId.systemDefault() 来确定服务器时区。该参数也用于将 `startup.timestamp` 转换为 SCN。若数据库时区与 JVM 时区不同,建议显式配置。 [...]
-| connect.timeout.ms | Duration | 否 | 30000 | 连接器在尝试连接数据库服务器后超时的最大等待时间。 [...]
+| server-time-zone | String | 否 | - | 数据库服务器中的会话时区。如果未设置,则使用 ZoneId.systemDefault() 来确定服务器时区。该参数也用于将 `startup.timestamp` 转换为 SCN。若数据库时区与 JVM 时区不同,建议显式配置。 [...]
+| connect.timeout.ms | Long | 否 | 30000 | 连接器在尝试连接数据库服务器后超时的最大等待时间。 [...]
| connect.max-retries | Integer | 否 | 3 | 连接器尝试建立数据库服务器连接的最大重试次数。 [...]
| connection.pool.size | Integer | 否 | 20 | JDBC 连接池大小。 [...]
| incremental.parallelism | Integer | 否 | 1 | 全量快照阶段结束、进入增量日志读取后使用的并行读取数量。 [...]
@@ -257,30 +257,6 @@ exit;
| schema-changes.exclude | List | 否 | - | 此处列出的 schema change 事件类型不会发送到下游。在 `schema-changes.include` 之后应用;冲突时 exclude 优先。详见 [Schema change 事件过滤](#schema-change-事件过滤)。 [...]
| debezium | Config | 否 | - | 透传 [Debezium 属性](https://github.com/debezium/debezium/blob/v1.9.8.Final/documentation/modules/ROOT/pages/connectors/oracle.adoc#connector-properties) 给 Debezium Embedded Engine,该引擎用于捕获 Oracle 服务器的数据更改。 [...]
| common-options | | 否 | - | 源端插件常用参数,详情请参阅 [源端常用选项](../common-options/source-common-options.md)。 [...]
-| decimal_type_narrowing | Boolean | 否 | true | 数值类型收缩,如果为 true,则在不损失精度的情况下,将 decimal 类型收缩为 int 或 long 类型。目前仅支持 Oracle。请参阅下文的 `decimal_type_narrowing`。 [...]
-
-
-### decimal_type_narrowing
-
-数值类型收缩,如果为 true,则在不损失精度的情况下,将 decimal 类型收缩为 int 或 long 类型。目前仅支持 Oracle。
-
-例如:
-
-decimal_type_narrowing = true
-
-| Oracle | SeaTunnel |
-|---------------|-----------|
-| NUMBER(1, 0) | Boolean |
-| NUMBER(6, 0) | INT |
-| NUMBER(10, 0) | BIGINT |
-
-decimal_type_narrowing = false
-
-| Oracle | SeaTunnel |
-|---------------|----------------|
-| NUMBER(1, 0) | Decimal(1, 0) |
-| NUMBER(6, 0) | Decimal(6, 0) |
-| NUMBER(10, 0) | Decimal(10, 0) |
## 任务示例
diff --git a/docs/zh/connectors/source/Oracle.md b/docs/zh/connectors/source/Oracle.md
index db98f4eb2b..fd66bbbaac 100644
--- a/docs/zh/connectors/source/Oracle.md
+++ b/docs/zh/connectors/source/Oracle.md
@@ -74,7 +74,7 @@ import ChangeLog from '../changelog/connector-jdbc.md';
| partition_column | String | 否 | - | 用于并行性分割的列名,仅支持数值类型,仅支持数值类型主键,只能配置一列。 |
| partition_lower_bound | BigDecimal | 否 | - | partition_column 的最小值用于扫描,如果未设置,SeaTunnel 将查询数据库获取最小值。 |
| partition_upper_bound | BigDecimal | 否 | - | partition_column 的最大值用于扫描,如果未设置,SeaTunnel 将查询数据库获取最大值。 |
-| partition_num | Int | 否 | job parallelism | 分割数量,仅支持正整数。默认值是任务并行度。 |
+| partition_num | Int | 否 | 10 | 分割数量,仅支持正整数。默认值是 10。 |
| fetch_size | Int | 否 | 0 | 对于返回大量对象的查询,您可以配置查询中使用的行提取大小,以通过减少满足选择条件所需的数据库命中次数来提高性能。零表示使用 jdbc 默认值。 |
| properties | Map | 否 | - | 其他连接配置参数,当 properties 和 URL 具有相同参数时,优先级由驱动程序的具体实现确定。例如,在 Oracle 中,properties 优先于 URL。 |
| use_regex | Boolean | 否 | false | 控制 table_path 的正则表达式匹配。设置为 `true` 时,table_path 将被视为正则表达式模式。设置为 `false` 或未指定时,table_path 将被视为精确路径(无正则表达式匹配)。 |
@@ -168,7 +168,7 @@ JDBC Source 连接器支持并行读取表数据。SeaTunnel 会按一定规则
> 不推荐修改,推荐使用 `split.size` 控制分片大小。
-将数据拆分为多少个分片,仅支持正整数。默认等于任务并行度。
+将数据拆分为多少个分片,仅支持正整数。默认值为 10。
## 提示
diff --git a/docs/zh/connectors/source/Snowflake.md b/docs/zh/connectors/source/Snowflake.md
index 09c1483fe4..82bb055975 100644
--- a/docs/zh/connectors/source/Snowflake.md
+++ b/docs/zh/connectors/source/Snowflake.md
@@ -76,7 +76,7 @@ import ChangeLog from '../changelog/connector-jdbc.md';
### 小贴士
-> 不配置 `partition_column` 时,源端按单拆分读取;配置后,SeaTunnel 会按 `partition_num`(默认 10)和作业并行度两者中较大的值并行读取。
+> 不配置 `partition_column` 时,源端按单拆分读取;配置后,SeaTunnel 会创建 `partition_num` 个拆分(默认 10)并分发给读取器;如需每个读取器处理一个拆分,请将 `partition_num` 设置为不小于作业并行度。
>
> Snowflake JDBC URL 参数(如 `GEOGRAPHY_OUTPUT_FORMAT`)可通过 `?` 直接追加,示例:`?GEOGRAPHY_OUTPUT_FORMAT='EWKT'`。完整可配置参数及地理空间类型请参考 Snowflake [Geospatial Data Types](https://docs.snowflake.com/en/sql-reference/data-types-geospatial)。