[doc](multi-catalog) column type mapping for map&struct types (#17591)

This commit is contained in:
Ashin Gau
2023-03-09 19:47:11 +08:00
committed by GitHub
parent 0432ba8b33
commit 53bf1271ec
4 changed files with 6 additions and 2 deletions

View File

@ -194,4 +194,6 @@ This is applicable for Hive/Iceberge/Hudi.
| varchar | varchar | |
| decimal | decimal | |
| `array<type>` | `array<type>` | Support nested array, such as `array<array<int>>` |
| `map<KeyType, ValueType>` | `map<KeyType, ValueType>` | Not support nested map. KeyType and ValueType should be primitive types. |
| `struct<col1: Type1, col2: Type2, ...>` | `struct<col1: Type1, col2: Type2, ...>` | Not support nested struct. Type1, Type2, ... should be primitive types. |
| other | unsupported | |

View File

@ -273,7 +273,7 @@ After you create a Catalog, Doris will automatically synchronize the databases a
<version since="dev">
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:

View File

@ -187,4 +187,6 @@ CREATE CATALOG hive PROPERTIES (
| varchar| varchar| |
| decimal| decimal | |
| `array<type>` | `array<type>`| 支持array嵌套,如 `array<array<int>>` |
| `map<KeyType, ValueType>` | `map<KeyType, ValueType>` | 暂不支持嵌套,KeyType 和 ValueType 需要为基础类型 |
| `struct<col1: Type1, col2: Type2, ...>` | `struct<col1: Type1, col2: Type2, ...>` | 暂不支持嵌套,Type1, Type2, ... 需要为基础类型 |
| other | unsupported | |

View File

@ -275,7 +275,7 @@ under the License.
<version since="dev">
对于当前无法映射到 Doris 列类型的外表类型,如 map,struct 等。Doris 会将列类型映射为 UNSUPPORTED 类型。对于 UNSUPPORTED 类型的查询,示例如下:
对于当前无法映射到 Doris 列类型的外表类型,如 `UNION`, `INTERVAL` 等。Doris 会将列类型映射为 UNSUPPORTED 类型。对于 UNSUPPORTED 类型的查询,示例如下:
假设同步后的表 schema 为: