File tree Expand file tree Collapse file tree 3 files changed +15
-14
lines changed
00-sql-reference/31-system-tables
10-sql-commands/00-ddl/19-warehouse Expand file tree Collapse file tree 3 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 1
- Translation initialization: 2025-07-22T02:24:51.851102
1
+ Translation initialization: 2025-07-22T07:48:40.253765
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ title: system.indexes
4
4
5
5
import FunctionDescription from '@site/src /components/FunctionDescription';
6
6
7
- <FunctionDescription description =" Introduced: v1.1.50" />
7
+ <FunctionDescription description =" 引入版本: v1.1.50" />
8
8
9
9
包含有关已创建索引(Index)的信息。
10
10
@@ -13,13 +13,13 @@ import FunctionDescription from '@site/src/components/FunctionDescription';
13
13
``` sql
14
14
CREATE TABLE t1 (a int ,b int );
15
15
16
- CREATE AGGREGATING INDEX idx1 AS SELECT SUM (a), b FROM default .t1 WHERE b > 3 GROUP BY b;
16
+ CREATE AGGREGATING INDEX idx1 AS SELECT SUM (a), b FROM default .t1 WHERE b > 3 GROUP BY b;
17
17
18
- SELECT * FROM system .indexes ;
19
- ```
18
+ SELECT * FROM system .indexes ;
20
19
21
20
+ -- --------+-------------+------------------------------------------------------------+----------------------------+
22
21
| name | type | definition | created_on |
23
22
+ -- --------+-------------+------------------------------------------------------------+----------------------------+
24
23
| test_idx | AGGREGATING | SELECT b, SUM (a) FROM default .t1 WHERE (b > 3 ) GROUP BY b | 2023 - 05 - 17 11 :53 :54 .474377 |
25
- +----------+-------------+------------------------------------------------------------+----------------------------+
24
+ + -- --------+-------------+------------------------------------------------------------+----------------------------+
25
+ ```
Original file line number Diff line number Diff line change 1
1
---
2
2
title : CREATE WAREHOUSE
3
3
---
4
+
4
5
import FunctionDescription from '@site/src /components/FunctionDescription';
5
6
6
- <FunctionDescription description =" Introduced or updated: v1.2.687" />
7
+ <FunctionDescription description =" 引入或更新于: v1.2.687" />
7
8
8
- 创建具有指定大小或通过从特定节点组分配节点的计算集群 。
9
+ 创建一个具有指定大小的计算集群(Warehouse),或通过从特定节点组分配节点来创建 。
9
10
10
- ## Syntax
11
+ ## 语法
11
12
12
13
``` sql
13
- CREATE WAREHOUSE < warehouse_name>
14
+ CREATE WAREHOUSE < warehouse_name>
14
15
[WITH warehouse_size = < size> | ( ASSIGN < node_count> NODES FROM < node_group> [, < node_count> NODES FROM < node_group> ... ] ) ]
15
16
```
16
17
17
- ## Examples
18
+ ## 示例
18
19
19
- 此示例创建一个大小为 10 的计算集群:
20
+ 此示例创建一个大小为 10 的计算集群(Warehouse) :
20
21
21
22
``` sql
22
- CREATE WAREHOUSE test_warehouse WITH warehouse_size = 10 ;
23
+ CREATE WAREHOUSE test_warehouse WITH warehouse_size = 10 ;
23
24
```
24
25
25
- 此示例通过从节点组分配特定节点来创建计算集群 :
26
+ 此示例通过从特定节点组分配节点来创建一个计算集群(Warehouse) :
26
27
27
28
``` sql
28
29
CREATE WAREHOUSE test_warehouse (ASSIGN 1 NODES FROM log_node, ASSIGN 2 NODES FROM infra_node);
You can’t perform that action at this time.
0 commit comments