morrySnow commented on code in PR #1851: URL: https://github.com/apache/doris-website/pull/1851#discussion_r1921085598
########## docs/sql-manual/sql-functions/scalar-functions/string-functions/url-encode.md: ########## @@ -1,6 +1,42 @@ --- { "title": "URL_ENCODE", - "language": "zh-CN" + "language": "en" } --- +## Description + +Use UTF-8 encoding to complete the URL encoding of the provided text. Typically used to encode parameter information passed as part of a URL + +## Syntax + +```sql +URL_ENCODE( <str> ) +``` + +## Required Parameters + +## Required Parameters +| Parameters | Description | +|------|------| +| `<str>` | String to be encoded | + +## Return Value + + +UTF-8 encoding completes the URL encoding of the provided text + +## Example + +```sql +select URL_ENCODE('Doris Q&A'); +``` + +```sql Review Comment: ````suggestion ```text ```` ########## i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/json-functions/get-json-double.md: ########## @@ -24,31 +24,52 @@ specific language governing permissions and limitations under the License. --> -## get_json_double + ## 描述 + +函数用于从 JSON 文档中提取一个字段的值并将其转换为 `DOUBLE` 类型。该函数会返回指定路径上的字段值,如果该值无法转换为 `DOUBLE` 类型,或者路径指向的字段不存在,则返回 `NULL`。 + ## 语法 -`DOUBLE get_json_double(VARCHAR json_str, VARCHAR json_path)` +`DOUBLE GET_JSON_DOUBLE( <json_str>, <json_path>)` Review Comment: 1. 要用 code block 不要用 inline code 2. 不要返回类型 ````suggestion ```sql GET_JSON_DOUBLE( <json_str>, <json_path>) ``` ```` ########## docs/sql-manual/sql-functions/scalar-functions/string-functions/trim.md: ########## @@ -24,31 +24,56 @@ specific language governing permissions and limitations under the License. --> -## trim -### description -#### Syntax +## Description -`VARCHAR trim(VARCHAR str[, VARCHAR rhs])` +This command is used to delete Spaces or specified characters at both ends of the string. If no rhs parameter is specified, delete the Spaces that appear continuously at the beginning of the right and left parts of str. Otherwise, delete rhs +## Syntax -When the 'rhs' parameter is not present, remove the continuous spaces that appear from the starting and ending of the 'str' parameter. Otherwise, remove 'rhs'. +```sql +RTIM( <str> [ , <rhs>]) Review Comment: ```suggestion TRIM( <str> [ , <rhs>]) ``` -- 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