Skip to content

Commit 44217d6

Browse files
🌐 Add LLM Translations (#2292)
* chore: delete unsync files * 💬Generate LLM translations --------- Co-authored-by: Chasen-Zhang <[email protected]>
1 parent f636265 commit 44217d6

File tree

14 files changed

+176
-121
lines changed

14 files changed

+176
-121
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"label": "BendDeploy"
3+
}

docs/cn/sql-reference/10-sql-commands/00-ddl/07-aggregating-index/show-indexes.md

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"label": "Ngram 索引",
3+
"position": 11
4+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: ALTER WORKLOAD GROUP
3+
---
4+
import FunctionDescription from '@site/src/components/FunctionDescription';
5+
6+
<FunctionDescription description="引入或更新于: v1.2.743"/>
7+
8+
使用指定的配额设置更新工作负载组。
9+
10+
## 语法
11+
12+
```sql
13+
ALTER WORKLOAD GROUP <group_name>
14+
[SET cpu_quota = '<percentage>', query_timeout = '<duration>']
15+
```
16+
17+
## 参数
18+
19+
| 参数 | 类型 | 必需 | 默认值 | 描述 |
20+
|-----------------|----------|------|-------------|----------------------------------------------------------------------|
21+
| `cpu_quota` | string || (无限制) | CPU 资源配额,以百分比字符串表示 (例如 `"20%"`) |
22+
| `query_timeout` | duration || (无限制) | 查询超时时长 (单位: `s`/`sec`=秒, `m`/`min`=分钟, `h`/`hour`=小时, `d`/`day`=天, `ms`=毫秒, 无单位=秒) |
23+
24+
25+
## 示例
26+
27+
```sql
28+
ALTER WORKLOAD GROUP analytics SET cpu_quota = '20%', query_timeout = '10m';
29+
```
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: CREATE WORKLOAD GROUP
3+
---
4+
import FunctionDescription from '@site/src/components/FunctionDescription';
5+
6+
<FunctionDescription description="引入或更新于: v1.2.743"/>
7+
8+
创建具有指定配额设置的工作负载组。
9+
10+
## 语法
11+
12+
```sql
13+
CREATE WORKLOAD GROUP [IF NOT EXISTS] <group_name>
14+
[WITH cpu_quota = '<percentage>', query_timeout = '<duration>']
15+
```
16+
17+
## 参数
18+
19+
| 参数 | 类型 | 必需 | 默认值 | 描述 |
20+
|-----------------|----------|------|------------|----------------------------------------------------------------------|
21+
| `cpu_quota` | string || (无限制) | CPU 资源配额,以百分比字符串表示 (例如 `"20%"`) |
22+
| `query_timeout` | duration || (无限制) | 查询超时时长 (单位: `s`/`sec`=秒, `m`/`min`=分钟, `h`/`hour`=小时, `d`/`day`=天, `ms`=毫秒, 无单位=秒) |
23+
24+
25+
## 示例
26+
27+
```sql
28+
CREATE WORKLOAD GROUP analytics WITH cpu_quota = '20%', query_timeout = '10m';
29+
```
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: DROP WORKLOAD GROUP
3+
---
4+
import FunctionDescription from '@site/src/components/FunctionDescription';
5+
6+
<FunctionDescription description="引入或更新于: v1.2.743"/>
7+
8+
删除指定的工作负载组。
9+
10+
## 语法
11+
12+
```sql
13+
DROP WORKLOAD GROUP [IF EXISTS] <workload_group_name>
14+
```
15+
16+
## 示例
17+
18+
此示例删除 `test_workload_group` 工作负载组:
19+
20+
```sql
21+
DROP WORKLOAD GROUP test_warehouse;
22+
```
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: 工作负载组
3+
---
4+
import IndexOverviewList from '@site/src/components/IndexOverviewList';
5+
6+
本页面提供了 Databend 中工作负载组相关命令的参考信息。
7+
8+
<IndexOverviewList />
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: RENAME WORKLOAD GROUP
3+
---
4+
import FunctionDescription from '@site/src/components/FunctionDescription';
5+
6+
<FunctionDescription description="引入或更新于: v1.2.743"/>
7+
8+
将现有的工作负载组重命名为新名称。
9+
10+
## 语法
11+
12+
```sql
13+
RENAME WORKLOAD GROUP <current_name> TO <new_name>
14+
```
15+
16+
## 示例
17+
18+
此示例将 `test_workload_group_1` 重命名为 `test_workload_group`:
19+
20+
```sql
21+
RENAME WAREHOUSE test_workload_group_1 TO test_workload_group;
22+
```
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: SHOW WORKLOAD GROUPS
3+
---
4+
import FunctionDescription from '@site/src/components/FunctionDescription';
5+
6+
<FunctionDescription description="引入或更新于: v1.2.743"/>
7+
8+
返回所有现有工作负载组及其配额的列表。
9+
10+
## 语法
11+
12+
```sql
13+
SHOW WORKLOAD GROUPS
14+
```
15+
16+
## 示例
17+
18+
```sql
19+
SHOW WORKLOAD GROUPS
20+
21+
┌────────────────────────────────────────────────────────────────────────────────────────────┐
22+
│ name │ cpu_quota │ memory_quota │ query_timeout │ max_concurrency │ query_queued_timeout │
23+
│ String │ String │ String │ String │ String │ String │
24+
├────────┼───────────┼──────────────┼───────────────┼─────────────────┼──────────────────────┤
25+
│ test │ 30% │ │ 15s │ │ │
26+
└────────────────────────────────────────────────────────────────────────────────────────────┘
27+
```
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"label": "间隔函数"
3+
}

0 commit comments

Comments
 (0)