This is an automated email from the ASF dual-hosted git repository.
kassiez 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 2572c017af9 Fix the confusion between Chinese and English in
start_with function (#2116)
2572c017af9 is described below
commit 2572c017af9b3e8371253696dffb20b33492c8c8
Author: Jiwen liu <[email protected]>
AuthorDate: Wed Mar 5 14:22:54 2025 +0800
Fix the confusion between Chinese and English in start_with function (#2116)
## Versions
- [x] dev
- [x] 3.0
- [x] 2.1
- [ ] 2.0
## Languages
- [x] Chinese
- [x] English
## Docs Checklist
- [ ] Checked by AI
- [ ] Test Cases Built
---
.../string-functions/starts-with.md | 30 +++++++++++-----------
.../string-functions/starts-with.md | 30 +++++++++++-----------
.../string-functions/starts-with.md | 30 +++++++++++-----------
3 files changed, 45 insertions(+), 45 deletions(-)
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/string-functions/starts-with.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/string-functions/starts-with.md
index b50e7ed1dae..0b16738793b 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/string-functions/starts-with.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/string-functions/starts-with.md
@@ -1,7 +1,7 @@
---
{
"title": "STARTS_WITH",
- "language": "en"
+ "language": "zh-CN"
}
---
@@ -24,32 +24,32 @@ specific language governing permissions and limitations
under the License.
-->
-## Description
+## 描述
-The STARTS_WITH function checks if a string starts with a specified prefix.
Returns true if the string starts with the specified prefix; otherwise returns
false.
+STARTS_WITH 函数检查字符串是否以指定的前缀开头。如果字符串以指定的前缀开头,则返回 true;否则返回 false。
-## Syntax
+## 语法
```sql
STARTS_WITH(<str>, <prefix>)
```
-## Parameters
-| Parameter | Description |
+## 参数
+| 参数 | 说明 |
| ------- | ------------------------------ |
-| `<str>` | The string to check. Type: VARCHAR |
-| `<prefix>` | The prefix string to match. Type: VARCHAR |
+| `<str>` | 要检查的字符串。类型:VARCHAR |
+| `<prefix>` | 要匹配的前缀字符串。类型:VARCHAR |
-## Return Value
+## 返回值
-Returns BOOLEAN type.
+返回 BOOLEAN 类型。
-Special cases:
-- Returns NULL if any argument is NULL
+特殊情况:
+- 如果任何参数为 NULL,则返回 NULL
-## Examples
+## 举例
-1. Successful match
+1. 匹配成功
```sql
SELECT starts_with('hello world', 'hello');
```
@@ -61,7 +61,7 @@ SELECT starts_with('hello world', 'hello');
+-------------------------------------+
```
-2. Failed match
+2. 匹配失败
```sql
SELECT starts_with('hello world', 'world');
```
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/sql-manual/sql-functions/scalar-functions/string-functions/starts-with.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/sql-manual/sql-functions/scalar-functions/string-functions/starts-with.md
index b50e7ed1dae..0b16738793b 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/sql-manual/sql-functions/scalar-functions/string-functions/starts-with.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/sql-manual/sql-functions/scalar-functions/string-functions/starts-with.md
@@ -1,7 +1,7 @@
---
{
"title": "STARTS_WITH",
- "language": "en"
+ "language": "zh-CN"
}
---
@@ -24,32 +24,32 @@ specific language governing permissions and limitations
under the License.
-->
-## Description
+## 描述
-The STARTS_WITH function checks if a string starts with a specified prefix.
Returns true if the string starts with the specified prefix; otherwise returns
false.
+STARTS_WITH 函数检查字符串是否以指定的前缀开头。如果字符串以指定的前缀开头,则返回 true;否则返回 false。
-## Syntax
+## 语法
```sql
STARTS_WITH(<str>, <prefix>)
```
-## Parameters
-| Parameter | Description |
+## 参数
+| 参数 | 说明 |
| ------- | ------------------------------ |
-| `<str>` | The string to check. Type: VARCHAR |
-| `<prefix>` | The prefix string to match. Type: VARCHAR |
+| `<str>` | 要检查的字符串。类型:VARCHAR |
+| `<prefix>` | 要匹配的前缀字符串。类型:VARCHAR |
-## Return Value
+## 返回值
-Returns BOOLEAN type.
+返回 BOOLEAN 类型。
-Special cases:
-- Returns NULL if any argument is NULL
+特殊情况:
+- 如果任何参数为 NULL,则返回 NULL
-## Examples
+## 举例
-1. Successful match
+1. 匹配成功
```sql
SELECT starts_with('hello world', 'hello');
```
@@ -61,7 +61,7 @@ SELECT starts_with('hello world', 'hello');
+-------------------------------------+
```
-2. Failed match
+2. 匹配失败
```sql
SELECT starts_with('hello world', 'world');
```
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0/sql-manual/sql-functions/scalar-functions/string-functions/starts-with.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0/sql-manual/sql-functions/scalar-functions/string-functions/starts-with.md
index b50e7ed1dae..0b16738793b 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0/sql-manual/sql-functions/scalar-functions/string-functions/starts-with.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0/sql-manual/sql-functions/scalar-functions/string-functions/starts-with.md
@@ -1,7 +1,7 @@
---
{
"title": "STARTS_WITH",
- "language": "en"
+ "language": "zh-CN"
}
---
@@ -24,32 +24,32 @@ specific language governing permissions and limitations
under the License.
-->
-## Description
+## 描述
-The STARTS_WITH function checks if a string starts with a specified prefix.
Returns true if the string starts with the specified prefix; otherwise returns
false.
+STARTS_WITH 函数检查字符串是否以指定的前缀开头。如果字符串以指定的前缀开头,则返回 true;否则返回 false。
-## Syntax
+## 语法
```sql
STARTS_WITH(<str>, <prefix>)
```
-## Parameters
-| Parameter | Description |
+## 参数
+| 参数 | 说明 |
| ------- | ------------------------------ |
-| `<str>` | The string to check. Type: VARCHAR |
-| `<prefix>` | The prefix string to match. Type: VARCHAR |
+| `<str>` | 要检查的字符串。类型:VARCHAR |
+| `<prefix>` | 要匹配的前缀字符串。类型:VARCHAR |
-## Return Value
+## 返回值
-Returns BOOLEAN type.
+返回 BOOLEAN 类型。
-Special cases:
-- Returns NULL if any argument is NULL
+特殊情况:
+- 如果任何参数为 NULL,则返回 NULL
-## Examples
+## 举例
-1. Successful match
+1. 匹配成功
```sql
SELECT starts_with('hello world', 'hello');
```
@@ -61,7 +61,7 @@ SELECT starts_with('hello world', 'hello');
+-------------------------------------+
```
-2. Failed match
+2. 匹配失败
```sql
SELECT starts_with('hello world', 'world');
```
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]