This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push:
new 4464328 [Doc] Add doc link to char_length (#3548)
4464328 is described below
commit 4464328d8f7af11375c2c83133fa68308b6a8c77
Author: yangzhg <[email protected]>
AuthorDate: Thu May 14 21:21:31 2020 +0800
[Doc] Add doc link to char_length (#3548)
---
docs/.vuepress/sidebar/en.js | 1 +
docs/.vuepress/sidebar/zh-CN.js | 1 +
docs/en/sql-reference/sql-functions/string-functions/char_length.md | 4 ++--
.../zh-CN/sql-reference/sql-functions/string-functions/char_length.md | 4 ++--
4 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/docs/.vuepress/sidebar/en.js b/docs/.vuepress/sidebar/en.js
index c09cc54..eb85411 100644
--- a/docs/.vuepress/sidebar/en.js
+++ b/docs/.vuepress/sidebar/en.js
@@ -197,6 +197,7 @@ module.exports = [
children: [
"append_trailing_char_if_absent",
"ascii",
+ "char_length",
"concat",
"concat_ws",
"ends_with",
diff --git a/docs/.vuepress/sidebar/zh-CN.js b/docs/.vuepress/sidebar/zh-CN.js
index e58c370..bb4cc67 100644
--- a/docs/.vuepress/sidebar/zh-CN.js
+++ b/docs/.vuepress/sidebar/zh-CN.js
@@ -209,6 +209,7 @@ module.exports = [
children: [
"append_trailing_char_if_absent",
"ascii",
+ "char_length",
"concat",
"concat_ws",
"ends_with",
diff --git
a/docs/en/sql-reference/sql-functions/string-functions/char_length.md
b/docs/en/sql-reference/sql-functions/string-functions/char_length.md
index e747889..fbba148 100644
--- a/docs/en/sql-reference/sql-functions/string-functions/char_length.md
+++ b/docs/en/sql-reference/sql-functions/string-functions/char_length.md
@@ -31,7 +31,7 @@ under the License.
'INT char_length (VARCHAR str)'
-Returns the length of the string and the number of characters returned for
multi-byte characters. For example, five two-byte width words return a length
of 5, only utf8 encodeing is support at current version.
+Returns the length of the string, and the number of characters returned for
multi-byte characters. For example, five two-byte width words return a length
of 5, only utf8 encoding is support at the current version. `character_length`
is the alias for this function.
## example
@@ -52,4 +52,4 @@ mysql> select char_length("中国");
+-----------------------+
```
## keyword
-CHAR_LENGTH
+CHAR_LENGTH, CHARACTER_LENGTH
diff --git
a/docs/zh-CN/sql-reference/sql-functions/string-functions/char_length.md
b/docs/zh-CN/sql-reference/sql-functions/string-functions/char_length.md
index 9bd3c1f..fe3cf37 100644
--- a/docs/zh-CN/sql-reference/sql-functions/string-functions/char_length.md
+++ b/docs/zh-CN/sql-reference/sql-functions/string-functions/char_length.md
@@ -31,7 +31,7 @@ under the License.
`INT char_length(VARCHAR str)`
-返回字符串的长度,对于多字节字符,返回字符数, 目前仅支持utf8 编码。
+返回字符串的长度,对于多字节字符,返回字符数, 目前仅支持utf8 编码。这个函数还有一个别名 `character_length`。
## example
@@ -51,4 +51,4 @@ mysql> select char_length("中国");
+-----------------------+
```
##keyword
-CHAR_LENGTH
+CHAR_LENGTH, CHARACTER_LENGTH
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]