From 53bf1271ecaefcbc64ad87381c5c27a3f274debf Mon Sep 17 00:00:00 2001 From: Ashin Gau Date: Thu, 9 Mar 2023 19:47:11 +0800 Subject: [PATCH] [doc](multi-catalog) column type mapping for map&struct types (#17591) --- docs/en/docs/lakehouse/multi-catalog/hive.md | 2 ++ docs/en/docs/lakehouse/multi-catalog/multi-catalog.md | 2 +- docs/zh-CN/docs/lakehouse/multi-catalog/hive.md | 2 ++ docs/zh-CN/docs/lakehouse/multi-catalog/multi-catalog.md | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/en/docs/lakehouse/multi-catalog/hive.md b/docs/en/docs/lakehouse/multi-catalog/hive.md index 8415433045..8b83e2e0be 100644 --- a/docs/en/docs/lakehouse/multi-catalog/hive.md +++ b/docs/en/docs/lakehouse/multi-catalog/hive.md @@ -194,4 +194,6 @@ This is applicable for Hive/Iceberge/Hudi. | varchar | varchar | | | decimal | decimal | | | `array` | `array` | Support nested array, such as `array>` | +| `map` | `map` | Not support nested map. KeyType and ValueType should be primitive types. | +| `struct` | `struct` | Not support nested struct. Type1, Type2, ... should be primitive types. | | other | unsupported | | diff --git a/docs/en/docs/lakehouse/multi-catalog/multi-catalog.md b/docs/en/docs/lakehouse/multi-catalog/multi-catalog.md index 71c855afda..41c15787ba 100644 --- a/docs/en/docs/lakehouse/multi-catalog/multi-catalog.md +++ b/docs/en/docs/lakehouse/multi-catalog/multi-catalog.md @@ -273,7 +273,7 @@ After you create a Catalog, Doris will automatically synchronize the databases a -As for types that cannot be mapped to a Doris column type, such as `map` and `struct` , Doris will map them to an UNSUPPORTED type. Here are examples of queries in a table containing UNSUPPORTED types: +As for types that cannot be mapped to a Doris column type, such as `UNION` and `INTERVAL` , Doris will map them to an UNSUPPORTED type. Here are examples of queries in a table containing UNSUPPORTED types: Suppose the table is of the following schema: diff --git a/docs/zh-CN/docs/lakehouse/multi-catalog/hive.md b/docs/zh-CN/docs/lakehouse/multi-catalog/hive.md index 650f444dad..8c7ddcbc58 100644 --- a/docs/zh-CN/docs/lakehouse/multi-catalog/hive.md +++ b/docs/zh-CN/docs/lakehouse/multi-catalog/hive.md @@ -187,4 +187,6 @@ CREATE CATALOG hive PROPERTIES ( | varchar| varchar| | | decimal| decimal | | | `array` | `array`| 支持array嵌套,如 `array>` | +| `map` | `map` | 暂不支持嵌套,KeyType 和 ValueType 需要为基础类型 | +| `struct` | `struct` | 暂不支持嵌套,Type1, Type2, ... 需要为基础类型 | | other | unsupported | | diff --git a/docs/zh-CN/docs/lakehouse/multi-catalog/multi-catalog.md b/docs/zh-CN/docs/lakehouse/multi-catalog/multi-catalog.md index 8554b9c49b..9234fbc4bc 100644 --- a/docs/zh-CN/docs/lakehouse/multi-catalog/multi-catalog.md +++ b/docs/zh-CN/docs/lakehouse/multi-catalog/multi-catalog.md @@ -275,7 +275,7 @@ under the License. -对于当前无法映射到 Doris 列类型的外表类型,如 map,struct 等。Doris 会将列类型映射为 UNSUPPORTED 类型。对于 UNSUPPORTED 类型的查询,示例如下: +对于当前无法映射到 Doris 列类型的外表类型,如 `UNION`, `INTERVAL` 等。Doris 会将列类型映射为 UNSUPPORTED 类型。对于 UNSUPPORTED 类型的查询,示例如下: 假设同步后的表 schema 为: