morrySnow commented on code in PR #1809:
URL: https://github.com/apache/doris-website/pull/1809#discussion_r1917905952


##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/json-functions/json-array.md:
##########
@@ -24,47 +24,73 @@ specific language governing permissions and limitations
 under the License.
 -->
 
-## json_array
 ## 描述
+
+生成一个包含制定元素的 json 数组,未指定时返回空数组 
+
 ## 语法
 
-`VARCHAR json_array(VARCHAR,...)`
+```sql
+VARCHAR JSON_ARRAY(<a>, ...)   

Review Comment:
   ```suggestion
   JSON_ARRAY(<a>, ...)   
   ```



##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/json-functions/json-array.md:
##########
@@ -24,47 +24,73 @@ specific language governing permissions and limitations
 under the License.
 -->
 
-## json_array
 ## 描述
+
+生成一个包含制定元素的 json 数组,未指定时返回空数组 
+
 ## 语法
 
-`VARCHAR json_array(VARCHAR,...)`
+```sql
+VARCHAR JSON_ARRAY(<a>, ...)   
+```
 
+## 参数
 
-生成一个包含指定元素的json数组,未指定时返回空数组
+| 参数 | 描述                                                         |
+|------|------------------------------------------------------------|
+| `<a>, ...` | 要包含在 JSON 数组中的元素。可以是单个或者多个任意类型的值,包括`NULL`。如果没有指定元素,则返回一个空数组。 |
 
-## 举例
+## 返回值
 
-```
+返回一个包含指定元素的 JSON 数组。特殊情况:
+* 如果指定的元素为`NULL`,则返回`NULL`。
+
+## 示例
+
+```sql
 MySQL> select json_array();

Review Comment:
   去掉prompt
   ```suggestion
   select JSON_ARRAY();
   ```



##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/json-functions/json-array.md:
##########
@@ -24,47 +24,73 @@ specific language governing permissions and limitations
 under the License.
 -->
 
-## json_array
 ## 描述
+
+生成一个包含制定元素的 json 数组,未指定时返回空数组 
+
 ## 语法
 
-`VARCHAR json_array(VARCHAR,...)`
+```sql
+VARCHAR JSON_ARRAY(<a>, ...)   
+```
 
+## 参数
 
-生成一个包含指定元素的json数组,未指定时返回空数组
+| 参数 | 描述                                                         |
+|------|------------------------------------------------------------|
+| `<a>, ...` | 要包含在 JSON 数组中的元素。可以是单个或者多个任意类型的值,包括`NULL`。如果没有指定元素,则返回一个空数组。 |
 
-## 举例
+## 返回值
 
-```
+返回一个包含指定元素的 JSON 数组。特殊情况:
+* 如果指定的元素为`NULL`,则返回`NULL`。
+
+## 示例
+
+```sql
 MySQL> select json_array();
+```
+
+```text
 +--------------+
 | json_array() |
 +--------------+
 | []           |
 +--------------+
+```
 
+```sql
 MySQL> select json_array(null);

Review Comment:
   同上



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to