RocMarshal commented on a change in pull request #17508:
URL: https://github.com/apache/flink/pull/17508#discussion_r732456958
##########
File path: docs/data/sql_functions_zh.yml
##########
@@ -850,16 +841,13 @@ json:
- sql: JSON_OBJECT([[KEY] key VALUE value]* [ { NULL | ABSENT } ON NULL ])
table: jsonObject(JsonOnNull, keyValues...)
description: |
- Builds a JSON object string from a list of key-value pairs.
+ 将一个键值对的列表构建成 JSON 对象字符串。
- Note that keys must be non-`NULL` string literals, while values may be
arbitrary expressions.
+ 注意,键必须是非 'NULL' 字符串自变量,而值可以是任意表达式。
- This function returns a JSON string. The `ON NULL` behavior defines how
to treat `NULL`
- values. If omitted, `NULL ON NULL` is assumed by default.
+ 这个函数返回一个 JSON 字符串。'ON NULL' 行为定义了如何处理 'NULL' 值。如果省略,则默认为 'NULL ON NULL'。
- Values which are created from another JSON construction function call
(`JSON_OBJECT`,
- `JSON_ARRAY`) are inserted directly rather than as a string. This allows
building nested JSON
- structures.
+ 值是由另一个 JSON 构造函数调用 ('JSON_OBJECT','JSON_ARRAY')
直接插入所创建,而不是作为一个字符串。他允许构建嵌套的JSON结构。
Review comment:
值作为由另一个 JSON 构造函数调用 (\`JSON_OBJECT\`, \`JSON_ARRAY\`)
创建的值被直接插入当前对象而不是作为字符串插入。这允许构建嵌套的 JSON 结构。
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]