File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
00-sql-reference/31-system-tables
10-sql-commands/00-ddl/19-warehouse Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,13 @@ See also: [SHOW INDEXES](../../10-sql-commands/50-administration-cmds/show-index
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 ;
18
+ SELECT * FROM system .indexes ;
19
19
20
20
+ -- --------+-------------+------------------------------------------------------------+----------------------------+
21
21
| name | type | definition | created_on |
22
22
+ -- --------+-------------+------------------------------------------------------------+----------------------------+
23
23
| test_idx | AGGREGATING | SELECT b, SUM (a) FROM default .t1 WHERE (b > 3 ) GROUP BY b | 2023 - 05 - 17 11 :53 :54 .474377 |
24
24
+ -- --------+-------------+------------------------------------------------------------+----------------------------+
25
- ```
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
7
<FunctionDescription description =" Introduced or updated: v1.2.687 " />
@@ -10,7 +11,7 @@ Creates a warehouse with specified size or by assigning nodes from specific node
10
11
## Syntax
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
@@ -19,11 +20,11 @@ CREATE WAREHOUSE <warehouse_name>
19
20
This example creates a warehouse with a size of 10:
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
This example creates a warehouse by assigning specific nodes from node groups:
26
27
27
28
``` sql
28
29
CREATE WAREHOUSE test_warehouse (ASSIGN 1 NODES FROM log_node, ASSIGN 2 NODES FROM infra_node);
29
- ```
30
+ ```
You can’t perform that action at this time.
0 commit comments