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-13302-9d958f3ad4f42bab27310e6829986267e7cb4ff5 in repository https://gitbox.apache.org/repos/asf/seatunnel.git
commit 7b142da361aba7ec0a65edd5b5463e0040cc21c9 Author: Jast <[email protected]> AuthorDate: Wed Nov 25 11:55:26 2026 +0000 [Docs] Fix JDBC type mappings, Kingbase support claims and getting-started inaccuracies verified against source code (#13302) --- docs/en/connectors/sink/Cloudberry.md | 2 +- docs/en/connectors/sink/Kingbase.md | 2 +- docs/en/connectors/sink/PostgreSql.md | 4 ++- docs/en/connectors/source/Kingbase.md | 2 +- docs/en/connectors/source/Mysql.md | 4 +-- docs/en/connectors/source/PostgreSQL.md | 1 + docs/en/connectors/source/Vertica.md | 2 +- docs/en/edge-agent/download.md | 2 +- .../locally/quick-start-seatunnel-engine.md | 34 +++++++++++----------- docs/zh/connectors/sink/Aerospike.md | 2 +- docs/zh/connectors/sink/Cloudberry.md | 2 +- docs/zh/connectors/sink/Kingbase.md | 2 +- docs/zh/connectors/sink/PostgreSql.md | 4 ++- docs/zh/connectors/source/GoogleBigtable.md | 2 +- docs/zh/connectors/source/Kingbase.md | 2 +- docs/zh/connectors/source/Mysql.md | 4 +-- docs/zh/connectors/source/PostgreSQL.md | 1 + docs/zh/connectors/source/Vertica.md | 2 +- docs/zh/edge-agent/download.md | 2 +- .../locally/quick-start-seatunnel-engine.md | 34 +++++++++++----------- 20 files changed, 58 insertions(+), 52 deletions(-) diff --git a/docs/en/connectors/sink/Cloudberry.md b/docs/en/connectors/sink/Cloudberry.md index 358318b606..3fdedab483 100644 --- a/docs/en/connectors/sink/Cloudberry.md +++ b/docs/en/connectors/sink/Cloudberry.md @@ -34,7 +34,7 @@ semantics (using XA transaction guarantee). > Use `Xa transactions` to ensure `exactly-once`. So only support > `exactly-once` for the database which is > support `Xa transactions`. You can set `is_exactly_once=true` to enable it. -- [ ] [timer flush](../../introduction/concepts/connector-v2-features.md) +- [x] [timer flush](../../introduction/concepts/connector-v2-features.md) ## Supported DataSource Info diff --git a/docs/en/connectors/sink/Kingbase.md b/docs/en/connectors/sink/Kingbase.md index 1559534629..b34e09b643 100644 --- a/docs/en/connectors/sink/Kingbase.md +++ b/docs/en/connectors/sink/Kingbase.md @@ -53,7 +53,7 @@ import ChangeLog from '../changelog/connector-jdbc.md'; | TIMESTAMP | TIMESTAMP | | TIME | TIME | | DATE | DATE | -| Other data type | Not supported yet | +| Other data type | Supported. Types not listed above are converted following the PostgreSQL mapping rules; MySQL, Oracle and SQL Server compatible types (e.g. TINYINT, MONEY, BLOB, CLOB, DATETIME, NUMBER, DATETIME2) are also supported | ## Sink Options diff --git a/docs/en/connectors/sink/PostgreSql.md b/docs/en/connectors/sink/PostgreSql.md index 47d28fc976..2f4a103670 100644 --- a/docs/en/connectors/sink/PostgreSql.md +++ b/docs/en/connectors/sink/PostgreSql.md @@ -68,7 +68,8 @@ Exactly-once requires XA transaction support in the target database. Set | _BYTEA<br/> | NOT SUPPORTED YET | | INT2<br/>SMALLSERIAL<br/> | SMALLINT | | INT4<br/>SERIAL<br/> | INT | -| _INT2<br/>_INT4<br/> | ARRAY<INT> | +| _INT2<br/> | ARRAY<SMALLINT> | +| _INT4<br/> | ARRAY<INT> | | INT8<br/>BIGSERIAL<br/> | BIGINT | | _INT8<br/> | ARRAY<BIGINT> | | FLOAT4<br/> | FLOAT | @@ -80,6 +81,7 @@ Exactly-once requires XA transaction support in the target database. Set | BPCHAR<br/>CHARACTER<br/>VARCHAR<br/>TEXT<br/>GEOMETRY<br/>GEOGRAPHY<br/>JSON<br/>JSONB<br/>UUID | STRING | | _BPCHAR<br/>_CHARACTER<br/>_VARCHAR<br/>_TEXT | ARRAY<STRING> | | TIMESTAMP<br/> | TIMESTAMP | +| TIMESTAMPTZ(s) | TIMESTAMP_TZ(s) | | TIME<br/> | TIME | | DATE<br/> | DATE | | OTHER DATA TYPES | NOT SUPPORTED YET | diff --git a/docs/en/connectors/source/Kingbase.md b/docs/en/connectors/source/Kingbase.md index 2a6dac05d9..50d273c420 100644 --- a/docs/en/connectors/source/Kingbase.md +++ b/docs/en/connectors/source/Kingbase.md @@ -54,7 +54,7 @@ Read external data source data through JDBC. | TIMESTAMP | TIMESTAMP | | TIME | TIME | | DATE | DATE | -| Other data type | Not supported yet | +| Other data type | Supported. Types not listed above are converted following the PostgreSQL mapping rules; MySQL, Oracle and SQL Server compatible types (e.g. TINYINT, MONEY, BLOB, CLOB, DATETIME, NUMBER, DATETIME2) are also supported | ## Source Options diff --git a/docs/en/connectors/source/Mysql.md b/docs/en/connectors/source/Mysql.md index 72321f092c..1721a63318 100644 --- a/docs/en/connectors/source/Mysql.md +++ b/docs/en/connectors/source/Mysql.md @@ -66,7 +66,7 @@ Read external data source data through JDBC. | TIME(s) | TIME(s) | | DATETIME(s) | TIMESTAMP(s) | | TIMESTAMP(s) | TIMESTAMP_TZ(s) | -| TINYBLOB<br/>MEDIUMBLOB<br/>BLOB<br/>LONGBLOB<br/>BINARY<br/>VARBINAR<br/>BIT(n)<br/>GEOMETRY | BYTES | +| TINYBLOB<br/>MEDIUMBLOB<br/>BLOB<br/>LONGBLOB<br/>BINARY<br/>VARBINARY<br/>BIT(n)<br/>GEOMETRY | BYTES | ## Source Options @@ -78,7 +78,7 @@ Read external data source data through JDBC. | password | String | No | - | Connection instance password [...] | query | String | No | - | Query statement. Required when neither `table_path` nor `table_list` is configured. [...] | 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,Only support numeric type primary key, and only can config one column. [...] +| partition_column | String | No | - | The column used to split data for parallel reading. Only one column can be configured, and it must be one of the **Supported split data type** listed in [Parallel Reader](#parallel-reader) (string, number or date). [...] | 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. [...] diff --git a/docs/en/connectors/source/PostgreSQL.md b/docs/en/connectors/source/PostgreSQL.md index d9816a8b62..f84e535138 100644 --- a/docs/en/connectors/source/PostgreSQL.md +++ b/docs/en/connectors/source/PostgreSQL.md @@ -103,6 +103,7 @@ Read external data source data through JDBC. | split.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 a [...] | split.sample-sharding.threshold | Int | No | 1000 | This configuration specifies the threshold of estimated shard count to trigger the sample sharding strategy. When the distribution factor is outside the bounds specified by `chunk-key.even-distribution.factor.upper-bound` and `chunk-key.even-distribution.factor.lower-bound`, and the estimated shard count (calculated as approximate row count / chunk size) exceeds this threshold, the sample sharding st [...] | split.inverse-sampling.rate | Int | No | 1000 | The inverse of the sampling rate used in the sample sharding strategy. For example, if this value is set to 1000, it means a 1/1000 sampling rate is applied during the sampling process. This option provides flexibility in controlling the granularity of the sampling, thus affecting the final number of shards. It's especially useful when dealing with very large datasets where a lower sampling rate is p [...] +| numeric_special_value_as_null | Boolean | No | false | If true, numeric special values (NaN, Infinity, -Infinity) that cannot be represented as BigDecimal are read as null. Only supported for PostgreSQL. [...] | common-options | | No | - | Source plugin common parameters, please refer to [Source Common Options](../common-options/source-common-options.md) for details [...] ## Parallel Reader diff --git a/docs/en/connectors/source/Vertica.md b/docs/en/connectors/source/Vertica.md index 7a5c935d90..db59c79b31 100644 --- a/docs/en/connectors/source/Vertica.md +++ b/docs/en/connectors/source/Vertica.md @@ -58,7 +58,7 @@ Read external data source data through JDBC. | DATE | DATE | | TIME | TIME | | DATETIME<br/>TIMESTAMP | TIMESTAMP | -| TINYBLOB<br/>MEDIUMBLOB<br/>BLOB<br/>LONGBLOB<br/>BINARY<br/>VARBINAR | BYTES | +| TINYBLOB<br/>MEDIUMBLOB<br/>BLOB<br/>LONGBLOB<br/>BINARY<br/>VARBINARY | BYTES | | GEOMETRY<br/>UNKNOWN | Not supported yet | ## Source Options diff --git a/docs/en/edge-agent/download.md b/docs/en/edge-agent/download.md index 701e02367f..9b3de26c0f 100644 --- a/docs/en/edge-agent/download.md +++ b/docs/en/edge-agent/download.md @@ -9,7 +9,7 @@ title: Download Before installing Edge Agent, prepare the edge host: -* Java: install [Java](https://www.java.com/en/download/) 8 or 11 (newer LTS versions generally work) and set JAVA_HOME. +* Java: install [Java](https://www.java.com/en/download/) 11 or 17 (newer LTS versions generally work) and set JAVA_HOME. * Disk: writable directory for queue.sqlite-path (WAL and source positions) and logs. * Network: outbound connectivity from the edge host to the EdgeSocket endpoint configured in output.endpoint. diff --git a/docs/en/getting-started/locally/quick-start-seatunnel-engine.md b/docs/en/getting-started/locally/quick-start-seatunnel-engine.md index 8515d0dd9f..5a6c0677b1 100644 --- a/docs/en/getting-started/locally/quick-start-seatunnel-engine.md +++ b/docs/en/getting-started/locally/quick-start-seatunnel-engine.md @@ -122,23 +122,23 @@ is a sign to determine whether the command ran successfully or not. The SeaTunnel console will print some logs as below: ```shell -2022-12-19 11:01:45,417 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - output rowType: new_name<STRING>, age<INT> -2022-12-19 11:01:46,489 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=1: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: CpiOd, 8520946 -2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=2: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: eQqTs, 1256802974 -2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=3: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: UsRgO, 2053193072 -2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=4: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: jDQJj, 1993016602 -2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=5: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: rqdKp, 1392682764 -2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=6: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: wCoWN, 986999925 -2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=7: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: qomTU, 72775247 -2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=8: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: jcqXR, 1074529204 -2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=9: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: AkWIO, 1961723427 -2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=10: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: hBoib, 929089763 -2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=11: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: GSvzm, 827085798 -2022-12-19 11:01:46,491 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=12: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: NNAYI, 94307133 -2022-12-19 11:01:46,491 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=13: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: EexFl, 1823689599 -2022-12-19 11:01:46,491 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=14: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: CBXUb, 869582787 -2022-12-19 11:01:46,491 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=15: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: Wbxtm, 1469371353 -2022-12-19 11:01:46,491 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=16: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: mIJDt, 995616438 +2022-12-19 11:01:45,417 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - output rowType: age<INT>, new_name<STRING> +2022-12-19 11:01:46,489 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=1: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 8520946, CpiOd +2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=2: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 1256802974, eQqTs +2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=3: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 2053193072, UsRgO +2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=4: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 1993016602, jDQJj +2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=5: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 1392682764, rqdKp +2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=6: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 986999925, wCoWN +2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=7: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 72775247, qomTU +2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=8: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 1074529204, jcqXR +2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=9: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 1961723427, AkWIO +2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=10: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 929089763, hBoib +2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=11: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 827085798, GSvzm +2022-12-19 11:01:46,491 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=12: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 94307133, NNAYI +2022-12-19 11:01:46,491 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=13: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 1823689599, EexFl +2022-12-19 11:01:46,491 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=14: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 869582787, CBXUb +2022-12-19 11:01:46,491 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=15: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 1469371353, Wbxtm +2022-12-19 11:01:46,491 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=16: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 995616438, mIJDt ``` ### Extended Example: Batch Mode from MySQL to Doris diff --git a/docs/zh/connectors/sink/Aerospike.md b/docs/zh/connectors/sink/Aerospike.md index 58e0b099fe..c37cd792ad 100644 --- a/docs/zh/connectors/sink/Aerospike.md +++ b/docs/zh/connectors/sink/Aerospike.md @@ -8,7 +8,7 @@ import ChangeLog from '../changelog/connector-aerospike.md'; > Spark<br/> > Flink<br/> -> Seatunnel Zeta<br/> +> SeaTunnel Zeta<br/> ## 许可证兼容性通知 diff --git a/docs/zh/connectors/sink/Cloudberry.md b/docs/zh/connectors/sink/Cloudberry.md index 27160a8896..d0e21c1cc4 100644 --- a/docs/zh/connectors/sink/Cloudberry.md +++ b/docs/zh/connectors/sink/Cloudberry.md @@ -32,7 +32,7 @@ import ChangeLog from '../changelog/connector-cloudberry.md'; - [x] [CDC](../../introduction/concepts/connector-v2-features.md) > 使用 `XA 事务` 来确保 `精确一次`。因此,只有支持 `XA 事务` 的数据库才支持 `精确一次`。您可以设置 > `is_exactly_once=true` 来启用它。 -- [ ] [定时刷新](../../introduction/concepts/connector-v2-features.md) +- [x] [定时刷新](../../introduction/concepts/connector-v2-features.md) ## 支持的数据源信息 diff --git a/docs/zh/connectors/sink/Kingbase.md b/docs/zh/connectors/sink/Kingbase.md index 494cbc0a73..6a04c44f5f 100644 --- a/docs/zh/connectors/sink/Kingbase.md +++ b/docs/zh/connectors/sink/Kingbase.md @@ -52,7 +52,7 @@ import ChangeLog from '../changelog/connector-jdbc.md'; | TIMESTAMP | TIMESTAMP | | TIME | TIME | | DATE | DATE | -| 其他数据类型 | 暂不支持 | +| 其他数据类型 | 支持。未列出的类型遵循 PostgreSQL 的转换规则,同时支持 MySQL、Oracle、SQL Server 兼容类型(如 TINYINT、MONEY、BLOB、CLOB、DATETIME、NUMBER、DATETIME2 等) | ## Sink 选项 diff --git a/docs/zh/connectors/sink/PostgreSql.md b/docs/zh/connectors/sink/PostgreSql.md index eb22602364..d375d88eec 100644 --- a/docs/zh/connectors/sink/PostgreSql.md +++ b/docs/zh/connectors/sink/PostgreSql.md @@ -63,7 +63,8 @@ PostgreSQL Sink 连接器通过 JDBC 驱动将行写入 PostgreSQL 数据库。 | _BYTEA<br/> | 目前不支持 | | INT2<br/>SMALLSERIAL<br/> | SMALLINT | | INT4<br/>SERIAL<br/> | INT | -| _INT2<br/>_INT4<br/> | ARRAY<INT> | +| _INT2<br/> | ARRAY<SMALLINT> | +| _INT4<br/> | ARRAY<INT> | | INT8<br/>BIGSERIAL<br/> | BIGINT | | _INT8<br/> | ARRAY<BIGINT> | | FLOAT4<br/> | FLOAT | @@ -75,6 +76,7 @@ PostgreSQL Sink 连接器通过 JDBC 驱动将行写入 PostgreSQL 数据库。 | BPCHAR<br/>CHARACTER<br/>VARCHAR<br/>TEXT<br/>GEOMETRY<br/>GEOGRAPHY<br/>JSON<br/>JSONB<br/>UUID | STRING | | _BPCHAR<br/>_CHARACTER<br/>_VARCHAR<br/>_TEXT | ARRAY<STRING> | | TIMESTAMP<br/> | TIMESTAMP | +| TIMESTAMPTZ(s) | TIMESTAMP_TZ(s) | | TIME<br/> | TIME | | DATE<br/> | DATE | | 其他数据类型 | 目前不支持 | diff --git a/docs/zh/connectors/source/GoogleBigtable.md b/docs/zh/connectors/source/GoogleBigtable.md index 62faba5729..6c4d5c630b 100644 --- a/docs/zh/connectors/source/GoogleBigtable.md +++ b/docs/zh/connectors/source/GoogleBigtable.md @@ -104,7 +104,7 @@ Source 的输出 schema。该参数为必填:Source 根据 `schema` 构建输 Source 插件通用参数,详见 [Source Common Options](../common-options/source-common-options.md)。 -### Schema 映射 +## Schema 映射 字段名须使用 `列族:列限定符` 格式,例如 `cf:name`、`stats:age`。行键字段由 `rowkey_column` 控制;如果未配置,特殊字段名 `rowkey` 会映射到 Bigtable 行键。 diff --git a/docs/zh/connectors/source/Kingbase.md b/docs/zh/connectors/source/Kingbase.md index f0f085e645..c55663002f 100644 --- a/docs/zh/connectors/source/Kingbase.md +++ b/docs/zh/connectors/source/Kingbase.md @@ -54,7 +54,7 @@ import ChangeLog from '../changelog/connector-jdbc.md'; | TIMESTAMP | TIMESTAMP | | TIME | TIME | | DATE | DATE | -| 其他数据类型 | 暂不支持 | +| 其他数据类型 | 支持。未列出的类型遵循 PostgreSQL 的转换规则,同时支持 MySQL、Oracle、SQL Server 兼容类型(如 TINYINT、MONEY、BLOB、CLOB、DATETIME、NUMBER、DATETIME2 等) | ## 源选项 diff --git a/docs/zh/connectors/source/Mysql.md b/docs/zh/connectors/source/Mysql.md index d9a265ef2e..289f1d0b30 100644 --- a/docs/zh/connectors/source/Mysql.md +++ b/docs/zh/connectors/source/Mysql.md @@ -66,7 +66,7 @@ import ChangeLog from '../changelog/connector-jdbc.md'; | TIME(s) | TIME(s) | | DATETIME(s) | TIMESTAMP(s) | | TIMESTAMP(s) | TIMESTAMP_TZ(s) | -| TINYBLOB<br/>MEDIUMBLOB<br/>BLOB<br/>LONGBLOB<br/>BINARY<br/>VARBINAR<br/>BIT(n)<br/>GEOMETRY | BYTES | +| TINYBLOB<br/>MEDIUMBLOB<br/>BLOB<br/>LONGBLOB<br/>BINARY<br/>VARBINARY<br/>BIT(n)<br/>GEOMETRY | BYTES | ## 数据源参数 @@ -78,7 +78,7 @@ import ChangeLog from '../changelog/connector-jdbc.md'; | password | String | 否 | - | 连接实例密码。 | | query | String | 否 | - | 查询语句。当未配置 `table_path` 和 `table_list` 时必填。 | | connection_check_timeout_sec | Int | 否 | 30 | 验证数据库连接所使用的操作完成的等待时间(秒)。 | -| partition_column | String | 否 | - | 用于并行度分区的列名,仅支持数字类型,仅支持数字类型的主键,并且只能配置一列。 | +| partition_column | String | 否 | - | 用于并行读取的数据拆分列。只能配置一列,且必须是 [并行读取器](#并行读取器) 中列出的 **支持的拆分数据类型** 之一(字符串、数字或日期)。 | | partition_lower_bound | String | 否 | - | 扫描时 `partition_column` 的最小值,如果未设置,`SeaTunnel` 将查询数据库以获取最小值。 | | partition_upper_bound | String | 否 | - | 扫描时 `partition_column` 的最大值,如果未设置,`SeaTunnel` 将查询数据库以获取最大值。 | | partition_num | Int | 否 | 10 | 分区数量,仅支持正整数。<br/>默认值为 10。 | diff --git a/docs/zh/connectors/source/PostgreSQL.md b/docs/zh/connectors/source/PostgreSQL.md index 6710fbee15..fa6c70d8bf 100644 --- a/docs/zh/connectors/source/PostgreSQL.md +++ b/docs/zh/connectors/source/PostgreSQL.md @@ -103,6 +103,7 @@ import ChangeLog from '../changelog/connector-jdbc.md'; | split.even-distribution.factor.upper-bound | Double | 否 | 100 | 块键分布因子的上限。此因子用于确定表数据是否均匀分布。<br/> 如果计算出的分布因子小于或等于此上限(即 (MAX(id) - MIN(id) + 1) / 行数),则表块将优化为均匀分布。否则,如果分布因子较大,则将视为不均匀分布,当估计的分片数超过 `sample-sharding.threshold` 指定的值时,将使用基于采样的分片策略。默认值为 100.0。 | | split.sample-sharding.threshold | Int | 否 | 1000 | 此配置指定触发样本分片策略的估计分片数阈值。<br/> 当分布因子超出 `chunk-key.even-distribution.factor.upper-bound` 和 `chunk-key.even-distribution.factor.lower-bound` 指定的范围时,且估计的分片数(计算为近似行数 / 块大小)超过此阈值,将使用样本分片策略。这可以帮助更高效地处理大数据集。默认值为 1000 个分片。 | | split.inverse-sampling.rate | Int | 否 | 1000 | 在样本分片策略中使用的采样率的逆数。例如,如果此值设置为 1000,表示在采样过程中应用 1/1000 的采样率。此选项提供了控制采样粒度的灵活性,从而影响最终的分片数量。在处理非常大的数据集时,较低的采样率尤其有用。默认值为 1000。 | +| numeric_special_value_as_null | Boolean | 否 | false | 如果设置为 true,无法用 BigDecimal 表示的数字特殊值(NaN、Infinity、-Infinity)将被读取为 null。目前仅支持 PostgreSQL。 | | common-options | | 否 | - | Source 插件通用参数,请参阅 [Source Common Options](../common-options/source-common-options.md) 了解详情 [...] ## 并行读取器 diff --git a/docs/zh/connectors/source/Vertica.md b/docs/zh/connectors/source/Vertica.md index a87faf3f2d..6ab2f72716 100644 --- a/docs/zh/connectors/source/Vertica.md +++ b/docs/zh/connectors/source/Vertica.md @@ -58,7 +58,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 | BYTES | +| TINYBLOB<br/>MEDIUMBLOB<br/>BLOB<br/>LONGBLOB<br/>BINARY<br/>VARBINARY | BYTES | | GEOMETRY<br/>UNKNOWN | 暂不支持 | ## 源选项 diff --git a/docs/zh/edge-agent/download.md b/docs/zh/edge-agent/download.md index b2c2de58c0..aa7121fdc8 100644 --- a/docs/zh/edge-agent/download.md +++ b/docs/zh/edge-agent/download.md @@ -9,7 +9,7 @@ title: 下载 在边缘主机上准备: -* Java:安装 [Java](https://www.java.com/zh-CN/download/) 8 或 11(更高版本 LTS 一般可用),并设置 JAVA_HOME。 +* Java:安装 [Java](https://www.java.com/zh-CN/download/) 11 或 17(更高版本 LTS 一般可用),并设置 JAVA_HOME。 * 磁盘:queue.sqlite-path(WAL 与位点)及日志目录可写。 * 网络:边缘主机可访问 output.endpoint 配置的 EdgeSocket 地址。 diff --git a/docs/zh/getting-started/locally/quick-start-seatunnel-engine.md b/docs/zh/getting-started/locally/quick-start-seatunnel-engine.md index 72e687d569..357cdd2167 100644 --- a/docs/zh/getting-started/locally/quick-start-seatunnel-engine.md +++ b/docs/zh/getting-started/locally/quick-start-seatunnel-engine.md @@ -121,23 +121,23 @@ bin\seatunnel.cmd --config config\v2.batch.config.template -m local SeaTunnel控制台将会打印一些如下日志信息: ```shell -2022-12-19 11:01:45,417 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - output rowType: new_name<STRING>, age<INT> -2022-12-19 11:01:46,489 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=1: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: CpiOd, 8520946 -2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=2: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: eQqTs, 1256802974 -2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=3: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: UsRgO, 2053193072 -2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=4: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: jDQJj, 1993016602 -2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=5: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: rqdKp, 1392682764 -2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=6: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: wCoWN, 986999925 -2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=7: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: qomTU, 72775247 -2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=8: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: jcqXR, 1074529204 -2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=9: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: AkWIO, 1961723427 -2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=10: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: hBoib, 929089763 -2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=11: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: GSvzm, 827085798 -2022-12-19 11:01:46,491 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=12: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: NNAYI, 94307133 -2022-12-19 11:01:46,491 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=13: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: EexFl, 1823689599 -2022-12-19 11:01:46,491 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=14: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: CBXUb, 869582787 -2022-12-19 11:01:46,491 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=15: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: Wbxtm, 1469371353 -2022-12-19 11:01:46,491 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=16: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: mIJDt, 995616438 +2022-12-19 11:01:45,417 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - output rowType: age<INT>, new_name<STRING> +2022-12-19 11:01:46,489 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=1: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 8520946, CpiOd +2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=2: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 1256802974, eQqTs +2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=3: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 2053193072, UsRgO +2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=4: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 1993016602, jDQJj +2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=5: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 1392682764, rqdKp +2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=6: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 986999925, wCoWN +2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=7: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 72775247, qomTU +2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=8: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 1074529204, jcqXR +2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=9: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 1961723427, AkWIO +2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=10: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 929089763, hBoib +2022-12-19 11:01:46,490 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=11: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 827085798, GSvzm +2022-12-19 11:01:46,491 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=12: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 94307133, NNAYI +2022-12-19 11:01:46,491 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=13: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 1823689599, EexFl +2022-12-19 11:01:46,491 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=14: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 869582787, CBXUb +2022-12-19 11:01:46,491 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=15: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 1469371353, Wbxtm +2022-12-19 11:01:46,491 INFO org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0 rowIndex=16: SeaTunnelRow#tableId=-1 SeaTunnelRow#kind=INSERT: 995616438, mIJDt ``` ### 扩展示例:从 MySQL 到 Doris 批处理模式
