This is an automated email from the ASF dual-hosted git repository.

lihaopeng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git


The following commit(s) were added to refs/heads/master by this push:
     new a925249a9d6 [fix](function) Add parameter restrictions for function 
random (#992)
a925249a9d6 is described below

commit a925249a9d6dc53ac5a6b008f3bf0a0229b17d32
Author: zclllhhjj <zhaochan...@selectdb.com>
AuthorDate: Tue Aug 13 10:24:02 2024 +0800

    [fix](function) Add parameter restrictions for function random (#992)
    
    master pr: https://github.com/apache/doris/pull/39255
---
 docs/sql-manual/sql-functions/numeric-functions/random.md               | 2 ++
 .../current/sql-manual/sql-functions/numeric-functions/random.md        | 2 ++
 .../version-2.1/sql-manual/sql-functions/numeric-functions/random.md    | 2 ++
 .../version-3.0/sql-manual/sql-functions/numeric-functions/random.md    | 2 ++
 .../version-2.1/sql-manual/sql-functions/numeric-functions/random.md    | 2 ++
 .../version-3.0/sql-manual/sql-functions/numeric-functions/random.md    | 2 ++
 6 files changed, 12 insertions(+)

diff --git a/docs/sql-manual/sql-functions/numeric-functions/random.md 
b/docs/sql-manual/sql-functions/numeric-functions/random.md
index 53e3ba4158f..722ff2e020e 100644
--- a/docs/sql-manual/sql-functions/numeric-functions/random.md
+++ b/docs/sql-manual/sql-functions/numeric-functions/random.md
@@ -38,6 +38,8 @@ Returns a random number between a and b. a must be less than 
b.
 
 Alias: `rand`.
 
+Note: All parameters must be constants.
+
 ### example
 
 ```sql
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/numeric-functions/random.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/numeric-functions/random.md
index 36442afffd2..59100fee8e5 100644
--- 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/numeric-functions/random.md
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/numeric-functions/random.md
@@ -38,6 +38,8 @@ under the License.
 
 别名:`rand`
 
+注意:所有参数必须为常量。
+
 ### example
 
 ```sql
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/sql-manual/sql-functions/numeric-functions/random.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/sql-manual/sql-functions/numeric-functions/random.md
index 36442afffd2..59100fee8e5 100644
--- 
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/sql-manual/sql-functions/numeric-functions/random.md
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/sql-manual/sql-functions/numeric-functions/random.md
@@ -38,6 +38,8 @@ under the License.
 
 别名:`rand`
 
+注意:所有参数必须为常量。
+
 ### example
 
 ```sql
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0/sql-manual/sql-functions/numeric-functions/random.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0/sql-manual/sql-functions/numeric-functions/random.md
index 36442afffd2..59100fee8e5 100644
--- 
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0/sql-manual/sql-functions/numeric-functions/random.md
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0/sql-manual/sql-functions/numeric-functions/random.md
@@ -38,6 +38,8 @@ under the License.
 
 别名:`rand`
 
+注意:所有参数必须为常量。
+
 ### example
 
 ```sql
diff --git 
a/versioned_docs/version-2.1/sql-manual/sql-functions/numeric-functions/random.md
 
b/versioned_docs/version-2.1/sql-manual/sql-functions/numeric-functions/random.md
index 53e3ba4158f..722ff2e020e 100644
--- 
a/versioned_docs/version-2.1/sql-manual/sql-functions/numeric-functions/random.md
+++ 
b/versioned_docs/version-2.1/sql-manual/sql-functions/numeric-functions/random.md
@@ -38,6 +38,8 @@ Returns a random number between a and b. a must be less than 
b.
 
 Alias: `rand`.
 
+Note: All parameters must be constants.
+
 ### example
 
 ```sql
diff --git 
a/versioned_docs/version-3.0/sql-manual/sql-functions/numeric-functions/random.md
 
b/versioned_docs/version-3.0/sql-manual/sql-functions/numeric-functions/random.md
index 53e3ba4158f..722ff2e020e 100644
--- 
a/versioned_docs/version-3.0/sql-manual/sql-functions/numeric-functions/random.md
+++ 
b/versioned_docs/version-3.0/sql-manual/sql-functions/numeric-functions/random.md
@@ -38,6 +38,8 @@ Returns a random number between a and b. a must be less than 
b.
 
 Alias: `rand`.
 
+Note: All parameters must be constants.
+
 ### example
 
 ```sql


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to