This is an automated email from the ASF dual-hosted git repository. xuyang 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 454e21daca [Docs](array type) Update array type documentation (#12097) 454e21daca is described below commit 454e21daca4e5da9cdbc22f0292b261542503718 Author: xy720 <22125576+xy...@users.noreply.github.com> AuthorDate: Mon Aug 29 15:03:26 2022 +0800 [Docs](array type) Update array type documentation (#12097) --- docs/en/docs/sql-manual/sql-reference/Data-Types/ARRAY.md | 10 ++++++++-- docs/zh-CN/docs/sql-manual/sql-reference/Data-Types/ARRAY.md | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/docs/en/docs/sql-manual/sql-reference/Data-Types/ARRAY.md b/docs/en/docs/sql-manual/sql-reference/Data-Types/ARRAY.md index 81775340d6..41a5910b32 100644 --- a/docs/en/docs/sql-manual/sql-reference/Data-Types/ARRAY.md +++ b/docs/en/docs/sql-manual/sql-reference/Data-Types/ARRAY.md @@ -40,7 +40,13 @@ DATETIME, CHAR, VARCHAR, STRING ``` ### notice -We should add config `enable_array_type=true` inside fe.conf before use ARRAY +We should turn on the switch for the ARRAY types feature with the following command before use: + +``` +$ mysql-client > admin set frontend config("enable_array_type"="true"); +``` + +In this way the config will be reset after the FE process restarts. For permanent setting, you can add config `enable_array_type=true` inside fe.conf. ### example @@ -84,4 +90,4 @@ mysql> SELECT * FROM `array_test`; ### keywords - ARRAY, array_contains, array_position, element_at + ARRAY diff --git a/docs/zh-CN/docs/sql-manual/sql-reference/Data-Types/ARRAY.md b/docs/zh-CN/docs/sql-manual/sql-reference/Data-Types/ARRAY.md index 753234e98d..e75233931a 100644 --- a/docs/zh-CN/docs/sql-manual/sql-reference/Data-Types/ARRAY.md +++ b/docs/zh-CN/docs/sql-manual/sql-reference/Data-Types/ARRAY.md @@ -41,7 +41,13 @@ DATETIME, CHAR, VARCHAR, STRING ### notice -使用前需要在fe.conf中添加`enable_array_type=true`配置项 +使用前可以通过如下命令打开Array开关: + +``` +$ mysql-client > admin set frontend config("enable_array_type"="true"); +``` + +这种方式下Array开关会在Fe进程重启后重置,或者在fe.conf中添加`enable_array_type=true`配置项可永久生效。 ### example @@ -85,4 +91,4 @@ mysql> SELECT * FROM `array_test`; ### keywords - ARRAY, array_contains, array_position, element_at + ARRAY --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org