RocMarshal commented on a change in pull request #17508:
URL: https://github.com/apache/flink/pull/17508#discussion_r732452207
##########
File path: docs/data/sql_functions_zh.yml
##########
@@ -799,22 +792,20 @@ json:
DEFAULT FALSE ON ERROR)
-- 0.998D
- JSON_VALUE('{"a.b": [0.998,0.996]}','$.["a.b"][0]'
+ JSON_VALUE('{"a.b": [0.998,0.996]}','$.["a.b"][0]'
RETURNING DOUBLE)
```
- sql: JSON_QUERY(jsonValue, path [ { WITHOUT | WITH CONDITIONAL | WITH
UNCONDITIONAL } [ ARRAY ] WRAPPER ] [ { NULL | EMPTY ARRAY | EMPTY OBJECT |
ERROR } ON EMPTY ] [ { NULL | EMPTY ARRAY | EMPTY OBJECT | ERROR } ON ERROR ])
table: STRING.jsonQuery(path [, JsonQueryWrapper [,
JsonQueryOnEmptyOrError, JsonQueryOnEmptyOrError ] ])
description: |
- Extracts JSON values from a JSON string.
+ 从 JSON 字符串中提取 JSON 值。
- The result is always returned as a `STRING`. The `RETURNING` clause is
currently not supported.
+ 结果总是以 'STRING' 的形式返回。'RETURNING' 的子句目前不受支持。
- The `wrappingBehavior` determines whether the extracted value should be
wrapped into an array,
- and whether to do so unconditionally or only if the value itself isn't
an array already.
+ 'wrappingBehavior' 决定是否将提取的值包装到一个数组中,以及是否无条件地这样做,还是只有当值本身不是数组时才这样做。
- `onEmpty` and `onError` determine the behavior in case the path
expression is empty, or in
- case an error was raised, respectively. By default, in both cases `null`
is returned. Other
- choices are to use an empty array, an empty object, or to raise an error.
+ 'onEmpty' 和 'onError' 分别决定路径表达式为空或引发错误时的行为。默认情况下,这两种情况都会返回 'null'。其他选择是
Review comment:
the quote cases mentioned above.
--
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]