morrySnow commented on code in PR #1829: URL: https://github.com/apache/doris-website/pull/1829#discussion_r1918890080
########## i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/json-functions/json-set.md: ########## @@ -24,12 +24,23 @@ specific language governing permissions and limitations under the License. --> -## json_set ## 描述 +`json_set` 函数在 JSON 中插入或更新数据并返回结果。 + ## 语法 +```sql +JSON_SET(<jsonStr>, <jsonPath>, <val> [, <a>, <b>, <c>] ...) +``` + +## 参数 +| 参数 | 描述 | +|-------|-------------------------------------------------------------------------------------------------------------------------| +| `<jsonStr>` | 要插入的 JSON 对象。可以是任意类型元素的 JSON 对象,包括`NULL`,如果没有指定元素,则返回一个空数组。如果 `json_str` 不是有效的 JSON 或任何 `path` 参数不是有效的路径表达式或包含了 * 通配符,则会返回错误 | +| `<jsonPath>` | 要插入的 JSON 路径。如果是 `NULL` ,则返回 NULL | +| `<val>` | 要插入 JSON 的值。如果是 `NULL` ,则会在对应的位置插入 `NULL` 的 value 值。 | Review Comment: 没有对 `<a> <b> <c>` 的说明 如果也是 <val> 的话,语法中写成 `[, ...]` 即可 ########## i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/json-functions/json-set.md: ########## @@ -24,12 +24,23 @@ specific language governing permissions and limitations under the License. --> -## json_set ## 描述 +`json_set` 函数在 JSON 中插入或更新数据并返回结果。 + ## 语法 +```sql +JSON_SET(<jsonStr>, <jsonPath>, <val> [, <a>, <b>, <c>] ...) +``` + +## 参数 +| 参数 | 描述 | +|-------|-------------------------------------------------------------------------------------------------------------------------| +| `<jsonStr>` | 要插入的 JSON 对象。可以是任意类型元素的 JSON 对象,包括`NULL`,如果没有指定元素,则返回一个空数组。如果 `json_str` 不是有效的 JSON 或任何 `path` 参数不是有效的路径表达式或包含了 * 通配符,则会返回错误 | +| `<jsonPath>` | 要插入的 JSON 路径。如果是 `NULL` ,则返回 NULL | +| `<val>` | 要插入 JSON 的值。如果是 `NULL` ,则会在对应的位置插入 `NULL` 的 value 值。 | Review Comment: 没有对 `<a> <b> <c>` 的说明 如果也是 `<val>` 的话,语法中写成 `[, ...]` 即可 -- 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