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-13436-7b142da361aba7ec0a65edd5b5463e0040cc21c9 in repository https://gitbox.apache.org/repos/asf/seatunnel.git
commit b8f2b0bc24946409f1b982a942ba24c642463f65 Author: Jast <[email protected]> AuthorDate: Wed Nov 25 11:56:11 2026 +0000 [Docs] Fix connector and transform documentation inaccuracies verified against source code (#13436) Co-authored-by: zhangshenghang <[email protected]> Co-authored-by: jast <[email protected]> --- docs/en/connectors/sink/Doris.md | 2 +- docs/en/connectors/sink/Iceberg.md | 18 +++++++++++++++++- docs/en/connectors/sink/Kafka.md | 2 +- docs/en/connectors/source/Doris.md | 4 ++-- docs/en/connectors/source/MongoDB.md | 29 +++++++++++++---------------- docs/en/connectors/source/Socket.md | 3 ++- docs/en/transforms/field-rename.md | 2 +- docs/en/transforms/filter.md | 2 +- docs/en/transforms/regexextract.md | 4 ++-- docs/en/transforms/split.md | 2 +- docs/zh/connectors/sink/Doris.md | 8 +++++--- docs/zh/connectors/sink/Iceberg.md | 16 ++++++++++++++++ docs/zh/connectors/source/Doris.md | 4 ++-- docs/zh/connectors/source/MongoDB.md | 28 ++++++++++++---------------- docs/zh/connectors/source/Socket.md | 2 +- docs/zh/transforms/field-rename.md | 2 +- docs/zh/transforms/filter.md | 2 +- docs/zh/transforms/regexextract.md | 4 ++-- docs/zh/transforms/split.md | 2 +- 19 files changed, 82 insertions(+), 54 deletions(-) diff --git a/docs/en/connectors/sink/Doris.md b/docs/en/connectors/sink/Doris.md index 18cc768f91..98d2116f31 100644 --- a/docs/en/connectors/sink/Doris.md +++ b/docs/en/connectors/sink/Doris.md @@ -69,7 +69,7 @@ The internal implementation of Doris sink connector is cached and imported by st | custom_sql | String | no | - | When data_save_mode selects CUSTOM_PROCESSING, you should fill in the CUSTOM_SQL parameter. This parameter usually fills in a SQL that can be executed. SQL will be executed before synchronization tasks. | | default-database | String | no | information_schema | The database used by the Doris catalog when it opens the JDBC connection (`query-port`) for save mode operations such as creating tables. | | multi_table_sink_replica | int | no | 1 | The number of sink writer replicas per table in a multi-table job. Must be at least 1. | -| doris.config | map | yes | - | Stream Load data description parameters passed to Doris. The most common keys are `format` (`json` or `csv`), `read_json_by_line` (`true`/`false`), `column_separator`, `row_delimiter`, and `partitions`. See the Doris Stream Load documentation for the full key set. | +| doris.config | map | yes | - | Stream Load data description parameters passed to Doris. The most common keys are `format` (`json` or `csv`), `read_json_by_line` (`true`/`false`), `column_separator`, `line_delimiter`, and `partitions`. See the Doris Stream Load documentation for the full key set. | ## Redirect Behavior diff --git a/docs/en/connectors/sink/Iceberg.md b/docs/en/connectors/sink/Iceberg.md index a7cc970d3e..8fe0d4ab52 100644 --- a/docs/en/connectors/sink/Iceberg.md +++ b/docs/en/connectors/sink/Iceberg.md @@ -77,7 +77,7 @@ Writing into an existing format version 3 table also accepts `TIMESTAMP_NS` and | iceberg.catalog.config | map | yes | - | Specify the properties for initializing the Iceberg catalog, which can be referenced in this file: [CatalogProperties.java](https://github.com/apache/iceberg/blob/main/core/src/main/java/org/apache/iceberg/CatalogProperties.java) | | hadoop.config | map | no | - | Properties passed through to the Hadoop configuration | | iceberg.hadoop-conf-path | string | no | - | The specified loading paths for the 'core-site.xml', 'hdfs-site.xml', 'hive-site.xml' files. | -| case_sensitive | boolean | no | false | If data columns where selected via schema [config], controls whether the match to the schema will be done with case sensitivity. | +| case_sensitive | boolean | no | false | Controls whether column name matching is done case-sensitively. | | iceberg.table.write-props | map | no | - | Properties passed through to Iceberg writer initialization, these take precedence, such as 'write.format.default', 'write.target-file-size-bytes', and other settings, can be found with specific parameters at [TableProperties.java](https://github.com/apache/iceberg/blob/main/core/src/main/java/org/apache/iceberg/TableProperties.java). | | iceberg.table.auto-create-props | map | no | - | Configuration specified by Iceberg during automatic table creation. | | iceberg.table.schema-evolution-enabled | boolean | no | false | Setting to true enables Iceberg tables to support schema evolution during the synchronization process | @@ -153,6 +153,22 @@ sink { } ``` +### schema_save_mode [Enum] + +Before the sink starts writing, controls how the target table schema is handled. +- `RECREATE_SCHEMA` : Drop the target table if it exists, and then recreate it. +- `CREATE_SCHEMA_WHEN_NOT_EXIST` : Create the target table if it does not exist, or skip creation if it exists. +- `ERROR_WHEN_SCHEMA_NOT_EXIST` : Throw an error if the target table does not exist. +- `IGNORE` : Ignore schema handling and do not perform any schema-related checks or DDL actions. + +### data_save_mode [Enum] + +Before the sink starts writing, controls how existing data in the target table is handled. +- `DROP_DATA` : Delete existing data in the target table. +- `APPEND_DATA` : Keep existing data in the target table and append new data. +- `CUSTOM_PROCESSING` : Execute user-defined processing. This option requires the `custom_sql` option. +- `ERROR_WHEN_DATA_EXISTS` : Throw an error if the target table already contains data. + ### custom_sql [string] When `data_save_mode = CUSTOM_PROCESSING`, configure the `delete` SQL that removes the target data before the sink writes. This option is required in that mode. diff --git a/docs/en/connectors/sink/Kafka.md b/docs/en/connectors/sink/Kafka.md index ac9efc4f7e..0320c9642d 100644 --- a/docs/en/connectors/sink/Kafka.md +++ b/docs/en/connectors/sink/Kafka.md @@ -64,7 +64,7 @@ They can be downloaded via install-plugin.sh or from the Maven central repositor | partition | Int | No | - | We can specify the partition, all messages will be sent to this partition. [...] | assign_partitions | Array | No | - | We can decide which partition to send based on the content of the message. The function of this parameter is to distribute information. [...] | transaction_prefix | String | No | - | If `semantics` is `EXACTLY_ONCE`, the producer writes messages in Kafka transactions. Kafka distinguishes transactions by transaction id, so use a different prefix for each job. | -| format | String | No | json | Data format. The default format is json. Optional text, canal_json, debezium_json, compatible_debezium_json, ogg_json, maxwell_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](../formats/canal-json.md) for details.If you use debezium format, please refer to [debez [...] +| format | String | No | json | Data format. The default format is json. Optional text, canal_json, debezium_json, compatible_debezium_json, ogg_json, maxwell_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](../formats/canal-json.md) for details.If you use debezium format, please refer to [debezi [...] | field_delimiter | String | No | , | Customize the field delimiter for data format. [...] | common-options | | No | - | Sink plugin common parameters, please refer to [Sink Common Options](../common-options/sink-common-options.md) for details [...] | protobuf_message_name | String | No | - | Effective when the format is set to protobuf, specifies the Message name [...] diff --git a/docs/en/connectors/source/Doris.md b/docs/en/connectors/source/Doris.md index aedba9c302..e51892fabe 100644 --- a/docs/en/connectors/source/Doris.md +++ b/docs/en/connectors/source/Doris.md @@ -48,9 +48,9 @@ Used to read data from Apache Doris. | TINYINT | TINYINT | | SMALLINT | SMALLINT | | BIGINT | BIGINT | -| LARGEINT | STRING | +| LARGEINT | DECIMAL(20,0) | | BOOLEAN | BOOLEAN | -| DECIMAL | DECIMAL((Get the designated column's specified column size)+1,<br/>(Gets the designated column's number of digits to right of the decimal point.))) | +| DECIMAL | DECIMAL(p, s), where `p` is the column precision and `s` is the column scale; when the column does not define them, DECIMAL(38, 10) is used. On Doris 1.2.x a defined scale of 0 also falls back to 10. | | FLOAT | FLOAT | | DOUBLE | DOUBLE | | CHAR<br/>VARCHAR<br/>STRING<br/>TEXT | STRING | diff --git a/docs/en/connectors/source/MongoDB.md b/docs/en/connectors/source/MongoDB.md index 683442e950..4dc7347d05 100644 --- a/docs/en/connectors/source/MongoDB.md +++ b/docs/en/connectors/source/MongoDB.md @@ -14,7 +14,7 @@ import ChangeLog from '../changelog/connector-mongodb.md'; - [x] [batch](../../introduction/concepts/connector-v2-features.md) - [ ] [stream](../../introduction/concepts/connector-v2-features.md) -- [x] [exactly-once](../../introduction/concepts/connector-v2-features.md) +- [ ] [exactly-once](../../introduction/concepts/connector-v2-features.md) - [x] [column projection](../../introduction/concepts/connector-v2-features.md) - [x] [parallelism](../../introduction/concepts/connector-v2-features.md) - [x] [support user-defined split](../../introduction/concepts/connector-v2-features.md) @@ -355,7 +355,10 @@ sink { } ``` -A sample document that flows through this configuration looks like the following: +A sample document that flows through this configuration looks like the following. The whole +document is serialized with MongoDB Relaxed Extended JSON: int32/int64/double values are +rendered as plain JSON numbers and dates as ISO-8601 strings, while `Decimal128` values keep +their `{"$numberDecimal": ...}` wrapper: ```json { @@ -369,24 +372,18 @@ A sample document that flows through this configuration looks like the following "DAgdj": "t", "dsJag": "voo" }, - "c_array": [ - { "$numberInt": "-865590937" }, - { "$numberInt": "833905600" }, - { "$numberInt": "-1104586446" }, - { "$numberInt": "2076336780" }, - { "$numberInt": "-1028686444" } - ], + "c_array": [-865590937, 833905600, -1104586446, 2076336780, -1028686444], "c_string": "bddkzxr", "c_boolean": false, - "c_tinyint": { "$numberInt": "39" }, - "c_smallint": { "$numberInt": "23672" }, - "c_int": { "$numberInt": "-495763561" }, - "c_bigint": { "$numberLong": "3768307617923954543" }, - "c_double": { "$numberDouble": "1.1706091642478246E308" }, + "c_tinyint": 39, + "c_smallint": 23672, + "c_int": -495763561, + "c_bigint": 3768307617923954543, + "c_double": 1.1706091642478246E308, "c_bytes": { "$binary": { "base64": "ZWJ4", "subType": "00" } }, - "c_date": { "$date": { "$numberLong": "1686614400000" } }, + "c_date": { "$date": "2023-06-13T00:00:00Z" }, "c_decimal": { "$numberDecimal": "683265300" }, - "c_timestamp": { "$date": { "$numberLong": "1684283772000" } } + "c_timestamp": { "$date": "2023-05-17T00:36:12Z" } } ``` diff --git a/docs/en/connectors/source/Socket.md b/docs/en/connectors/source/Socket.md index 446d330df5..afa421987d 100644 --- a/docs/en/connectors/source/Socket.md +++ b/docs/en/connectors/source/Socket.md @@ -26,7 +26,8 @@ becomes one SeaTunnel row of type `STRING`. In streaming mode the source stays c socket and reads lines as they arrive; in batch mode the reader performs a single read of whatever data is currently available on the socket, emits any complete newline-terminated lines from that read (plus any trailing partial line as a final row), and then finishes — it does not wait for the -connection to close and there is no read-timeout setting. +connection to close, and it does not rely on a read timeout to finish (`read_timeout_ms` defaults +to `0`, i.e. no application-level read timeout is applied). The connector uses a single split (source parallelism is fixed at 1). `host` and `port` refer to the *server* endpoint that SeaTunnel connects to; configure a sink, transformer, or peer like `nc -l` diff --git a/docs/en/transforms/field-rename.md b/docs/en/transforms/field-rename.md index 632e4f4835..a7aed14cba 100644 --- a/docs/en/transforms/field-rename.md +++ b/docs/en/transforms/field-rename.md @@ -31,7 +31,7 @@ The FieldRename transform renames the columns of a table without changing the ta | replacements_with_regex | Array<Map> | no | - | Replacement rules. Each entry contains `replace_from`, `replace_to`, and optional `is_regex` (default `true`). | | specific | Array<Map> | no | - | Explicit rename rules. Each entry contains `field_name` and `target_name`. A matching rule wins over all other rename options. | | table_match_regex | String | no | `.*` | Regex of the table paths that the transform level rule applies to. | -| table_transform | Array<Map> | no | - | Per-table rules, see [Multi-Table Transform](transform-multi-table.md). | +| table_transform | Array<Map> | no | `[]` | Per-table rules, see [Multi-Table Transform](transform-multi-table.md). | | rule_match_mode | String | no | `FIRST_MATCH` | How multiple `table_transform` entries with the same `table_path` are evaluated. | | common options | - | no | - | Transform plugin common parameters, see [Transform Plugin](common-options/common-options.md). | diff --git a/docs/en/transforms/filter.md b/docs/en/transforms/filter.md index ad1f135220..8d9da9192c 100644 --- a/docs/en/transforms/filter.md +++ b/docs/en/transforms/filter.md @@ -26,7 +26,7 @@ The Filter transform decides which fields of a table are passed to the next step | include_fields | Array<String> | no | - | Fields to keep. All other fields are removed. Mutually exclusive with `exclude_fields`. | | exclude_fields | Array<String> | no | - | Fields to remove. All other fields are kept. Mutually exclusive with `include_fields`. | | table_match_regex | String | no | `.*` | Regex of the table paths that the transform level rule applies to. | -| table_transform | Array<Map> | no | - | Per-table rules, see [Multi-Table Transform](transform-multi-table.md). | +| table_transform | Array<Map> | no | `[]` | Per-table rules, see [Multi-Table Transform](transform-multi-table.md). | | rule_match_mode | String | no | `FIRST_MATCH` | How multiple `table_transform` entries with the same `table_path` are evaluated. | | common options | - | no | - | Transform plugin common parameters, see [Transform Plugin](common-options/common-options.md). | diff --git a/docs/en/transforms/regexextract.md b/docs/en/transforms/regexextract.md index 91a3c15981..8e7370327a 100644 --- a/docs/en/transforms/regexextract.md +++ b/docs/en/transforms/regexextract.md @@ -29,7 +29,7 @@ The RegexExtract transform uses a Java regular expression to extract data from o | output_fields | Array<String> | yes | - | Names of the output fields, in capture group order. The list must not be empty. | | default_values | Array<String> | no | - | Default value per output field, used when the pattern does not match or the source value is null. When set, its length must equal the length of `output_fields`. | | table_match_regex | String | no | `.*` | Regex of the table paths that the transform level rule applies to. | -| table_transform | Array<Map> | no | - | Per-table rules, see [Multi-Table Transform](transform-multi-table.md). | +| table_transform | Array<Map> | no | `[]` | Per-table rules, see [Multi-Table Transform](transform-multi-table.md). | | rule_match_mode | String | no | `FIRST_MATCH` (duplicate `table_path` entries are rejected unless set explicitly) | How multiple `table_transform` entries with the same `table_path` are evaluated. | | common options | - | no | - | Transform plugin common parameters, see [Transform Plugin](common-options/common-options.md). | @@ -96,7 +96,7 @@ When the upstream source outputs several tables (for example JDBC or MySQL-CDC), - Entries in `table_transform` take precedence over the transform level rule. A table that has an entry is never touched by the transform level rule. - Every entry must be a complete single-table rule (`table_path` plus `source_field`, `regex_pattern` and `output_fields`). -- The transform level rule applies only to tables matching `table_match_regex`. +- The transform level rule applies only to tables matching `table_match_regex`; with the default `.*` it applies to every table that does not have a `table_transform` entry. - When only `table_transform` is configured, the tables without an entry stay unchanged. The configuration below uses a transform level rule for `test.a.*` tables, a per-table rule for `test.xyz`, and leaves `test.www` unchanged: diff --git a/docs/en/transforms/split.md b/docs/en/transforms/split.md index 414669ed42..ad74581037 100644 --- a/docs/en/transforms/split.md +++ b/docs/en/transforms/split.md @@ -28,7 +28,7 @@ The Split transform splits one input field into several output fields. The input | split_field | String | yes | - | Input field to split. It must exist in the input table. | | output_fields | Array<String> | yes | - | Names of the output fields, in order. The list must not be empty. | | table_match_regex | String | no | `.*` | Regex of the table paths that the transform level rule applies to. | -| table_transform | Array<Map> | no | - | Per-table rules, see [Multi-Table Transform](transform-multi-table.md). | +| table_transform | Array<Map> | no | `[]` | Per-table rules, see [Multi-Table Transform](transform-multi-table.md). | | rule_match_mode | String | no | `FIRST_MATCH` (duplicate `table_path` entries are rejected unless set explicitly) | How multiple `table_transform` entries with the same `table_path` are evaluated. | | common options | - | no | - | Transform plugin common parameters, see [Transform Plugin](common-options/common-options.md). | diff --git a/docs/zh/connectors/sink/Doris.md b/docs/zh/connectors/sink/Doris.md index 52ab38e39f..1ed5d2e58f 100644 --- a/docs/zh/connectors/sink/Doris.md +++ b/docs/zh/connectors/sink/Doris.md @@ -69,7 +69,7 @@ Doris Sink连接器的内部实现是通过stream load批量缓存和导入的 | custom_sql | String | no | - | 当data_save_mode选择CUSTOM_PROCESSING时,需要填写CUSTOM_SQL参数。 该参数通常填写一条可以执行的SQL。 SQL将在同步任务之前执行。 | | default-database | String | no | information_schema | Doris catalog 在执行建表等 save mode 操作时,通过 `query-port` 建立 JDBC 连接所使用的数据库。 | | multi_table_sink_replica | int | no | 1 | 多表写入作业中每张表使用的写入器副本数,最小为 1。 | -| doris.config | map | yes | - | 传递给 Doris Stream Load 的数据描述参数。常用参数包括 `format`、`read_json_by_line`、`column_separator`、`row_delimiter` 和 `partitions`。 | +| doris.config | map | yes | - | 传递给 Doris Stream Load 的数据描述参数。常用参数包括 `format`、`read_json_by_line`、`column_separator`、`line_delimiter` 和 `partitions`。 | ## Redirect 行为说明 @@ -694,8 +694,10 @@ Doris 通过 Stream Load label 去重,防止重复提交。开启 2PC 后重 ### Doris 列名是否区分大小写? -请以上面的大小写敏感示例为准。如果上游字段名与 Doris 目标 schema 仍然对不上,应该在 sink 之前先 -做字段规范化,或直接调整目标 schema,而不是依赖并不存在的 `column_mapping` 选项。 +具体行为请以上面的大小写敏感示例为准。默认情况下(`case_sensitive = true`),连接器会保留 +`database` 和 `table` 的原始大小写;设置 `case_sensitive = false` 时,两者会在到达 Doris 之前 +统一转换为小写。如果上游字段名仍然与 Doris 目标 schema 对不上,应在 sink 之前(例如使用 +`Rename` 转换)做字段规范化,或显式调整目标 schema,而不要依赖未经文档支持的选项。 ### Doris Stream Load 使用什么数据格式? diff --git a/docs/zh/connectors/sink/Iceberg.md b/docs/zh/connectors/sink/Iceberg.md index ee1e3a1a8e..64e90129a5 100644 --- a/docs/zh/connectors/sink/Iceberg.md +++ b/docs/zh/connectors/sink/Iceberg.md @@ -155,6 +155,22 @@ sink { } ``` +### schema_save_mode [Enum] + +在 Sink 开始写入之前,控制如何处理目标表的结构。 +- `RECREATE_SCHEMA` :如果目标表存在,则先删除该表然后重新创建;如果不存在则直接创建。 +- `CREATE_SCHEMA_WHEN_NOT_EXIST` :如果目标表不存在则创建它;如果已存在则跳过创建。 +- `ERROR_WHEN_SCHEMA_NOT_EXIST` :如果目标表不存在,则抛出异常并报错。 +- `IGNORE` :忽略目标表结构的处理,不执行任何与结构相关的检查或 DDL 动作。 + +### data_save_mode [Enum] + +在 Sink 开始写入之前,控制如何处理目标表中的已有数据。 +- `DROP_DATA` :删除目标表中的已有数据。 +- `APPEND_DATA` :保留目标表中的已有数据,并将新数据追加写入。 +- `CUSTOM_PROCESSING` :执行用户自定义的处理。此选项需要配合 `custom_sql` 参数。 +- `ERROR_WHEN_DATA_EXISTS` :如果目标表已包含数据,则抛出异常并报错。 + ### custom_sql [string] 当 `data_save_mode = CUSTOM_PROCESSING` 时,配置在 Sink 写入前删除目标数据的 `delete` SQL。该模式下必须配置此选项。 diff --git a/docs/zh/connectors/source/Doris.md b/docs/zh/connectors/source/Doris.md index 016acbd561..9ce1022e04 100644 --- a/docs/zh/connectors/source/Doris.md +++ b/docs/zh/connectors/source/Doris.md @@ -48,9 +48,9 @@ import ChangeLog from '../changelog/connector-doris.md'; | TINYINT | TINYINT | | SMALLINT | SMALLINT | | BIGINT | BIGINT | -| LARGEINT | STRING | +| LARGEINT | DECIMAL(20,0) | | BOOLEAN | BOOLEAN | -| DECIMAL | DECIMAL((Get the designated column's specified column size)+1,<br/>(Gets the designated column's number of digits to right of the decimal point.))) | +| DECIMAL | DECIMAL(p, s),其中 `p` 为列精度、`s` 为列小数位数;当列未定义时使用 DECIMAL(38, 10)。在 Doris 1.2.x 上,定义了 0 位小数位数时同样回退为 10。 | | FLOAT | FLOAT | | DOUBLE | DOUBLE | | CHAR<br/>VARCHAR<br/>STRING<br/>TEXT | STRING | diff --git a/docs/zh/connectors/source/MongoDB.md b/docs/zh/connectors/source/MongoDB.md index 8b1897080c..226053fcad 100644 --- a/docs/zh/connectors/source/MongoDB.md +++ b/docs/zh/connectors/source/MongoDB.md @@ -14,7 +14,7 @@ import ChangeLog from '../changelog/connector-mongodb.md'; - [x] [批](../../introduction/concepts/connector-v2-features.md) - [ ] [流](../../introduction/concepts/connector-v2-features.md) -- [x] [精确一次](../../introduction/concepts/connector-v2-features.md) +- [ ] [精确一次](../../introduction/concepts/connector-v2-features.md) - [x] [列投影](../../introduction/concepts/connector-v2-features.md) - [x] [并行性](../../introduction/concepts/connector-v2-features.md) - [x] [支持用户自定义 split](../../introduction/concepts/connector-v2-features.md) @@ -339,7 +339,9 @@ sink { } ``` -通过该配置写入的样本数据示例: +通过该配置写入的样本数据示例。整个文档使用 MongoDB Relaxed Extended JSON 序列化:int32/int64/double +数值会以普通 JSON 数字输出,日期会以 ISO-8601 字符串输出,而 `Decimal128` 数值保留 +`{"$numberDecimal": ...}` 包装格式: ```json { @@ -353,24 +355,18 @@ sink { "DAgdj": "t", "dsJag": "voo" }, - "c_array": [ - { "$numberInt": "-865590937" }, - { "$numberInt": "833905600" }, - { "$numberInt": "-1104586446" }, - { "$numberInt": "2076336780" }, - { "$numberInt": "-1028686444" } - ], + "c_array": [-865590937, 833905600, -1104586446, 2076336780, -1028686444], "c_string": "bddkzxr", "c_boolean": false, - "c_tinyint": { "$numberInt": "39" }, - "c_smallint": { "$numberInt": "23672" }, - "c_int": { "$numberInt": "-495763561" }, - "c_bigint": { "$numberLong": "3768307617923954543" }, - "c_double": { "$numberDouble": "1.1706091642478246E308" }, + "c_tinyint": 39, + "c_smallint": 23672, + "c_int": -495763561, + "c_bigint": 3768307617923954543, + "c_double": 1.1706091642478246E308, "c_bytes": { "$binary": { "base64": "ZWJ4", "subType": "00" } }, - "c_date": { "$date": { "$numberLong": "1686614400000" } }, + "c_date": { "$date": "2023-06-13T00:00:00Z" }, "c_decimal": { "$numberDecimal": "683265300" }, - "c_timestamp": { "$date": { "$numberLong": "1684283772000" } } + "c_timestamp": { "$date": "2023-05-17T00:36:12Z" } } ``` diff --git a/docs/zh/connectors/source/Socket.md b/docs/zh/connectors/source/Socket.md index d8886e9038..e3ec69c748 100644 --- a/docs/zh/connectors/source/Socket.md +++ b/docs/zh/connectors/source/Socket.md @@ -24,7 +24,7 @@ import ChangeLog from '../changelog/connector-socket.md'; 用于从 Socket 服务端读取按行分隔的文本数据。Socket 中收到的每一行都会成为一条 `STRING` 类型的 SeaTunnel 数据。流处理模式下连接器保持连接持续打开并按行处理;批处理模式下读取器只执行一次 `read`, 将这次读取中已按 `\n` 切分得到的完整行(以及最后一行末尾不完整的部分作为一行)发送出去后即结束—— -它既不会等待对端关闭连接,也没有读取超时设置。 +它既不会等待对端关闭连接,也不依赖读取超时来结束读取(`read_timeout_ms` 默认为 `0`,即不设置应用层读超时)。 该连接器只使用单个 split(Source 并行度固定为 1)。`host`/`port` 指的是 SeaTunnel 要连接的 *服务端* 地址,对端可以是 Sink、Transform,也可以通过 `nc -l` 等工具手动提供。 diff --git a/docs/zh/transforms/field-rename.md b/docs/zh/transforms/field-rename.md index 1625abe2e6..32dd831842 100644 --- a/docs/zh/transforms/field-rename.md +++ b/docs/zh/transforms/field-rename.md @@ -31,7 +31,7 @@ FieldRename 转换用于在不改变表名和行数据的前提下重命名表 | replacements_with_regex | Array<Map> | 否 | - | 替换规则。每个条目包含 `replace_from`、`replace_to` 以及可选的 `is_regex`(默认 `true`)。 | | specific | Array<Map> | 否 | - | 显式重命名规则。每个条目包含 `field_name` 和 `target_name`。匹配后优先于其他所有重命名选项。 | | table_match_regex | String | 否 | `.*` | 转换级别规则所适用的表路径的正则表达式。 | -| table_transform | Array<Map> | 否 | - | 针对单表的规则,参见 [多表转换](transform-multi-table.md)。 | +| table_transform | Array<Map> | 否 | `[]` | 针对单表的规则,参见 [多表转换](transform-multi-table.md)。 | | rule_match_mode | String | 否 | `FIRST_MATCH` | 当多个 `table_transform` 条目的 `table_path` 相同时,决定它们的匹配方式。 | | common options | - | 否 | - | 转换插件的通用参数,参见 [Transform Plugin](common-options/common-options.md)。 | diff --git a/docs/zh/transforms/filter.md b/docs/zh/transforms/filter.md index 156861e8aa..9c5bc1b1d9 100644 --- a/docs/zh/transforms/filter.md +++ b/docs/zh/transforms/filter.md @@ -26,7 +26,7 @@ Filter 转换用于决定表中的哪些字段会传递给下一步。使用 `in | include_fields | Array<String> | 否 | - | 需要保留的字段,其余字段将被删除。与 `exclude_fields` 互斥。 | | exclude_fields | Array<String> | 否 | - | 需要删除的字段,其余字段将被保留。与 `include_fields` 互斥。 | | table_match_regex | String | 否 | `.*` | 转换级别规则所适用的表路径的正则表达式。 | -| table_transform | Array<Map> | 否 | - | 针对单表的规则,参见 [多表转换](transform-multi-table.md)。 | +| table_transform | Array<Map> | 否 | `[]` | 针对单表的规则,参见 [多表转换](transform-multi-table.md)。 | | rule_match_mode | String | 否 | `FIRST_MATCH` | 当多个 `table_transform` 条目的 `table_path` 相同时,决定它们的匹配方式。 | | common options | - | 否 | - | 转换插件的通用参数,参见 [Transform Plugin](common-options/common-options.md)。 | diff --git a/docs/zh/transforms/regexextract.md b/docs/zh/transforms/regexextract.md index 04abb71de0..a98855074c 100644 --- a/docs/zh/transforms/regexextract.md +++ b/docs/zh/transforms/regexextract.md @@ -29,7 +29,7 @@ RegexExtract 转换使用 Java 正则表达式从一个输入字段中提取数 | output_fields | Array<String> | 是 | - | 输出字段的名称,按捕获组顺序排列。列表不能为空。 | | default_values | Array<String> | 否 | - | 每个输出字段的默认值,在模式不匹配或源值为 null 时使用。设置时,其长度必须与 `output_fields` 的长度相等。 | | table_match_regex | String | 否 | `.*` | 转换级别规则所适用的表路径的正则表达式。 | -| table_transform | Array<Map> | 否 | - | 针对单表的规则,参见 [多表转换](transform-multi-table.md)。 | +| table_transform | Array<Map> | 否 | `[]` | 针对单表的规则,参见 [多表转换](transform-multi-table.md)。 | | rule_match_mode | String | 否 | `FIRST_MATCH`(未显式设置时,重复的 `table_path` 条目会被拒绝) | 当多个 `table_transform` 条目的 `table_path` 相同时,决定它们的匹配方式。 | | common options | - | 否 | - | 转换插件的通用参数,参见 [Transform Plugin](common-options/common-options.md)。 | @@ -96,7 +96,7 @@ Java 正则表达式,使用 `java.util.regex.Pattern` 编译。它必须为 `o - `table_transform` 中的条目优先于转换级别规则。有条目的表永远不会被转换级别规则处理。 - 每个条目都必须是一条完整的单表规则(`table_path` 加上 `source_field`、`regex_pattern` 和 `output_fields`)。 -- 转换级别规则仅适用于与 `table_match_regex` 匹配的表。 +- 转换级别规则仅适用于与 `table_match_regex` 匹配的表;使用默认值 `.*` 时,它适用于所有没有 `table_transform` 条目的表。 - 当仅配置了 `table_transform` 时,没有条目的表保持不变。 下面的配置为 `test.a.*` 表使用转换级别规则,为 `test.xyz` 使用单表规则,并让 `test.www` 保持不变: diff --git a/docs/zh/transforms/split.md b/docs/zh/transforms/split.md index f69ba8e0a2..90314b34e3 100644 --- a/docs/zh/transforms/split.md +++ b/docs/zh/transforms/split.md @@ -28,7 +28,7 @@ Split 转换用于把一个输入字段拆分为多个输出字段。输入值 | split_field | String | 是 | - | 需要拆分的输入字段,必须存在于输入表中。 | | output_fields | Array<String> | 是 | - | 输出字段的名称,按顺序排列。列表不能为空。 | | table_match_regex | String | 否 | `.*` | 转换级别规则所适用的表路径的正则表达式。 | -| table_transform | Array<Map> | 否 | - | 针对单表的规则,参见 [多表转换](transform-multi-table.md)。 | +| table_transform | Array<Map> | 否 | `[]` | 针对单表的规则,参见 [多表转换](transform-multi-table.md)。 | | rule_match_mode | String | 否 | `FIRST_MATCH`(未显式设置时,重复的 `table_path` 条目会被拒绝) | 当多个 `table_transform` 条目的 `table_path` 相同时,决定它们的匹配方式。 | | common options | - | 否 | - | 转换插件的通用参数,参见 [Transform Plugin](common-options/common-options.md)。 |
