[doc](multi-catalog) column type mapping for map&struct types (#17591)
This commit is contained in:
@ -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 | |
|
||||
|
||||
@ -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:
|
||||
|
||||
|
||||
@ -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 | |
|
||||
|
||||
@ -275,7 +275,7 @@ under the License.
|
||||
|
||||
<version since="dev">
|
||||
|
||||
对于当前无法映射到 Doris 列类型的外表类型,如 map,struct 等。Doris 会将列类型映射为 UNSUPPORTED 类型。对于 UNSUPPORTED 类型的查询,示例如下:
|
||||
对于当前无法映射到 Doris 列类型的外表类型,如 `UNION`, `INTERVAL` 等。Doris 会将列类型映射为 UNSUPPORTED 类型。对于 UNSUPPORTED 类型的查询,示例如下:
|
||||
|
||||
假设同步后的表 schema 为:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user