From 7d3a485665e4f047dcd67f9e097a53cdbda888f2 Mon Sep 17 00:00:00 2001 From: yagagagaga Date: Thu, 14 Mar 2024 14:34:04 +0800 Subject: [PATCH] [typo](docs) add additional explanation to the repeat function (#32158) --- .../sql-manual/sql-functions/string-functions/repeat.md | 7 +++++++ .../sql-manual/sql-functions/string-functions/repeat.md | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/docs/en/docs/sql-manual/sql-functions/string-functions/repeat.md b/docs/en/docs/sql-manual/sql-functions/string-functions/repeat.md index 4040d4f9a7..ca45d6d457 100644 --- a/docs/en/docs/sql-manual/sql-functions/string-functions/repeat.md +++ b/docs/en/docs/sql-manual/sql-functions/string-functions/repeat.md @@ -33,6 +33,13 @@ under the License. Repeat the str of the string count times, return empty string when count is less than 1, return NULL when str, count is any NULL +:::tip +It can be repeated up to 10000 times by default, you can adjust session variable to change it +``` +set repeat_max_num = 20000 +``` +::: + ### example ``` diff --git a/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/repeat.md b/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/repeat.md index c29bf90aa3..c2c92f7de1 100644 --- a/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/repeat.md +++ b/docs/zh-CN/docs/sql-manual/sql-functions/string-functions/repeat.md @@ -33,6 +33,13 @@ under the License. 将字符串 str 重复 count 次输出,count 小于1时返回空串,str,count 任一为NULL时,返回 NULL +:::tip +repeat 函数默认最多重复 10000 次,可通过会话变量调整限制。 +``` +set repeat_max_num = 20000 +``` +::: + ### example ```