This is an automated email from the ASF dual-hosted git repository. kassiez 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 f8406b7ae9e adjust doc of array flatten (#2004) f8406b7ae9e is described below commit f8406b7ae9ef7d82b57a3fd26bb1eae90b363939 Author: Pxl <pxl...@qq.com> AuthorDate: Tue Feb 11 19:36:28 2025 +0800 adjust doc of array flatten (#2004) ## Versions - [X] dev - [ ] 3.0 - [ ] 2.1 - [ ] 2.0 ## Languages - [x] Chinese - [x] English ## Docs Checklist - [x] Checked by AI - [x] Test Cases Built --- .../array-functions/array-flatten.md | 26 ++++++++++++---------- .../array-functions/array-flatten.md | 22 +++++++++--------- 2 files changed, 26 insertions(+), 22 deletions(-) diff --git a/docs/sql-manual/sql-functions/scalar-functions/array-functions/array-flatten.md b/docs/sql-manual/sql-functions/scalar-functions/array-functions/array-flatten.md index 1d29c2c2a05..f24a8488371 100644 --- a/docs/sql-manual/sql-functions/scalar-functions/array-functions/array-flatten.md +++ b/docs/sql-manual/sql-functions/scalar-functions/array-functions/array-flatten.md @@ -24,21 +24,27 @@ specific language governing permissions and limitations under the License. --> -## array_flatten +## Description -array_flatten - -### description +Flatten a multidimensional array into one dimension. -#### Syntax +## Syntax ```sql -ARRAY<T> array_flatten(ARRAY<ARRAY<T>> array1) +array_flatten(<a>) ``` -Flatten a multidimensional array into one dimension. +## Parameters + +| Parameter | Description | +| --- | --- | +| `<a>` | ARRAY array | -### example +## Return Value + +Returns the flattened array + +## Example ```sql mysql> select array_flatten([[1,2,3],[4,5]]); @@ -57,7 +63,3 @@ mysql> select array_flatten([[[[[[1,2,3,4,5],[6,7],[8,9],[10,11],[12]],[[13]]],[ +-------------------------------------------------------------------------------+ 1 row in set (0.02 sec) ``` - -### keywords - -ARRAY,ARRAY_FLATTEN diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-flatten.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-flatten.md index 71df5283691..b36cfbfc853 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-flatten.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-flatten.md @@ -24,19 +24,25 @@ specific language governing permissions and limitations under the License. --> -## array_flatten - -array_flatten - ## 描述 +将多维数组展平成一维。 + ## 语法 ```sql -ARRAY<T> array_flatten(ARRAY<ARRAY<T>> array1) +array_flatten(<a>) ``` -将多维数组展平成一维。 +## 参数 + +| 参数 | 说明 | +| -- | -- | +| `<a>` | 需要被展平的数组| + +## 返回值 + +被展平的结果。 ## 举例 @@ -57,7 +63,3 @@ mysql> select array_flatten([[[[[[1,2,3,4,5],[6,7],[8,9],[10,11],[12]],[[13]]],[ +-------------------------------------------------------------------------------+ 1 row in set (0.02 sec) ``` - -### keywords - -ARRAY,ARRAY_FLATTEN --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org