This is an automated email from the ASF dual-hosted git repository.
JNSimba pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new af18139fb59 [doc](streaming-job) Correct CDC data type mappings (#4705)
af18139fb59 is described below
commit af18139fb593de5bf9970531ca7e6474533b3fe6
Author: wudi <[email protected]>
AuthorDate: Tue Nov 24 14:57:12 2026 +0800
[doc](streaming-job) Correct CDC data type mappings (#4705)
Correct Streaming Job CDC type mappings for MySQL, PostgreSQL, and
OceanBase. Document unsigned decimal precision and string length
conversion, add MySQL unsigned floating-point types and PostgreSQL
aliases, and correct PostgreSQL UUID, JSON, geometry, and array
descriptions. Preserve the OceanBase guidance for excluding unsupported
non-key columns.
## Versions
- [x] dev
- [x] 4.x
- [ ] 3.x
- [ ] 2.1 or older (not covered by version/language sync gate)
## Languages
- [x] Chinese
- [x] English
## Docs Checklist
- [x] Checked by AI
- [ ] Test Cases Built
- [x] Updated required version and language counterparts, or explained
why not
- [x] If only one language changed, confirmed whether source/translation
counterparts need sync
Validation: reviewed the existing CDC all-type regression suites and
expected outputs; passed git diff --check, front matter JSON parsing,
and source/target type consistency checks across all 12 documents. No
site build or database regression tests were run. The continuous-load
feature is documented for 4.1.5 and later, so 3.x and archived versions
are unchanged.
---
.../streaming-job/data-type-mapping-mysql.md | 13 +++++----
.../streaming-job/data-type-mapping-oceanbase.md | 7 +++--
.../streaming-job/data-type-mapping-postgresql.md | 33 +++++++++++-----------
.../streaming-job/data-type-mapping-mysql.md | 13 +++++----
.../streaming-job/data-type-mapping-oceanbase.md | 7 +++--
.../streaming-job/data-type-mapping-postgresql.md | 31 ++++++++++----------
.../streaming-job/data-type-mapping-mysql.md | 13 +++++----
.../streaming-job/data-type-mapping-oceanbase.md | 7 +++--
.../streaming-job/data-type-mapping-postgresql.md | 31 ++++++++++----------
scripts/i18n/ci-sample.cjs | 3 ++
.../streaming-job/data-type-mapping-mysql.md | 13 +++++----
.../streaming-job/data-type-mapping-oceanbase.md | 7 +++--
.../streaming-job/data-type-mapping-postgresql.md | 33 +++++++++++-----------
13 files changed, 113 insertions(+), 98 deletions(-)
diff --git
a/docs/data-operate/import/import-way/streaming-job/data-type-mapping-mysql.md
b/docs/data-operate/import/import-way/streaming-job/data-type-mapping-mysql.md
index d003c0256a4..107038dee64 100644
---
a/docs/data-operate/import/import-way/streaming-job/data-type-mapping-mysql.md
+++
b/docs/data-operate/import/import-way/streaming-job/data-type-mapping-mysql.md
@@ -51,15 +51,16 @@ To read `TINYINT(1)` as `BOOLEAN` or `YEAR` as a date,
explicitly set `tinyInt1i
| `INT` | `INT` | `UNSIGNED` → `BIGINT` |
| `BIGINT` | `BIGINT` | `UNSIGNED` → `LARGEINT` |
| `YEAR` | `SMALLINT` | The value is read as an integer year rather than as a
date; the MySQL zero year (`0000`) is kept as `0` |
-| `FLOAT` | `FLOAT` | |
-| `DOUBLE` | `DOUBLE` | |
-| `DECIMAL(p,s)` | `DECIMAL(p,s)` | Very high precision falls back to `STRING`
|
+| `FLOAT` / `FLOAT UNSIGNED` | `FLOAT` | |
+| `DOUBLE` / `DOUBLE UNSIGNED` | `DOUBLE` | |
+| `DECIMAL(p,s)` | `DECIMAL(p,s)` / `STRING` | Precision above 38 maps to
`STRING` |
+| `DECIMAL(p,s) UNSIGNED` | `DECIMAL(p+1,s)` / `STRING` | Precision expanded
by 1; above 38 maps to `STRING` |
| `DATE` | `DATE` | |
| `DATETIME` | `DATETIME(s)` | Microsecond scale (0–6) preserved |
| `TIMESTAMP` | `DATETIME(s)` | Normalized to the server time zone |
| `TIME` | `STRING` | Serialized as a string, e.g. `12:34:56.000000` |
-| `CHAR` | `CHAR` | |
-| `VARCHAR` | `VARCHAR` | |
+| `CHAR(n)` | `CHAR` / `VARCHAR` | Length scaled ×3 for UTF-8; above 255
becomes `VARCHAR` |
+| `VARCHAR(n)` | `VARCHAR` / `STRING` | Length scaled ×3 for UTF-8; above
65533 becomes `STRING` |
| `TINYTEXT` / `TEXT` / `MEDIUMTEXT` / `LONGTEXT` | `STRING` | |
| `BINARY` / `VARBINARY` / `TINYBLOB` / `BLOB` / `MEDIUMBLOB` / `LONGBLOB` |
`STRING` | Base64-encoded string |
| `BIT(1)` | `BOOLEAN` | |
@@ -67,4 +68,4 @@ To read `TINYINT(1)` as `BOOLEAN` or `YEAR` as a date,
explicitly set `tinyInt1i
| `JSON` | `STRING` | Stored as JSON text |
| `ENUM` | `STRING` | Resolved to the label value |
| `SET` | `STRING` | Resolved to comma-separated labels |
-| Spatial types (`GEOMETRY`, `POINT`, …) and other types | Not supported |
Auto Table Creation fails for tables with such columns; use SQL Mapping Sync
(cast in `SELECT`) or exclude the column |
+| Spatial types (`GEOMETRY`, `POINT`, …) and other types | Not supported | |
diff --git
a/docs/data-operate/import/import-way/streaming-job/data-type-mapping-oceanbase.md
b/docs/data-operate/import/import-way/streaming-job/data-type-mapping-oceanbase.md
index 6d449674101..1a7155573ef 100644
---
a/docs/data-operate/import/import-way/streaming-job/data-type-mapping-oceanbase.md
+++
b/docs/data-operate/import/import-way/streaming-job/data-type-mapping-oceanbase.md
@@ -43,13 +43,14 @@ If any of these parameters is set explicitly in `jdbc_url`,
Doris keeps the conf
| `YEAR` | `SMALLINT` | Read as an integer year; zero year (`0000`) is
preserved as `0`. |
| `FLOAT` | `FLOAT` | |
| `DOUBLE` | `DOUBLE` | |
-| `DECIMAL(p,s)` | `DECIMAL(p,s)` | Very high precision falls back to
`STRING`. |
+| `DECIMAL(p,s)` | `DECIMAL(p,s)` / `STRING` | Precision above 38 maps to
`STRING` |
+| `DECIMAL(p,s) UNSIGNED` | `DECIMAL(p+1,s)` / `STRING` | Precision expanded
by 1; above 38 maps to `STRING` |
| `DATE` | `DATE` | |
| `DATETIME` | `DATETIME(s)` | Preserves microsecond scale from 0 to 6. |
| `TIMESTAMP` | `DATETIME(s)` | Normalized to the server time zone. |
| `TIME` | `STRING` | Stored as a string, for example, `12:34:56.000000`. |
-| `CHAR` | `CHAR` | |
-| `VARCHAR` | `VARCHAR` | |
+| `CHAR(n)` | `CHAR` / `VARCHAR` | Length scaled ×3 for UTF-8; above 255
becomes `VARCHAR` |
+| `VARCHAR(n)` | `VARCHAR` / `STRING` | Length scaled ×3 for UTF-8; above
65533 becomes `STRING` |
| `TINYTEXT` / `TEXT` / `MEDIUMTEXT` / `LONGTEXT` | `STRING` | |
| `BINARY` / `VARBINARY` / `TINYBLOB` / `BLOB` / `MEDIUMBLOB` / `LONGBLOB` |
`STRING` | Base64-encoded string. |
| `BIT(1)` | `BOOLEAN` | |
diff --git
a/docs/data-operate/import/import-way/streaming-job/data-type-mapping-postgresql.md
b/docs/data-operate/import/import-way/streaming-job/data-type-mapping-postgresql.md
index 6e63d93f62b..4563abf823f 100644
---
a/docs/data-operate/import/import-way/streaming-job/data-type-mapping-postgresql.md
+++
b/docs/data-operate/import/import-way/streaming-job/data-type-mapping-postgresql.md
@@ -25,24 +25,25 @@ In both cases, the values are written following the same
mapping. For types that
| PostgreSQL Type | Doris Type | Notes |
| --- | --- | --- |
-| `bool` | `BOOLEAN` | |
+| `bool` / `boolean` | `BOOLEAN` | |
| `bit(1)` | `BOOLEAN` | |
-| `bit(n>1)` / `varbit` | `STRING` | |
-| `int2` / `smallserial` | `SMALLINT` | |
-| `int4` / `serial` | `INT` | |
-| `int8` / `bigserial` | `BIGINT` | |
-| `float4` | `FLOAT` | |
-| `float8` | `DOUBLE` | |
-| `numeric(p,s)` | `DECIMAL(min(p,38), s)` | Precision capped at 38; scale
defaults to 9 when unspecified |
-| `bpchar(n)` (i.e. `CHAR(n)`) | `CHAR` / `VARCHAR` | Length scaled ×3 for
UTF-8; `> 255` becomes `VARCHAR` |
+| `bit(n>1)` / `varbit` / `bit varying` | `STRING` | Base64-encoded string |
+| `int2` / `smallint` / `smallserial` | `SMALLINT` | |
+| `int4` / `integer` / `serial` | `INT` | |
+| `int8` / `bigint` / `bigserial` | `BIGINT` | |
+| `float4` / `real` | `FLOAT` | |
+| `float8` / `double precision` | `DOUBLE` | |
+| `numeric(p,s)` / `decimal(p,s)` | `DECIMAL(p,s)` / `STRING` | Precision
above 38 maps to `STRING` |
+| `bpchar(n)` (i.e. `CHAR(n)`) | `CHAR` / `VARCHAR` | Length scaled ×3 for
UTF-8; above 255 becomes `VARCHAR` |
| `varchar` / `text` | `STRING` | PostgreSQL `varchar` maps to `STRING` (no
length) |
| `date` | `DATE` | |
-| `timestamp` / `timestamptz` | `DATETIME(s)` | Scale 0–6; `timestamptz`
normalized to the server time zone |
-| `time` / `timetz` / `interval` | `STRING` | `timetz` keeps its
UTC-normalized offset |
-| `uuid` / `inet` / `cidr` / `macaddr` / `macaddr8` | `STRING` | |
+| `timestamp` / `timestamp without time zone` / `timestamptz` / `timestamp
with time zone` | `DATETIME(s)` | Scale 0–6; `timestamptz` normalized to the
server time zone |
+| `time` / `time without time zone` / `timetz` / `time with time zone` /
`interval` | `STRING` | `timetz` keeps its UTC-normalized offset |
+| `uuid` | `UUID` | |
+| `inet` / `cidr` / `macaddr` / `macaddr8` | `STRING` | |
| `bytea` | `STRING` | Base64-encoded string |
| `xml` / `hstore` | `STRING` | |
-| `json` / `jsonb` | `JSON` | |
-| Geometry types (`point`, `line`, `polygon`, …) | `STRING` | Serialized as a
GeoJSON string (`type` / `coordinates` / `srid`) |
-| Array types (e.g. `int4[]`, `text[]`) | `ARRAY<T>` | One-dimensional only |
-| Other / user-defined types | Not supported | |
+| `json` / `jsonb` | `STRING` | Stored as JSON text |
+| `point` | `STRING` | Serialized as a GeoJSON string (`type` / `coordinates`
/ `srid`) |
+| Array types | `ARRAY<T>` | One-dimensional only. Supported element types:
`int2`, `int4`, `int8`, `float4`, `float8`, `numeric(p,s)`, `bool`, `bpchar`,
`varchar`, `text`, `date`, `timestamp`, `timestamptz`, `json`, `jsonb`, `uuid`.
A non-empty source value must be sampled to infer dimensions; `bpchar[]` maps
to `ARRAY<STRING>` |
+| Other types | Not supported | |
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/data-operate/import/import-way/streaming-job/data-type-mapping-mysql.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/data-operate/import/import-way/streaming-job/data-type-mapping-mysql.md
index 8a483ad034f..b351b86b530 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/data-operate/import/import-way/streaming-job/data-type-mapping-mysql.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/data-operate/import/import-way/streaming-job/data-type-mapping-mysql.md
@@ -51,15 +51,16 @@ Doris 持续导入为实验性功能,自 Doris 4.1.5 版本起支持。
| `INT` | `INT` | `UNSIGNED` → `BIGINT` |
| `BIGINT` | `BIGINT` | `UNSIGNED` → `LARGEINT` |
| `YEAR` | `SMALLINT` | 按整数年份读取,而不是按日期读取;MySQL 的零年(`0000`)保留为 `0` |
-| `FLOAT` | `FLOAT` | |
-| `DOUBLE` | `DOUBLE` | |
-| `DECIMAL(p,s)` | `DECIMAL(p,s)` | 超高精度回退为 `STRING` |
+| `FLOAT` / `FLOAT UNSIGNED` | `FLOAT` | |
+| `DOUBLE` / `DOUBLE UNSIGNED` | `DOUBLE` | |
+| `DECIMAL(p,s)` | `DECIMAL(p,s)` / `STRING` | 精度超过 38 时转为 `STRING` |
+| `DECIMAL(p,s) UNSIGNED` | `DECIMAL(p+1,s)` / `STRING` | 精度扩展 1 位;超过 38 时转为
`STRING` |
| `DATE` | `DATE` | |
| `DATETIME` | `DATETIME(s)` | 保留微秒精度(0–6) |
| `TIMESTAMP` | `DATETIME(s)` | 按 server 时区归一 |
| `TIME` | `STRING` | 以字符串存储,如 `12:34:56.000000` |
-| `CHAR` | `CHAR` | |
-| `VARCHAR` | `VARCHAR` | |
+| `CHAR(n)` | `CHAR` / `VARCHAR` | 长度 ×3 以兼容 UTF-8;`> 255` 转为 `VARCHAR` |
+| `VARCHAR(n)` | `VARCHAR` / `STRING` | 长度 ×3 以兼容 UTF-8;`> 65533` 转为 `STRING` |
| `TINYTEXT` / `TEXT` / `MEDIUMTEXT` / `LONGTEXT` | `STRING` | |
| `BINARY` / `VARBINARY` / `TINYBLOB` / `BLOB` / `MEDIUMBLOB` / `LONGBLOB` |
`STRING` | Base64 编码字符串 |
| `BIT(1)` | `BOOLEAN` | |
@@ -67,4 +68,4 @@ Doris 持续导入为实验性功能,自 Doris 4.1.5 版本起支持。
| `JSON` | `STRING` | 以 JSON 文本存储 |
| `ENUM` | `STRING` | 解析为标签值 |
| `SET` | `STRING` | 解析为逗号分隔的标签 |
-| 空间类型(`GEOMETRY`、`POINT` 等)及其他类型 | 不支持 | 含此类列的表自动建表会失败;可改用 SQL 映射同步(在
`SELECT` 中转换)或排除该列 |
+| 空间类型(`GEOMETRY`、`POINT` 等)及其他类型 | 不支持 | |
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/data-operate/import/import-way/streaming-job/data-type-mapping-oceanbase.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/data-operate/import/import-way/streaming-job/data-type-mapping-oceanbase.md
index 42c5859718c..fc335114c05 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/data-operate/import/import-way/streaming-job/data-type-mapping-oceanbase.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/data-operate/import/import-way/streaming-job/data-type-mapping-oceanbase.md
@@ -43,13 +43,14 @@ OceanBase CDC 持续导入仅支持 MySQL 兼容模式,并复用 MySQL 的类
| `YEAR` | `SMALLINT` | 按整数年份读取;零年(`0000`)保留为 `0`。 |
| `FLOAT` | `FLOAT` | |
| `DOUBLE` | `DOUBLE` | |
-| `DECIMAL(p,s)` | `DECIMAL(p,s)` | 超高精度回退为 `STRING`。 |
+| `DECIMAL(p,s)` | `DECIMAL(p,s)` / `STRING` | 精度超过 38 时转为 `STRING` |
+| `DECIMAL(p,s) UNSIGNED` | `DECIMAL(p+1,s)` / `STRING` | 精度扩展 1 位;超过 38 时转为
`STRING` |
| `DATE` | `DATE` | |
| `DATETIME` | `DATETIME(s)` | 保留微秒精度(0–6)。 |
| `TIMESTAMP` | `DATETIME(s)` | 按 server 时区归一。 |
| `TIME` | `STRING` | 以字符串存储,如 `12:34:56.000000`。 |
-| `CHAR` | `CHAR` | |
-| `VARCHAR` | `VARCHAR` | |
+| `CHAR(n)` | `CHAR` / `VARCHAR` | 长度 ×3 以兼容 UTF-8;`> 255` 转为 `VARCHAR` |
+| `VARCHAR(n)` | `VARCHAR` / `STRING` | 长度 ×3 以兼容 UTF-8;`> 65533` 转为 `STRING` |
| `TINYTEXT` / `TEXT` / `MEDIUMTEXT` / `LONGTEXT` | `STRING` | |
| `BINARY` / `VARBINARY` / `TINYBLOB` / `BLOB` / `MEDIUMBLOB` / `LONGBLOB` |
`STRING` | Base64 编码字符串。 |
| `BIT(1)` | `BOOLEAN` | |
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/data-operate/import/import-way/streaming-job/data-type-mapping-postgresql.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/data-operate/import/import-way/streaming-job/data-type-mapping-postgresql.md
index 3ee23854f31..08ba59b314f 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/data-operate/import/import-way/streaming-job/data-type-mapping-postgresql.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/data-operate/import/import-way/streaming-job/data-type-mapping-postgresql.md
@@ -25,24 +25,25 @@ Doris 持续导入为实验性功能,自 Doris 4.1.5 版本起支持。
| PostgreSQL 类型 | Doris 类型 | 备注 |
| --- | --- | --- |
-| `bool` | `BOOLEAN` | |
+| `bool` / `boolean` | `BOOLEAN` | |
| `bit(1)` | `BOOLEAN` | |
-| `bit(n>1)` / `varbit` | `STRING` | |
-| `int2` / `smallserial` | `SMALLINT` | |
-| `int4` / `serial` | `INT` | |
-| `int8` / `bigserial` | `BIGINT` | |
-| `float4` | `FLOAT` | |
-| `float8` | `DOUBLE` | |
-| `numeric(p,s)` | `DECIMAL(min(p,38), s)` | 精度上限 38;未指定 scale 时默认 9 |
+| `bit(n>1)` / `varbit` / `bit varying` | `STRING` | Base64 编码字符串 |
+| `int2` / `smallint` / `smallserial` | `SMALLINT` | |
+| `int4` / `integer` / `serial` | `INT` | |
+| `int8` / `bigint` / `bigserial` | `BIGINT` | |
+| `float4` / `real` | `FLOAT` | |
+| `float8` / `double precision` | `DOUBLE` | |
+| `numeric(p,s)` / `decimal(p,s)` | `DECIMAL(p,s)` / `STRING` | 精度超过 38 时转为
`STRING` |
| `bpchar(n)`(即 `CHAR(n)`) | `CHAR` / `VARCHAR` | 长度 ×3 以兼容 UTF-8;`> 255` 转为
`VARCHAR` |
| `varchar` / `text` | `STRING` | 注意:PostgreSQL `varchar` 映射为 `STRING`(不带长度) |
| `date` | `DATE` | |
-| `timestamp` / `timestamptz` | `DATETIME(s)` | 精度 0–6;`timestamptz` 按 server
时区归一 |
-| `time` / `timetz` / `interval` | `STRING` | `timetz` 保留其 UTC 归一后的偏移量 |
-| `uuid` / `inet` / `cidr` / `macaddr` / `macaddr8` | `STRING` | |
+| `timestamp` / `timestamp without time zone` / `timestamptz` / `timestamp
with time zone` | `DATETIME(s)` | 精度 0–6;`timestamptz` 按 server 时区归一 |
+| `time` / `time without time zone` / `timetz` / `time with time zone` /
`interval` | `STRING` | `timetz` 保留其 UTC 归一后的偏移量 |
+| `uuid` | `UUID` | |
+| `inet` / `cidr` / `macaddr` / `macaddr8` | `STRING` | |
| `bytea` | `STRING` | Base64 编码字符串 |
| `xml` / `hstore` | `STRING` | |
-| `json` / `jsonb` | `JSON` | |
-| 几何类型(`point`、`line`、`polygon` 等) | `STRING` | 序列化为 GeoJSON 字符串(`type` /
`coordinates` / `srid`) |
-| 数组类型(如 `int4[]`、`text[]`) | `ARRAY<T>` | 仅支持一维 |
-| 其他 / 用户自定义类型 | 不支持 | |
+| `json` / `jsonb` | `STRING` | 以 JSON 文本存储 |
+| `point` | `STRING` | 序列化为 GeoJSON 字符串(`type` / `coordinates` / `srid`) |
+| 数组类型 | `ARRAY<T>` | 仅支持一维。支持的元素类型:
`int2`、`int4`、`int8`、`float4`、`float8`、`numeric(p,s)`、`bool`、`bpchar`、`varchar`、`text`、`date`、`timestamp`、`timestamptz`、`json`、`jsonb`、`uuid`。须采样到非空源端数组值以推断维度;`bpchar[]`
映射为 `ARRAY<STRING>` |
+| 其他类型 | 不支持 | |
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/data-operate/import/import-way/streaming-job/data-type-mapping-mysql.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/data-operate/import/import-way/streaming-job/data-type-mapping-mysql.md
index f9eca56ff40..303cd04436d 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/data-operate/import/import-way/streaming-job/data-type-mapping-mysql.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/data-operate/import/import-way/streaming-job/data-type-mapping-mysql.md
@@ -51,15 +51,16 @@ Doris 持续导入为实验性功能,自 Doris 4.1.5 版本起支持。
| `INT` | `INT` | `UNSIGNED` → `BIGINT` |
| `BIGINT` | `BIGINT` | `UNSIGNED` → `LARGEINT` |
| `YEAR` | `SMALLINT` | 按整数年份读取,而不是按日期读取;MySQL 的零年(`0000`)保留为 `0` |
-| `FLOAT` | `FLOAT` | |
-| `DOUBLE` | `DOUBLE` | |
-| `DECIMAL(p,s)` | `DECIMAL(p,s)` | 超高精度回退为 `STRING` |
+| `FLOAT` / `FLOAT UNSIGNED` | `FLOAT` | |
+| `DOUBLE` / `DOUBLE UNSIGNED` | `DOUBLE` | |
+| `DECIMAL(p,s)` | `DECIMAL(p,s)` / `STRING` | 精度超过 38 时转为 `STRING` |
+| `DECIMAL(p,s) UNSIGNED` | `DECIMAL(p+1,s)` / `STRING` | 精度扩展 1 位;超过 38 时转为
`STRING` |
| `DATE` | `DATE` | |
| `DATETIME` | `DATETIME(s)` | 保留微秒精度(0–6) |
| `TIMESTAMP` | `DATETIME(s)` | 按 server 时区归一 |
| `TIME` | `STRING` | 以字符串存储,如 `12:34:56.000000` |
-| `CHAR` | `CHAR` | |
-| `VARCHAR` | `VARCHAR` | |
+| `CHAR(n)` | `CHAR` / `VARCHAR` | 长度 ×3 以兼容 UTF-8;`> 255` 转为 `VARCHAR` |
+| `VARCHAR(n)` | `VARCHAR` / `STRING` | 长度 ×3 以兼容 UTF-8;`> 65533` 转为 `STRING` |
| `TINYTEXT` / `TEXT` / `MEDIUMTEXT` / `LONGTEXT` | `STRING` | |
| `BINARY` / `VARBINARY` / `TINYBLOB` / `BLOB` / `MEDIUMBLOB` / `LONGBLOB` |
`STRING` | Base64 编码字符串 |
| `BIT(1)` | `BOOLEAN` | |
@@ -67,4 +68,4 @@ Doris 持续导入为实验性功能,自 Doris 4.1.5 版本起支持。
| `JSON` | `STRING` | 以 JSON 文本存储 |
| `ENUM` | `STRING` | 解析为标签值 |
| `SET` | `STRING` | 解析为逗号分隔的标签 |
-| 空间类型(`GEOMETRY`、`POINT` 等)及其他类型 | 不支持 | 含此类列的表自动建表会失败;可改用 SQL 映射同步(在
`SELECT` 中转换)或排除该列 |
+| 空间类型(`GEOMETRY`、`POINT` 等)及其他类型 | 不支持 | |
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/data-operate/import/import-way/streaming-job/data-type-mapping-oceanbase.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/data-operate/import/import-way/streaming-job/data-type-mapping-oceanbase.md
index 42c5859718c..fc335114c05 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/data-operate/import/import-way/streaming-job/data-type-mapping-oceanbase.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/data-operate/import/import-way/streaming-job/data-type-mapping-oceanbase.md
@@ -43,13 +43,14 @@ OceanBase CDC 持续导入仅支持 MySQL 兼容模式,并复用 MySQL 的类
| `YEAR` | `SMALLINT` | 按整数年份读取;零年(`0000`)保留为 `0`。 |
| `FLOAT` | `FLOAT` | |
| `DOUBLE` | `DOUBLE` | |
-| `DECIMAL(p,s)` | `DECIMAL(p,s)` | 超高精度回退为 `STRING`。 |
+| `DECIMAL(p,s)` | `DECIMAL(p,s)` / `STRING` | 精度超过 38 时转为 `STRING` |
+| `DECIMAL(p,s) UNSIGNED` | `DECIMAL(p+1,s)` / `STRING` | 精度扩展 1 位;超过 38 时转为
`STRING` |
| `DATE` | `DATE` | |
| `DATETIME` | `DATETIME(s)` | 保留微秒精度(0–6)。 |
| `TIMESTAMP` | `DATETIME(s)` | 按 server 时区归一。 |
| `TIME` | `STRING` | 以字符串存储,如 `12:34:56.000000`。 |
-| `CHAR` | `CHAR` | |
-| `VARCHAR` | `VARCHAR` | |
+| `CHAR(n)` | `CHAR` / `VARCHAR` | 长度 ×3 以兼容 UTF-8;`> 255` 转为 `VARCHAR` |
+| `VARCHAR(n)` | `VARCHAR` / `STRING` | 长度 ×3 以兼容 UTF-8;`> 65533` 转为 `STRING` |
| `TINYTEXT` / `TEXT` / `MEDIUMTEXT` / `LONGTEXT` | `STRING` | |
| `BINARY` / `VARBINARY` / `TINYBLOB` / `BLOB` / `MEDIUMBLOB` / `LONGBLOB` |
`STRING` | Base64 编码字符串。 |
| `BIT(1)` | `BOOLEAN` | |
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/data-operate/import/import-way/streaming-job/data-type-mapping-postgresql.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/data-operate/import/import-way/streaming-job/data-type-mapping-postgresql.md
index 3ee23854f31..08ba59b314f 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/data-operate/import/import-way/streaming-job/data-type-mapping-postgresql.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/data-operate/import/import-way/streaming-job/data-type-mapping-postgresql.md
@@ -25,24 +25,25 @@ Doris 持续导入为实验性功能,自 Doris 4.1.5 版本起支持。
| PostgreSQL 类型 | Doris 类型 | 备注 |
| --- | --- | --- |
-| `bool` | `BOOLEAN` | |
+| `bool` / `boolean` | `BOOLEAN` | |
| `bit(1)` | `BOOLEAN` | |
-| `bit(n>1)` / `varbit` | `STRING` | |
-| `int2` / `smallserial` | `SMALLINT` | |
-| `int4` / `serial` | `INT` | |
-| `int8` / `bigserial` | `BIGINT` | |
-| `float4` | `FLOAT` | |
-| `float8` | `DOUBLE` | |
-| `numeric(p,s)` | `DECIMAL(min(p,38), s)` | 精度上限 38;未指定 scale 时默认 9 |
+| `bit(n>1)` / `varbit` / `bit varying` | `STRING` | Base64 编码字符串 |
+| `int2` / `smallint` / `smallserial` | `SMALLINT` | |
+| `int4` / `integer` / `serial` | `INT` | |
+| `int8` / `bigint` / `bigserial` | `BIGINT` | |
+| `float4` / `real` | `FLOAT` | |
+| `float8` / `double precision` | `DOUBLE` | |
+| `numeric(p,s)` / `decimal(p,s)` | `DECIMAL(p,s)` / `STRING` | 精度超过 38 时转为
`STRING` |
| `bpchar(n)`(即 `CHAR(n)`) | `CHAR` / `VARCHAR` | 长度 ×3 以兼容 UTF-8;`> 255` 转为
`VARCHAR` |
| `varchar` / `text` | `STRING` | 注意:PostgreSQL `varchar` 映射为 `STRING`(不带长度) |
| `date` | `DATE` | |
-| `timestamp` / `timestamptz` | `DATETIME(s)` | 精度 0–6;`timestamptz` 按 server
时区归一 |
-| `time` / `timetz` / `interval` | `STRING` | `timetz` 保留其 UTC 归一后的偏移量 |
-| `uuid` / `inet` / `cidr` / `macaddr` / `macaddr8` | `STRING` | |
+| `timestamp` / `timestamp without time zone` / `timestamptz` / `timestamp
with time zone` | `DATETIME(s)` | 精度 0–6;`timestamptz` 按 server 时区归一 |
+| `time` / `time without time zone` / `timetz` / `time with time zone` /
`interval` | `STRING` | `timetz` 保留其 UTC 归一后的偏移量 |
+| `uuid` | `UUID` | |
+| `inet` / `cidr` / `macaddr` / `macaddr8` | `STRING` | |
| `bytea` | `STRING` | Base64 编码字符串 |
| `xml` / `hstore` | `STRING` | |
-| `json` / `jsonb` | `JSON` | |
-| 几何类型(`point`、`line`、`polygon` 等) | `STRING` | 序列化为 GeoJSON 字符串(`type` /
`coordinates` / `srid`) |
-| 数组类型(如 `int4[]`、`text[]`) | `ARRAY<T>` | 仅支持一维 |
-| 其他 / 用户自定义类型 | 不支持 | |
+| `json` / `jsonb` | `STRING` | 以 JSON 文本存储 |
+| `point` | `STRING` | 序列化为 GeoJSON 字符串(`type` / `coordinates` / `srid`) |
+| 数组类型 | `ARRAY<T>` | 仅支持一维。支持的元素类型:
`int2`、`int4`、`int8`、`float4`、`float8`、`numeric(p,s)`、`bool`、`bpchar`、`varchar`、`text`、`date`、`timestamp`、`timestamptz`、`json`、`jsonb`、`uuid`。须采样到非空源端数组值以推断维度;`bpchar[]`
映射为 `ARRAY<STRING>` |
+| 其他类型 | 不支持 | |
diff --git a/scripts/i18n/ci-sample.cjs b/scripts/i18n/ci-sample.cjs
index 9b0c0233a56..b1a7dac6211 100644
--- a/scripts/i18n/ci-sample.cjs
+++ b/scripts/i18n/ci-sample.cjs
@@ -593,6 +593,9 @@ async function install({root, outDir, locale, planFile}) {
)) {
for (const version of plugin.content.loadedVersions)
version.docs = version.docs.filter(d =>
chosen.has(key(d.permalink)));
+ plugin.content.loadedVersions =
plugin.content.loadedVersions.filter(
+ version => version.docs.length > 0,
+ );
if (plugin.content.translationManifest)
plugin.content.translationManifest.pages =
plugin.content.translationManifest.pages.filter(p =>
diff --git
a/versioned_docs/version-4.x/data-operate/import/import-way/streaming-job/data-type-mapping-mysql.md
b/versioned_docs/version-4.x/data-operate/import/import-way/streaming-job/data-type-mapping-mysql.md
index d003c0256a4..107038dee64 100644
---
a/versioned_docs/version-4.x/data-operate/import/import-way/streaming-job/data-type-mapping-mysql.md
+++
b/versioned_docs/version-4.x/data-operate/import/import-way/streaming-job/data-type-mapping-mysql.md
@@ -51,15 +51,16 @@ To read `TINYINT(1)` as `BOOLEAN` or `YEAR` as a date,
explicitly set `tinyInt1i
| `INT` | `INT` | `UNSIGNED` → `BIGINT` |
| `BIGINT` | `BIGINT` | `UNSIGNED` → `LARGEINT` |
| `YEAR` | `SMALLINT` | The value is read as an integer year rather than as a
date; the MySQL zero year (`0000`) is kept as `0` |
-| `FLOAT` | `FLOAT` | |
-| `DOUBLE` | `DOUBLE` | |
-| `DECIMAL(p,s)` | `DECIMAL(p,s)` | Very high precision falls back to `STRING`
|
+| `FLOAT` / `FLOAT UNSIGNED` | `FLOAT` | |
+| `DOUBLE` / `DOUBLE UNSIGNED` | `DOUBLE` | |
+| `DECIMAL(p,s)` | `DECIMAL(p,s)` / `STRING` | Precision above 38 maps to
`STRING` |
+| `DECIMAL(p,s) UNSIGNED` | `DECIMAL(p+1,s)` / `STRING` | Precision expanded
by 1; above 38 maps to `STRING` |
| `DATE` | `DATE` | |
| `DATETIME` | `DATETIME(s)` | Microsecond scale (0–6) preserved |
| `TIMESTAMP` | `DATETIME(s)` | Normalized to the server time zone |
| `TIME` | `STRING` | Serialized as a string, e.g. `12:34:56.000000` |
-| `CHAR` | `CHAR` | |
-| `VARCHAR` | `VARCHAR` | |
+| `CHAR(n)` | `CHAR` / `VARCHAR` | Length scaled ×3 for UTF-8; above 255
becomes `VARCHAR` |
+| `VARCHAR(n)` | `VARCHAR` / `STRING` | Length scaled ×3 for UTF-8; above
65533 becomes `STRING` |
| `TINYTEXT` / `TEXT` / `MEDIUMTEXT` / `LONGTEXT` | `STRING` | |
| `BINARY` / `VARBINARY` / `TINYBLOB` / `BLOB` / `MEDIUMBLOB` / `LONGBLOB` |
`STRING` | Base64-encoded string |
| `BIT(1)` | `BOOLEAN` | |
@@ -67,4 +68,4 @@ To read `TINYINT(1)` as `BOOLEAN` or `YEAR` as a date,
explicitly set `tinyInt1i
| `JSON` | `STRING` | Stored as JSON text |
| `ENUM` | `STRING` | Resolved to the label value |
| `SET` | `STRING` | Resolved to comma-separated labels |
-| Spatial types (`GEOMETRY`, `POINT`, …) and other types | Not supported |
Auto Table Creation fails for tables with such columns; use SQL Mapping Sync
(cast in `SELECT`) or exclude the column |
+| Spatial types (`GEOMETRY`, `POINT`, …) and other types | Not supported | |
diff --git
a/versioned_docs/version-4.x/data-operate/import/import-way/streaming-job/data-type-mapping-oceanbase.md
b/versioned_docs/version-4.x/data-operate/import/import-way/streaming-job/data-type-mapping-oceanbase.md
index 6d449674101..1a7155573ef 100644
---
a/versioned_docs/version-4.x/data-operate/import/import-way/streaming-job/data-type-mapping-oceanbase.md
+++
b/versioned_docs/version-4.x/data-operate/import/import-way/streaming-job/data-type-mapping-oceanbase.md
@@ -43,13 +43,14 @@ If any of these parameters is set explicitly in `jdbc_url`,
Doris keeps the conf
| `YEAR` | `SMALLINT` | Read as an integer year; zero year (`0000`) is
preserved as `0`. |
| `FLOAT` | `FLOAT` | |
| `DOUBLE` | `DOUBLE` | |
-| `DECIMAL(p,s)` | `DECIMAL(p,s)` | Very high precision falls back to
`STRING`. |
+| `DECIMAL(p,s)` | `DECIMAL(p,s)` / `STRING` | Precision above 38 maps to
`STRING` |
+| `DECIMAL(p,s) UNSIGNED` | `DECIMAL(p+1,s)` / `STRING` | Precision expanded
by 1; above 38 maps to `STRING` |
| `DATE` | `DATE` | |
| `DATETIME` | `DATETIME(s)` | Preserves microsecond scale from 0 to 6. |
| `TIMESTAMP` | `DATETIME(s)` | Normalized to the server time zone. |
| `TIME` | `STRING` | Stored as a string, for example, `12:34:56.000000`. |
-| `CHAR` | `CHAR` | |
-| `VARCHAR` | `VARCHAR` | |
+| `CHAR(n)` | `CHAR` / `VARCHAR` | Length scaled ×3 for UTF-8; above 255
becomes `VARCHAR` |
+| `VARCHAR(n)` | `VARCHAR` / `STRING` | Length scaled ×3 for UTF-8; above
65533 becomes `STRING` |
| `TINYTEXT` / `TEXT` / `MEDIUMTEXT` / `LONGTEXT` | `STRING` | |
| `BINARY` / `VARBINARY` / `TINYBLOB` / `BLOB` / `MEDIUMBLOB` / `LONGBLOB` |
`STRING` | Base64-encoded string. |
| `BIT(1)` | `BOOLEAN` | |
diff --git
a/versioned_docs/version-4.x/data-operate/import/import-way/streaming-job/data-type-mapping-postgresql.md
b/versioned_docs/version-4.x/data-operate/import/import-way/streaming-job/data-type-mapping-postgresql.md
index 6e63d93f62b..4563abf823f 100644
---
a/versioned_docs/version-4.x/data-operate/import/import-way/streaming-job/data-type-mapping-postgresql.md
+++
b/versioned_docs/version-4.x/data-operate/import/import-way/streaming-job/data-type-mapping-postgresql.md
@@ -25,24 +25,25 @@ In both cases, the values are written following the same
mapping. For types that
| PostgreSQL Type | Doris Type | Notes |
| --- | --- | --- |
-| `bool` | `BOOLEAN` | |
+| `bool` / `boolean` | `BOOLEAN` | |
| `bit(1)` | `BOOLEAN` | |
-| `bit(n>1)` / `varbit` | `STRING` | |
-| `int2` / `smallserial` | `SMALLINT` | |
-| `int4` / `serial` | `INT` | |
-| `int8` / `bigserial` | `BIGINT` | |
-| `float4` | `FLOAT` | |
-| `float8` | `DOUBLE` | |
-| `numeric(p,s)` | `DECIMAL(min(p,38), s)` | Precision capped at 38; scale
defaults to 9 when unspecified |
-| `bpchar(n)` (i.e. `CHAR(n)`) | `CHAR` / `VARCHAR` | Length scaled ×3 for
UTF-8; `> 255` becomes `VARCHAR` |
+| `bit(n>1)` / `varbit` / `bit varying` | `STRING` | Base64-encoded string |
+| `int2` / `smallint` / `smallserial` | `SMALLINT` | |
+| `int4` / `integer` / `serial` | `INT` | |
+| `int8` / `bigint` / `bigserial` | `BIGINT` | |
+| `float4` / `real` | `FLOAT` | |
+| `float8` / `double precision` | `DOUBLE` | |
+| `numeric(p,s)` / `decimal(p,s)` | `DECIMAL(p,s)` / `STRING` | Precision
above 38 maps to `STRING` |
+| `bpchar(n)` (i.e. `CHAR(n)`) | `CHAR` / `VARCHAR` | Length scaled ×3 for
UTF-8; above 255 becomes `VARCHAR` |
| `varchar` / `text` | `STRING` | PostgreSQL `varchar` maps to `STRING` (no
length) |
| `date` | `DATE` | |
-| `timestamp` / `timestamptz` | `DATETIME(s)` | Scale 0–6; `timestamptz`
normalized to the server time zone |
-| `time` / `timetz` / `interval` | `STRING` | `timetz` keeps its
UTC-normalized offset |
-| `uuid` / `inet` / `cidr` / `macaddr` / `macaddr8` | `STRING` | |
+| `timestamp` / `timestamp without time zone` / `timestamptz` / `timestamp
with time zone` | `DATETIME(s)` | Scale 0–6; `timestamptz` normalized to the
server time zone |
+| `time` / `time without time zone` / `timetz` / `time with time zone` /
`interval` | `STRING` | `timetz` keeps its UTC-normalized offset |
+| `uuid` | `UUID` | |
+| `inet` / `cidr` / `macaddr` / `macaddr8` | `STRING` | |
| `bytea` | `STRING` | Base64-encoded string |
| `xml` / `hstore` | `STRING` | |
-| `json` / `jsonb` | `JSON` | |
-| Geometry types (`point`, `line`, `polygon`, …) | `STRING` | Serialized as a
GeoJSON string (`type` / `coordinates` / `srid`) |
-| Array types (e.g. `int4[]`, `text[]`) | `ARRAY<T>` | One-dimensional only |
-| Other / user-defined types | Not supported | |
+| `json` / `jsonb` | `STRING` | Stored as JSON text |
+| `point` | `STRING` | Serialized as a GeoJSON string (`type` / `coordinates`
/ `srid`) |
+| Array types | `ARRAY<T>` | One-dimensional only. Supported element types:
`int2`, `int4`, `int8`, `float4`, `float8`, `numeric(p,s)`, `bool`, `bpchar`,
`varchar`, `text`, `date`, `timestamp`, `timestamptz`, `json`, `jsonb`, `uuid`.
A non-empty source value must be sampled to infer dimensions; `bpchar[]` maps
to `ARRAY<STRING>` |
+| Other types | Not supported | |
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]