This is an automated email from the ASF dual-hosted git repository.

ashingau pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new cad3d8fb993 [doc](complex type) add docs for complex and nested types 
(#25865)
cad3d8fb993 is described below

commit cad3d8fb9935b92735ac19ebcf1bde7133005917
Author: Ashin Gau <ashin...@users.noreply.github.com>
AuthorDate: Fri Oct 27 15:04:53 2023 +0800

    [doc](complex type) add docs for complex and nested types (#25865)
    
    Add docs for complex and nested types.
---
 docs/en/docs/ecosystem/udf/java-user-defined-function.md    | 2 +-
 docs/en/docs/lakehouse/multi-catalog/hive.md                | 6 +++---
 docs/zh-CN/docs/ecosystem/udf/java-user-defined-function.md | 2 +-
 docs/zh-CN/docs/lakehouse/multi-catalog/hive.md             | 6 +++---
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/docs/en/docs/ecosystem/udf/java-user-defined-function.md 
b/docs/en/docs/ecosystem/udf/java-user-defined-function.md
index d1e3ee29984..ead333c0080 100644
--- a/docs/en/docs/ecosystem/udf/java-user-defined-function.md
+++ b/docs/en/docs/ecosystem/udf/java-user-defined-function.md
@@ -61,7 +61,7 @@ Java UDF provides users with a Java interface written in UDF 
to facilitate the e
 |```array<Type>```|```ArrayList<Type>```|
 |```map<Type1,Type2>```|```HashMap<Type1,Type2>```|
 
-* Array/Map types can nested basic types, Eg: In Doris: ```array<int>``` 
corresponds to JAVA UDF Argument Type: ```ArrayList<Integer>```, Others is also.
+* Array/Map types can nested other types, Eg: In Doris: 
```array<array<int>>``` corresponds to JAVA UDF Argument Type: 
```ArrayList<ArrayList<Integer>>```, and so on.
 ## Write UDF functions
 
 This section mainly introduces how to develop a Java UDF. Samples for the Java 
version are provided under `samples/doris-demo/java-udf-demo/` for your 
reference, Check it out 
[here](https://github.com/apache/incubator-doris/tree/master/samples/doris-demo/java-udf-demo)
diff --git a/docs/en/docs/lakehouse/multi-catalog/hive.md 
b/docs/en/docs/lakehouse/multi-catalog/hive.md
index 398468a611a..4724d0e903b 100644
--- a/docs/en/docs/lakehouse/multi-catalog/hive.md
+++ b/docs/en/docs/lakehouse/multi-catalog/hive.md
@@ -390,9 +390,9 @@ For Hive/Iceberge/Hudi
 | char| char | |
 | 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, ... 需要为基础类型 |
+| `array<type>` | `array<type>`| support nested type, for example 
`array<array<int>>` |
+| `map<KeyType, ValueType>` | `map<KeyType, ValueType>` | support nested type, 
for example `map<string, array<int>>` |
+| `struct<col1: Type1, col2: Type2, ...>` | `struct<col1: Type1, col2: Type2, 
...>` | support nested type, for example `struct<col1: array<int>, col2: 
map<int, date>>` |
 | other | unsupported | |
 
 ## Whether to truncate char or varchar columns according to the schema of the 
hive table
diff --git a/docs/zh-CN/docs/ecosystem/udf/java-user-defined-function.md 
b/docs/zh-CN/docs/ecosystem/udf/java-user-defined-function.md
index e7e37b56e5a..0888cdd5d09 100644
--- a/docs/zh-CN/docs/ecosystem/udf/java-user-defined-function.md
+++ b/docs/zh-CN/docs/ecosystem/udf/java-user-defined-function.md
@@ -59,7 +59,7 @@ Java UDF 为用户提供UDF编写的Java接口,以方便用户使用Java语言
 |```array<Type>```|```ArrayList<Type>```|
 |```map<Type1,Type2>```|```HashMap<Type1,Type2>```|
 
-* array/map类型可以嵌套基本类型,例如Doris: ```array<int>```对应JAVA UDF Argument Type: 
```ArrayList<Integer>```, 其他依此类推
+* array/map类型可以嵌套其它类型,例如Doris: ```array<array<int>>```对应JAVA UDF Argument 
Type: ```ArrayList<ArrayList<Integer>>```, 其他依此类推
 ## 编写 UDF 函数
 
 本小节主要介绍如何开发一个 Java UDF。在 `samples/doris-demo/java-udf-demo/` 
下提供了示例,可供参考,查看点击[这里](https://github.com/apache/doris/tree/master/samples/doris-demo/java-udf-demo)
diff --git a/docs/zh-CN/docs/lakehouse/multi-catalog/hive.md 
b/docs/zh-CN/docs/lakehouse/multi-catalog/hive.md
index 4ed341b7a1e..09fbe4b2178 100644
--- a/docs/zh-CN/docs/lakehouse/multi-catalog/hive.md
+++ b/docs/zh-CN/docs/lakehouse/multi-catalog/hive.md
@@ -369,9 +369,9 @@ CREATE CATALOG hive PROPERTIES (
 | char| char | |
 | 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, ... 需要为基础类型 |
+| `array<type>` | `array<type>`| 支持嵌套,如 `array<map<string, int>>` |
+| `map<KeyType, ValueType>` | `map<KeyType, ValueType>` | 支持嵌套,如 `map<string, 
array<int>>` |
+| `struct<col1: Type1, col2: Type2, ...>` | `struct<col1: Type1, col2: Type2, 
...>` | 支持嵌套,如 `struct<col1: array<int>, col2: map<int, date>>` |
 | other | unsupported | |
 
 ## 是否按照 hive 表的 schema 来截断 char 或者 varchar 列


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to