From 2bb025a47435f1c77d4d5130eaffd2f3d4416975 Mon Sep 17 00:00:00 2001 From: yagagagaga Date: Fri, 7 Apr 2023 18:01:07 +0800 Subject: [PATCH] [typo](docs) fix some error in this files (#18259) * [typo](docs) fix some error in this files * [typo](docs) fix some error in this files * update files --- .../sql-functions/string-functions/extract_url_parameter.md | 2 ++ .../docs/sql-manual/sql-functions/string-functions/lcase.md | 3 +-- .../en/docs/sql-manual/sql-functions/string-functions/left.md | 2 +- .../docs/sql-manual/sql-functions/string-functions/lower.md | 2 +- .../sql-manual/sql-functions/string-functions/parse_url.md | 2 ++ .../docs/sql-manual/sql-functions/string-functions/right.md | 2 +- .../docs/sql-manual/sql-functions/string-functions/strleft.md | 4 ++-- .../sql-manual/sql-functions/string-functions/strright.md | 2 +- .../docs/sql-manual/sql-functions/string-functions/ucase.md | 2 +- .../docs/sql-manual/sql-functions/string-functions/upper.md | 2 +- .../sql-functions/window-functions/WINDOW-FUNCTION-LEAD.md | 4 ++-- .../Data-Definition-Statements/Alter/ALTER-RESOURCE.md | 2 ++ .../sql-functions/string-functions/extract_url_parameter.md | 2 ++ .../docs/sql-manual/sql-functions/string-functions/lcase.md | 2 +- .../docs/sql-manual/sql-functions/string-functions/left.md | 2 +- .../docs/sql-manual/sql-functions/string-functions/lower.md | 2 +- .../sql-manual/sql-functions/string-functions/parse_url.md | 2 ++ .../docs/sql-manual/sql-functions/string-functions/right.md | 2 +- .../docs/sql-manual/sql-functions/string-functions/strleft.md | 2 +- .../sql-manual/sql-functions/string-functions/strright.md | 2 +- .../docs/sql-manual/sql-functions/string-functions/ucase.md | 2 +- .../docs/sql-manual/sql-functions/string-functions/upper.md | 2 +- .../sql-functions/window-functions/WINDOW-FUNCTION-LEAD.md | 4 ++-- 23 files changed, 31 insertions(+), 22 deletions(-) diff --git a/docs/en/docs/sql-manual/sql-functions/string-functions/extract_url_parameter.md b/docs/en/docs/sql-manual/sql-functions/string-functions/extract_url_parameter.md index eb4bd8301b..196f20e9d3 100644 --- a/docs/en/docs/sql-manual/sql-functions/string-functions/extract_url_parameter.md +++ b/docs/en/docs/sql-manual/sql-functions/string-functions/extract_url_parameter.md @@ -46,5 +46,7 @@ mysql> SELECT extract_url_parameter ("http://doris.apache.org?k1=aa&k2=bb&test=c +--------------------------------------------------------------------------------+ ``` +If you want to get other part of URL, you can use [parse_url](./parse_url.md). + ### keywords EXTRACT URL PARAMETER diff --git a/docs/en/docs/sql-manual/sql-functions/string-functions/lcase.md b/docs/en/docs/sql-manual/sql-functions/string-functions/lcase.md index 3f3ee92eff..6e2ff9f2a0 100644 --- a/docs/en/docs/sql-manual/sql-functions/string-functions/lcase.md +++ b/docs/en/docs/sql-manual/sql-functions/string-functions/lcase.md @@ -30,8 +30,7 @@ under the License. `INT lcase (VARCHAR str)` - -Consistent with `lower`. +Convert all strings in parameters to lowercase. Another alias for this function is [lower](./lower.md). ### keywords LCASE diff --git a/docs/en/docs/sql-manual/sql-functions/string-functions/left.md b/docs/en/docs/sql-manual/sql-functions/string-functions/left.md index 92997f1a59..e782e912b0 100644 --- a/docs/en/docs/sql-manual/sql-functions/string-functions/left.md +++ b/docs/en/docs/sql-manual/sql-functions/string-functions/left.md @@ -31,7 +31,7 @@ under the License. `VARCHAR left (VARCHAR str, INT len)` -It returns the left part of a string of specified length, length is char length not the byte size. +It returns the left part of a string of specified length, length is char length not the byte size. Another alias for this function is [strleft](./strleft.md). ### example diff --git a/docs/en/docs/sql-manual/sql-functions/string-functions/lower.md b/docs/en/docs/sql-manual/sql-functions/string-functions/lower.md index 09ab240bf3..359b6a5a04 100644 --- a/docs/en/docs/sql-manual/sql-functions/string-functions/lower.md +++ b/docs/en/docs/sql-manual/sql-functions/string-functions/lower.md @@ -31,7 +31,7 @@ under the License. `VARCHAR lower (VARCHAR str)` -Convert all strings in parameters to lowercase +Convert all strings in parameters to lowercase. Another alias for this function is [lcase](lcase.md). ### example diff --git a/docs/en/docs/sql-manual/sql-functions/string-functions/parse_url.md b/docs/en/docs/sql-manual/sql-functions/string-functions/parse_url.md index cf6e662af4..1c349b68a8 100644 --- a/docs/en/docs/sql-manual/sql-functions/string-functions/parse_url.md +++ b/docs/en/docs/sql-manual/sql-functions/string-functions/parse_url.md @@ -44,5 +44,7 @@ mysql> SELECT parse_url ('https://doris.apache.org/', 'HOST'); +------------------------------------------------+ ``` +If you want to get parameter in QUERY, you can use [extract_url_parameter](./extract_url_parameter.md). + ### keywords PARSE URL diff --git a/docs/en/docs/sql-manual/sql-functions/string-functions/right.md b/docs/en/docs/sql-manual/sql-functions/string-functions/right.md index 80c63b42cb..38b13eacbe 100644 --- a/docs/en/docs/sql-manual/sql-functions/string-functions/right.md +++ b/docs/en/docs/sql-manual/sql-functions/string-functions/right.md @@ -31,7 +31,7 @@ under the License. `VARCHAR RIGHT (VARCHAR str, INT len)` -It returns the right part of a string of specified length, length is char length not the byte size. +It returns the right part of a string of specified length, length is char length not the byte size. Another alias for this function is [strright](./strright.md). ### example diff --git a/docs/en/docs/sql-manual/sql-functions/string-functions/strleft.md b/docs/en/docs/sql-manual/sql-functions/string-functions/strleft.md index a3d6c99006..9c114cb82e 100644 --- a/docs/en/docs/sql-manual/sql-functions/string-functions/strleft.md +++ b/docs/en/docs/sql-manual/sql-functions/string-functions/strleft.md @@ -28,10 +28,10 @@ under the License. ### Description #### Syntax -`VARCHAR STRAIGHT (VARCHAR str, INT len)` +`VARCHAR STRLEFT (VARCHAR str, INT len)` -It returns the left part of a string of specified length, length is char length not the byte size. +It returns the left part of a string of specified length, length is char length not the byte size. Another alias for this function is [left](./left.md). ### example diff --git a/docs/en/docs/sql-manual/sql-functions/string-functions/strright.md b/docs/en/docs/sql-manual/sql-functions/string-functions/strright.md index 6f93a50b83..fa2bbb9131 100644 --- a/docs/en/docs/sql-manual/sql-functions/string-functions/strright.md +++ b/docs/en/docs/sql-manual/sql-functions/string-functions/strright.md @@ -32,7 +32,7 @@ under the License. `VARCHAR strright (VARCHAR str, INT len)` -It returns the right part of a string of specified length, length is char length not the byte size. +It returns the right part of a string of specified length, length is char length not the byte size. Another alias for this function is [right](./right.md). ### example diff --git a/docs/en/docs/sql-manual/sql-functions/string-functions/ucase.md b/docs/en/docs/sql-manual/sql-functions/string-functions/ucase.md index cf2879d095..dc1975e52a 100644 --- a/docs/en/docs/sql-manual/sql-functions/string-functions/ucase.md +++ b/docs/en/docs/sql-manual/sql-functions/string-functions/ucase.md @@ -31,7 +31,7 @@ under the License. `INT ucase(VARCHAR str)` -Consistent with `upper`. +Convert all strings in parameters to uppercase. Another alias for this function is [upper](./upper.md). ### keywords UCASE diff --git a/docs/en/docs/sql-manual/sql-functions/string-functions/upper.md b/docs/en/docs/sql-manual/sql-functions/string-functions/upper.md index 169997e6fd..81a97e47a3 100644 --- a/docs/en/docs/sql-manual/sql-functions/string-functions/upper.md +++ b/docs/en/docs/sql-manual/sql-functions/string-functions/upper.md @@ -31,7 +31,7 @@ under the License. `VARCHAR upper(VARCHAR str)` -Convert all strings in parameters to uppercase +Convert all strings in parameters to uppercase. Another alias for this function is [ucase](./ucase.md). ### example diff --git a/docs/en/docs/sql-manual/sql-functions/window-functions/WINDOW-FUNCTION-LEAD.md b/docs/en/docs/sql-manual/sql-functions/window-functions/WINDOW-FUNCTION-LEAD.md index 0eb27ff63c..4b85476853 100644 --- a/docs/en/docs/sql-manual/sql-functions/window-functions/WINDOW-FUNCTION-LEAD.md +++ b/docs/en/docs/sql-manual/sql-functions/window-functions/WINDOW-FUNCTION-LEAD.md @@ -17,7 +17,7 @@ Unless required by applicable law or agreed to in writing, software distributed The LEAD() method is used to calculate the value of the current line several lines backwards. ```sql -LEAD(expr, offset, default]) OVER (partition_by_clause order_by_clause) +LEAD(expr, offset, default) OVER (partition_by_clause order_by_clause) ``` ### example @@ -48,4 +48,4 @@ order by closing_date; ### keywords - WINDOW,FUNCTION,LEAD \ No newline at end of file + WINDOW,FUNCTION,LEAD diff --git a/docs/en/docs/sql-manual/sql-reference/Data-Definition-Statements/Alter/ALTER-RESOURCE.md b/docs/en/docs/sql-manual/sql-reference/Data-Definition-Statements/Alter/ALTER-RESOURCE.md index 3a05b84da9..b365feb87a 100644 --- a/docs/en/docs/sql-manual/sql-reference/Data-Definition-Statements/Alter/ALTER-RESOURCE.md +++ b/docs/en/docs/sql-manual/sql-reference/Data-Definition-Statements/Alter/ALTER-RESOURCE.md @@ -26,6 +26,8 @@ under the License. ## ALTER-RESOURCE + + ### Name ALTER RESOURCE diff --git a/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/extract_url_parameter.md b/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/extract_url_parameter.md index 2a17ede2d2..c73ee82229 100644 --- a/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/extract_url_parameter.md +++ b/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/extract_url_parameter.md @@ -46,5 +46,7 @@ mysql> SELECT extract_url_parameter ("http://doris.apache.org?k1=aa&k2=bb&test=c +--------------------------------------------------------------------------------+ ``` +如果想获取 URL 中的其他部分,可以使用[parse_url](./parse_url.md)。 + ### keywords EXTRACT URL PARAMETER diff --git a/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/lcase.md b/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/lcase.md index 61a9598403..38fb37b586 100644 --- a/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/lcase.md +++ b/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/lcase.md @@ -31,7 +31,7 @@ under the License. `INT lcase(VARCHAR str)` -与`lower`一致 +将参数中所有的字符串都转换成小写,该函数的另一个别名为[lower](./lower.md)。 ### keywords LCASE diff --git a/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/left.md b/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/left.md index f28e56736d..469d3caf0e 100644 --- a/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/left.md +++ b/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/left.md @@ -31,7 +31,7 @@ under the License. `VARCHAR left(VARCHAR str, INT len)` -它返回具有指定长度的字符串的左边部分, 长度的单位为utf8字符 +它返回具有指定长度的字符串的左边部分,长度的单位为utf8字符,此函数的另一个别名为[strleft](./strleft.md)。 ### example diff --git a/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/lower.md b/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/lower.md index 07e323c878..1a52d4e03d 100644 --- a/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/lower.md +++ b/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/lower.md @@ -31,7 +31,7 @@ under the License. `VARCHAR lower(VARCHAR str)` -将参数中所有的字符串都转换成小写 +将参数中所有的字符串都转换成小写,该函数的另一个别名为[lcase](./lcase.md)。 ### example diff --git a/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/parse_url.md b/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/parse_url.md index dd25203b14..2dc12ef1f1 100644 --- a/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/parse_url.md +++ b/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/parse_url.md @@ -42,5 +42,7 @@ mysql> SELECT parse_url ('https://doris.apache.org/', 'HOST'); +------------------------------------------------+ ``` +如果想获取 QUERY 中的特定参数,可使用[extract_url_parameter](./extract_url_parameter.md)。 + ### keywords PARSE URL diff --git a/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/right.md b/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/right.md index 3cbe87cff2..6bd774f230 100644 --- a/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/right.md +++ b/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/right.md @@ -31,7 +31,7 @@ under the License. `VARCHAR right(VARCHAR str, INT len)` -它返回具有指定长度的字符串的右边部分, 长度的单位为utf8字符 +它返回具有指定长度的字符串的右边部分, 长度的单位为utf8字符。此函数的另一个别名为[strright](./strright.md)。 ### example diff --git a/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/strleft.md b/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/strleft.md index e57882abc7..9df09a2928 100644 --- a/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/strleft.md +++ b/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/strleft.md @@ -31,7 +31,7 @@ under the License. `VARCHAR strleft(VARCHAR str, INT len)` -它返回具有指定长度的字符串的左边部分,长度的单位为utf8字符 +它返回具有指定长度的字符串的左边部分,长度的单位为utf8字符,此函数的另一个别名为[left](./left.md)。 ### example diff --git a/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/strright.md b/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/strright.md index f50e0e6625..8e10c6215b 100644 --- a/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/strright.md +++ b/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/strright.md @@ -31,7 +31,7 @@ under the License. `VARCHAR strright(VARCHAR str, INT len)` -它返回具有指定长度的字符串的右边部分, 长度的单位为utf8字符 +它返回具有指定长度的字符串的右边部分, 长度的单位为utf8字符。此函数的另一个别名为[right](./right.md)。 ### example diff --git a/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/ucase.md b/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/ucase.md index 7b663bd46a..f6888541b8 100644 --- a/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/ucase.md +++ b/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/ucase.md @@ -31,7 +31,7 @@ under the License. `INT ucase(VARCHAR str)` -与`upper`一致 +将参数中所有的字符串都转换成大写,此函数的另一个别名为[upper](./upper.md)。 ### keywords UCASE diff --git a/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/upper.md b/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/upper.md index bcb783a891..997f8d002b 100644 --- a/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/upper.md +++ b/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/upper.md @@ -31,7 +31,7 @@ under the License. `VARCHAR upper(VARCHAR str)` -将参数中所有的字符串都转换成大写 +将参数中所有的字符串都转换成大写,此函数的另一个别名为[ucase](./ucase.md)。 ### example diff --git a/docs/zh-CN/docs/sql-manual/sql-functions/window-functions/WINDOW-FUNCTION-LEAD.md b/docs/zh-CN/docs/sql-manual/sql-functions/window-functions/WINDOW-FUNCTION-LEAD.md index 58b40de645..885065ac3a 100644 --- a/docs/zh-CN/docs/sql-manual/sql-functions/window-functions/WINDOW-FUNCTION-LEAD.md +++ b/docs/zh-CN/docs/sql-manual/sql-functions/window-functions/WINDOW-FUNCTION-LEAD.md @@ -17,7 +17,7 @@ Unless required by applicable law or agreed to in writing, software distributed LEAD() 方法用来计算当前行向后数若干行的值。 ```sql -LEAD(expr, offset, default]) OVER (partition_by_clause order_by_clause) +LEAD(expr, offset, default) OVER (partition_by_clause order_by_clause) ``` ### example @@ -48,4 +48,4 @@ order by closing_date; ### keywords - WINDOW,FUNCTION,LEAD \ No newline at end of file + WINDOW,FUNCTION,LEAD