Skip to content

Commit dc3006f

Browse files
AI Translate 0-json to Simplified-Chinese (#2485)
* [INIT] Start translation to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese * 🌐 Translate _category_.json to Simplified-Chinese --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 93251b7 commit dc3006f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+457
-445
lines changed

.translation-init

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Translation initialization: 2025-07-01T10:48:31.183277
1+
Translation initialization: 2025-07-01T12:14:51.978994

docs/cn/sql-reference/20-sql-functions/10-semi-structured-functions/0-json/check-json.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: CHECK_JSON
33
---
44

55
检查 JSON 文档的有效性。
6-
如果输入字符串是有效的 JSON 文档或 `NULL`则输出 `NULL`
7-
如果输入无法解析为有效的 JSON 值,则输出字符串包含错误信息。
6+
如果输入字符串是有效的 JSON 文档或 `NULL`则输出为 `NULL`
7+
如果输入无法转换为有效的 JSON 值,则输出字符串包含错误信息。
88

99
## 语法
1010

docs/cn/sql-reference/20-sql-functions/10-semi-structured-functions/0-json/get-path.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
title: GET_PATH
33
---
44

5-
通过 `path_name``VARIANT` 中提取值。
6-
如果任一参数为 `NULL`,则返回 `NULL`;否则,返回一个 `Variant` 类型的值或 `NULL`
5+
通过 `path_name``半结构化(VARIANT` 中提取值。
6+
如果任一参数为 `NULL`,则返回 `半结构化(Variant` `NULL`
77

8-
`GET_PATH` 等同于一系列 `GET` 函数的链式调用`path_name` 由字段名串联而成,字段名前缀可以是句点(.)、冒号(:)或索引操作符(`[index]`)。第一个字段名不需要指定前导标识符
8+
`GET_PATH` 等同于一系列 `GET` 函数的链式调用`path_name` 由多个字段名串联而成,每个字段名(第一个除外)前可带有句点(.)、冒号(:)或索引操作符(`[index]`)。第一个字段名无需指定前导标识符
99

1010
## 语法
1111

@@ -15,14 +15,14 @@ GET_PATH( <variant>, <path_name> )
1515

1616
## 参数
1717

18-
| 参数 | 描述 |
19-
|---------------|------------------------------------------------------------------|
20-
| `<variant>` | 包含 ARRAY 或 OBJECT VARIANT |
21-
| `<path_name>` | 由字段名串联组成的字符串值 |
18+
| 参数 | 描述 |
19+
|---------------|-------------------------------------------------------------|
20+
| `<variant>` | 包含 ARRAY 或 OBJECT 的半结构化(VARIANT)值 |
21+
| `<path_name>` | 由字段名串联组成的字符串值 |
2222

2323
## 返回类型
2424

25-
VARIANT
25+
半结构化(VARIANT
2626

2727
## 示例
2828

@@ -53,4 +53,5 @@ SELECT get_path(parse_json('{"k1":[0,1,2], "k2":{"k3":3,"k4":4}}'), 'k2.k5');
5353
| get_path(parse_json('{"k1":[0,1,2], "k2":{"k3":3,"k4":4}}'), 'k2.k5') |
5454
+-----------------------------------------------------------------------+
5555
| NULL |
56-
+-----------------------------------------------------------------------+
56+
+-----------------------------------------------------------------------+
57+
```

docs/cn/sql-reference/20-sql-functions/10-semi-structured-functions/0-json/get.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ GET( <variant>, <field_name> )
1717

1818
## 参数
1919

20-
| 参数 | 描述 |
21-
| :------------ | :----------------------------------------- |
22-
| `<variant>` | 包含 ARRAY 或 OBJECT 的 VARIANT 值 |
23-
| `<index>` | 指定 ARRAY 中元素位置的 Uint32 值 |
24-
| `<field_name>`| 指定 OBJECT 键值对中键的字符串值 |
20+
| 参数 | 描述 |
21+
| :--- | :--- |
22+
| `<variant>` | 包含 ARRAY 或 OBJECT 的 VARIANT 值 |
23+
| `<index>` | 指定 ARRAY 中值位置的 Uint32 值 |
24+
| `<field_name>` | 指定 OBJECT 键值对中键的字符串值 |
2525

2626
## 返回类型
2727

docs/cn/sql-reference/20-sql-functions/10-semi-structured-functions/0-json/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
title: JSON 函数
33
---
44

5-
本节提供 Databend 中 JSON 函数 (JSON Functions) 的参考信息。JSON 函数能够解析、验证、查询和操作 JSON 数据结构。
5+
本节提供了 Databend 中 JSON 函数的参考信息。JSON 函数支持解析、验证、查询和操作 JSON 数据结构。
66

77
## JSON 解析与验证
88

99
| 函数 | 描述 | 示例 |
1010
|----------|-------------|---------|
11-
| [PARSE_JSON](parse-json) | 将 JSON 字符串解析为 variant (variant)| `PARSE_JSON('{"name":"John","age":30}')``{"name":"John","age":30}` |
11+
| [PARSE_JSON](parse-json) | 将 JSON 字符串解析为 VARIANT| `PARSE_JSON('{"name":"John","age":30}')``{"name":"John","age":30}` |
1212
| [CHECK_JSON](check-json) | 验证字符串是否为有效的 JSON | `CHECK_JSON('{"valid": true}')``true` |
1313

1414
## JSON 类型信息
@@ -31,7 +31,7 @@ title: JSON 函数
3131
| [JSON_PATH_MATCH](json-path-match) | 根据路径模式匹配 JSON 值 | `JSON_PATH_MATCH('{"items":[1,2,3]}', '$.items[*]')``[1,2,3]` |
3232
| [JSON_PATH_QUERY](json-path-query) | 使用 JSONPath 查询 JSON 数据 | `JSON_PATH_QUERY('{"a":1,"b":2}', '$.a')``1` |
3333
| [JSON_PATH_QUERY_ARRAY](json-path-query-array) | 查询 JSON 数据并以数组形式返回结果 | `JSON_PATH_QUERY_ARRAY('[1,2,3]', '$[*]')``[1,2,3]` |
34-
| [JSON_PATH_QUERY_FIRST](json-path-query-first) | JSON 路径查询中返回第一个结果 | `JSON_PATH_QUERY_FIRST('[1,2,3]', '$[*]')``1` |
34+
| [JSON_PATH_QUERY_FIRST](json-path-query-first) | 返回 JSON 路径查询的第一个结果 | `JSON_PATH_QUERY_FIRST('[1,2,3]', '$[*]')``1` |
3535

3636
## JSON 数据提取
3737

@@ -45,6 +45,6 @@ title: JSON 函数
4545

4646
| 函数 | 描述 | 示例 |
4747
|----------|-------------|---------|
48-
| [JSON_PRETTY](json-pretty) | 使用适当的缩进格式化 JSON | `JSON_PRETTY('{"a":1}')`格式化的 JSON 字符串 |
49-
| [STRIP_NULL_VALUE](strip-null-value) | 从 JSON 中移除空值 | `STRIP_NULL_VALUE('{"a":1,"b":null}')``{"a":1}` |
48+
| [JSON_PRETTY](json-pretty) | 使用适当的缩进格式化 JSON | `JSON_PRETTY('{"a":1}')`格式化后的 JSON 字符串 |
49+
| [STRIP_NULL_VALUE](strip-null-value) | 从 JSON 中移除 null 值 | `STRIP_NULL_VALUE('{"a":1,"b":null}')``{"a":1}` |
5050
| [JQ](jq) | 使用 jq 风格的查询处理 JSON | `JQ('{"name":"John"}', '.name')``"John"` |

docs/cn/sql-reference/20-sql-functions/10-semi-structured-functions/0-json/jq.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,26 @@ import FunctionDescription from '@site/src/components/FunctionDescription';
55

66
<FunctionDescription description="引入或更新于:v1.2.622"/>
77

8-
JQ 函数是一个返回集合的 SQL 函数,允许你将 [jq](https://jqlang.github.io/jq/) 过滤器应用于存储在 Variant (Variant) 列中的 JSON 数据。通过此函数,你可以应用指定的 jq 过滤器来处理 JSON 数据,并将结果作为行集返回。
8+
JQ 函数是一个返回集合的 SQL 函数,允许你将 [jq](https://jqlang.github.io/jq/) 过滤器应用于存储在 VariantVariant列中的 JSON 数据。通过此函数,你可以应用指定的 jq 过滤器来处理 JSON 数据,并将结果作为行集返回。
99

1010
## 语法
1111

1212
```sql
1313
JQ (<jq_expression>, <json_data>)
1414
```
1515

16-
| 参数 | 描述 |
17-
|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
18-
| `jq_expression` | 定义 JSON 数据处理方式的 `jq` 过滤器表达式,使用 `jq` 语法进行转换。该表达式可指定 JSON 对象和数组中的数据选择、修改及操作方式。有关 jq 支持的语法、过滤器和函数,请参阅 [jq 手册](https://jqlang.github.io/jq/manual/#basic-filters)|
19-
| `json_data` | 需用 `jq` 过滤器处理的 JSON 格式输入,支持 JSON 对象、数组或任何有效数据结构。 |
16+
| 参数 | 描述 |
17+
|---|---|
18+
| `jq_expression` | 一个 `jq` 过滤器表达式,定义了如何使用 `jq` 语法处理和转换 JSON 数据。此表达式可以指定如何选择、修改和操作 JSON 对象及数组中的数据。有关 jq 支持的语法、过滤器和函数的更多信息,请参阅 [jq 手册](https://jqlang.github.io/jq/manual/#basic-filters)|
19+
| `json_data` | 你希望使用 `jq` 过滤器表达式处理或转换的 JSON 格式输入。它可以是 JSON 对象、数组或任何有效的 JSON 数据结构。 |
2020

2121
## 返回类型
2222

23-
JQ 函数返回 JSON 值集合,每个值对应基于 `<jq_expression>` 转换或提取结果的元素
23+
JQ 函数返回一个 JSON 值集合,其中每个值对应于基于 `<jq_expression>` 转换或提取结果的一个元素
2424

2525
## 示例
2626

27-
创建包含 `id``profile` 列的 `customer_data`,其中 `profile` 为存储用户信息的 JSON 类型:
27+
首先,我们创建一张名为 `customer_data` 的表,包含 `id``profile`,其中 `profile` 是用于存储用户信息的 JSON 类型:
2828

2929
```sql
3030
CREATE TABLE customer_data (
@@ -38,7 +38,7 @@ INSERT INTO customer_data VALUES
3838
(3, '{"name": "Charlie", "age": 35, "city": "Chicago"}');
3939
```
4040

41-
JSON 数据提取特定字段
41+
此示例从 JSON 数据中提取特定字段
4242

4343
```sql
4444
SELECT
@@ -56,7 +56,7 @@ FROM
5656
└─────────────────────────────────────┘
5757
```
5858

59-
查询用户 ID 及年龄增加 1 后的结果
59+
此示例为每个用户选择用户 ID 和增加 1 后的年龄
6060

6161
```sql
6262
SELECT
@@ -74,7 +74,7 @@ FROM
7474
└─────────────────────────────────────┘
7575
```
7676

77-
将城市名称转为大写
77+
此示例将城市名称转换为大写
7878

7979
```sql
8080
SELECT

docs/cn/sql-reference/20-sql-functions/10-semi-structured-functions/0-json/json-array-elements.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
---
22
title: JSON_ARRAY_ELEMENTS
33
---
4+
45
import FunctionDescription from '@site/src/components/FunctionDescription';
56

67
<FunctionDescription description="引入或更新于:v1.2.152"/>
78

8-
从 JSON 数组中提取元素,并将这些元素作为结果集中的独立行返回。JSON_ARRAY_ELEMENTS 不会递归地展开嵌套数组;它将嵌套数组视为单个元素
9+
从 JSON 数组中提取元素,并将它们作为结果集中的独立行返回。JSON_ARRAY_ELEMENTS 不会递归地展开嵌套数组,而是将它们视为单个元素
910

1011
## 语法
1112

docs/cn/sql-reference/20-sql-functions/10-semi-structured-functions/0-json/json-each.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import FunctionDescription from '@site/src/components/FunctionDescription';
55

66
<FunctionDescription description="引入或更新于:v1.2.152"/>
77

8-
从 JSON 对象 (JSON Object) 中提取键值对 (Key-Value Pairs),将结构分解为结果集中的独立行。每一行代表从输入 JSON 表达式中派生出的一个不同的键值对。
8+
从 JSON 对象中提取键值对,将结构分解为结果集中的独立行。每一行代表从输入 JSON 表达式中派生出的一个不同的键值对。
99

1010
## 语法
1111

@@ -15,7 +15,7 @@ JSON_EACH(<json_string>)
1515

1616
## 返回类型
1717

18-
JSON_EACH 返回一个元组集合,每个元组由一个 STRING (STRING) 类型的键和一个对应的 VARIANT (VARIANT) 类型的值组成。
18+
JSON_EACH 返回一个元组集合,每个元组由一个 STRING 类型的键和一个对应的 VARIANT 类型的值组成。
1919

2020
## 示例
2121

@@ -38,7 +38,7 @@ SELECT
3838
│ ('name','"John"') │
3939
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
4040

41-
-- 显示提取出的值的数据类型
41+
-- 显示提取值的数据类型
4242
SELECT
4343
TYPEOF (
4444
JSON_EACH(

docs/cn/sql-reference/20-sql-functions/10-semi-structured-functions/0-json/json-extract-path-text.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ JSON_EXTRACT_PATH_TEXT( <expr>, <path_name> )
1414

1515
## 参数
1616

17-
| 参数 | 描述 |
18-
|---------------|------------------------------------|
19-
| `<expr>` | JSON 字符串值。 |
20-
| `<path_name>` | 由字段名称串联组成的字符串值。 |
17+
| 参数 | 描述 |
18+
|---------------|----------------------------------|
19+
| `<expr>` | JSON 字符串值。 |
20+
| `<path_name>` | 由字段名称串联而成的字符串值。 |
2121

2222
## 返回类型
2323

docs/cn/sql-reference/20-sql-functions/10-semi-structured-functions/0-json/json-path-exists.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: JSON_PATH_EXISTS
33
---
44
import FunctionDescription from '@site/src/components/FunctionDescription';
55

6-
<FunctionDescription description="新增或更新于:v1.2.119"/>
6+
<FunctionDescription description="引入或更新于:v1.2.119"/>
77

88
检查 JSON 数据中是否存在指定的路径 (path)。
99

@@ -13,17 +13,17 @@ import FunctionDescription from '@site/src/components/FunctionDescription';
1313
JSON_PATH_EXISTS(<json_data>, <json_path_expression>)
1414
```
1515

16-
- json_data: 指定要搜索的 JSON 数据。它可以是 JSON 对象或数组。
16+
- json_data指定要搜索的 JSON 数据。它可以是 JSON 对象或数组。
1717

18-
- json_path_expression: 指定要在 JSON 数据中检查的路径,该路径以 `$` 表示 JSON 数据的根。你还可以在表达式中包含条件 (condition),使用 `@` 来引用正在评估的当前节点 (Current Node) 或元素 (element),以筛选结果。
18+
- json_path_expression指定要在 JSON 数据中检查的路径,该路径从表示 JSON 数据根节点 (root) 的 `$` 开始。你还可以在表达式中包含条件,使用 `@` 来引用当前正在评估的节点 (node) 或元素 (element),以筛选结果。
1919

2020
## 返回类型
2121

2222
该函数返回:
2323

24-
- `true`如果指定的 JSON 路径(以及任何条件)存在于 JSON 数据中。
25-
- `false`如果指定的 JSON 路径(以及任何条件)不存在于 JSON 数据中。
26-
- 如果 `json_data``json_path_expression` 为 NULL 或无效,则返回 NULL。
24+
- 如果指定的 JSON 路径(以及任何条件)存在于 JSON 数据中,则返回 `true`
25+
- 如果指定的 JSON 路径(以及任何条件)不存在于 JSON 数据中,则返回 `false`
26+
- 如果 json_data 或 json_path_expression 为 NULL 或无效,则返回 NULL。
2727

2828
## 示例
2929

docs/cn/sql-reference/20-sql-functions/10-semi-structured-functions/0-json/json-path-match.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
---
22
title: JSON_PATH_MATCH
33
---
4+
45
import FunctionDescription from '@site/src/components/FunctionDescription';
56

67
<FunctionDescription description="引入或更新于:v1.2.241"/>
78

8-
检查指定的 JSON 路径表达式 (JSON Path Expression) 是否匹配 JSON 数据中的特定条件。请注意,`@@` 操作符是此函数的同义词。有关详细信息,请参阅 [JSON 操作符](../../../10-sql-commands/30-query-operators/index.md)
9+
检查指定的 JSON 路径表达式 (JSON Path Expression) 是否匹配 JSON 数据中的某些条件。请注意,`@@` 操作符是此函数的同义词。有关详细信息,请参阅 [JSON 操作符](../../../10-sql-commands/30-query-operators/index.md)
910

1011
## 语法
1112

@@ -14,15 +15,15 @@ JSON_PATH_MATCH(<json_data>, <json_path_expression>)
1415
```
1516

1617
- `json_data`: 指定要检查的 JSON 数据。它可以是 JSON 对象或数组。
17-
- `json_path_expression`: 指定要在 JSON 数据中检查的条件。此表达式描述待匹配的路径或条件,例如验证 JSON 结构中特定字段值是否满足特定条件`$` 符号表示 JSON 数据的根,用于起始路径表达式并指示 JSON 结构中的顶层对象。
18+
- `json_path_expression`: 指定要在 JSON 数据中检查的条件。该表达式描述要匹配的特定路径或条件,例如验证 JSON 结构中特定字段的值是否满足某些条件`$` 符号表示 JSON 数据的根节点,用于起始路径表达式,代表 JSON 结构中的顶层对象。
1819

1920
## 返回类型
2021

2122
该函数返回:
2223

23-
- 若指定的 JSON 路径表达式匹配 JSON 数据中的条件,则返回 `true`
24-
- 若指定的 JSON 路径表达式不匹配 JSON 数据中的条件,则返回 `false`
25-
- `json_data``json_path_expression` 为 NULL 或无效,则返回 NULL
24+
- 如果指定的 JSON 路径表达式匹配 JSON 数据中的条件,则返回 `true`
25+
- 如果指定的 JSON 路径表达式不匹配 JSON 数据中的条件,则返回 `false`
26+
- 如果 `json_data``json_path_expression` 为 NULL 或无效,则返回 NULL
2627

2728
## 示例
2829

@@ -55,7 +56,7 @@ SELECT JSON_PATH_MATCH(parse_json('{"a":1,"b":[1,2,3]}'), '$.b[1 to last] >= 2')
5556
│ true │
5657
└───────────────────────────────────────────────────────────────────────────┘
5758

58-
-- json_data 或 json_path_expression 为 NULL 或无效,则返回 NULL
59+
-- 如果 json_data 或 json_path_expression 为 NULL 或无效,则返回 NULL
5960
SELECT JSON_PATH_MATCH(parse_json('{"a":1,"b":[1,2,3]}'), NULL);
6061

6162
┌──────────────────────────────────────────────────────────┐

docs/cn/sql-reference/20-sql-functions/10-semi-structured-functions/0-json/json-path-query-array.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: JSON_PATH_QUERY_ARRAY
33
---
44

5-
获取指定 JSON 值中由 JSON 路径返回的所有 JSON 项,并将结果封装为数组。
5+
提取指定 JSON 值中由 JSON 路径返回的所有元素,并将结果封装为数组。
66

77
## 语法
88

@@ -31,7 +31,7 @@ VALUES ('Laptop', '{"brand": "Dell", "colors": ["Black", "Silver"], "price": 120
3131
('Headphones', '{"brand": "Sony", "colors": ["Black", "Blue", "Red"], "price": 150, "features": {"battery": "20h", "bluetooth": "5.0"}}');
3232
```
3333

34-
**查询演示:提取产品详情中的所有特性为数组**
34+
**查询演示:提取产品详情中的所有特性值并封装为数组**
3535

3636
```sql
3737
SELECT

docs/cn/sql-reference/20-sql-functions/10-semi-structured-functions/0-json/json-path-query-first.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: JSON_PATH_QUERY_FIRST
33
---
44

5-
获取指定 JSON 值中由 JSON 路径返回的第一个 JSON 项。
5+
获取对指定 JSON 值应用 JSON 路径 (JSON Path) 后返回的第一个 JSON 项。
66

77
## 语法
88

@@ -46,7 +46,7 @@ FROM
4646

4747
```sql
4848
+------------+--------------+---------------+
49-
| 名称 | 所有特性 | 首个特性 |
49+
| name | all_features | first_feature |
5050
+------------+--------------+---------------+
5151
| Laptop | "16GB" | "16GB" |
5252
| Laptop | "512GB" | "16GB" |

docs/cn/sql-reference/20-sql-functions/10-semi-structured-functions/0-json/json-path-query.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: JSON_PATH_QUERY
33
---
44

5-
根据指定的 JSON 路径,获取 JSON 值中所有匹配的项目
5+
获取指定 JSON 值中由 JSON 路径返回的所有项目
66

77
## 语法
88

0 commit comments

Comments
 (0)