Skip to content

Commit 67ae112

Browse files
authored
Update 03-manage-query-warehouse-through-SQL.md
1 parent 323e2f0 commit 67ae112

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

docs/en/guides/10-deploy/01-deploy/02-production/03-manage-query-warehouse-through-SQL.md

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,8 @@ this command will create a warehouse named `test_warehouse_1` with 2 nodes.
9595
```sql
9696
root@localhost:8000/default> create warehouse test_warehouse_1 with warehouse_size = 2;
9797

98-
create warehouse test_warehouse_1 with warehouse_size = 2
99-
100-
10198
root@localhost:8000/default> show online nodes;
10299

103-
show online nodes
104-
105100
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
106101
│ id │ type │ node_group │ warehouse │ cluster │ version │
107102
├────────────────────────┼───────────────┼────────────┼──────────────────┼─────────┼─────────────────────────────┤
@@ -123,8 +118,6 @@ show online nodes
123118
```sql
124119
root@localhost:8000/default> show warehouses;
125120

126-
show warehouses
127-
128121
┌───────────────────────────────────────────┐
129122
│ warehouse │ type │ status │
130123
├────────────────┼────────────────┼─────────┤
@@ -138,13 +131,8 @@ system.clusters is a system table that stores the information of all clusters, a
138131
```sql
139132
root@localhost:8000/default> use warehouse test_warehouse_1;
140133

141-
use warehouse test_warehouse_1
142-
143-
144134
root@(test_warehouse_1)/default> select * from system.clusters;
145135

146-
SELECT * FROM system.clusters
147-
148136
┌───────────────────────────────────────────────────────────────────────────────────────────┐
149137
│ name │ cluster │ host │ port │ version │
150138
├────────────────────────┼──────────────────────────┼───────────┼────────┼──────────────────┤
@@ -168,8 +156,6 @@ alter warehouse test_warehouse add cluster test_cluster with cluster_size = 3
168156

169157
root@localhost:8000/default> show online nodes;
170158

171-
show online nodes
172-
173159
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
174160
│ id │ type │ node_group │ warehouse │ cluster │ version │
175161
├────────────────────────┼───────────────┼────────────┼────────────────┼──────────────┼─────────────────────────────┤
@@ -195,13 +181,8 @@ Databend allow user to create multi-cluster warehouse with different node group.
195181
```sql
196182
root@localhost:8000/default> create warehouse test_warehouse(assign 1 nodes from log_node, assign 2 nodes from infra_node);
197183

198-
create warehouse test_warehouse(assign 1 nodes from log_node, assign 2 nodes from infra_node)
199-
200-
201184
root@localhost:8000/default> show online nodes;
202185

203-
show online nodes
204-
205186
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
206187
│ id │ type │ node_group │ warehouse │ cluster │ version │
207188
├────────────────────────┼───────────────┼────────────┼────────────────┼─────────┼─────────────────────────────┤
@@ -222,12 +203,8 @@ show online nodes
222203
```sql
223204
root@localhost:8000/default> alter warehouse test_warehouse add cluster test_cluster (assign 1 nodes from dev_node, assign 1 nodes from infra_node);
224205

225-
alter warehouse test_warehouse add cluster test_cluster (assign 1 nodes from dev_node, assign 1 nodes from infra_node)
226-
227-
228206
root@localhost:8000/default> show online nodes;
229207

230-
show online nodes
231208
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
232209
│ id │ type │ node_group │ warehouse │ cluster │ version │
233210
├────────────────────────┼───────────────┼────────────┼────────────────┼──────────────┼─────────────────────────────┤
@@ -249,13 +226,8 @@ show online nodes
249226
```sql
250227
root@localhost:8000/default> alter warehouse test_warehouse assign nodes(assign 1 nodes from dev_node for default, assign 1 nodes from infra_node for default);
251228

252-
alter warehouse test_warehouse assign nodes(assign 1 nodes from dev_node for default, assign 1 nodes from infra_node for default)
253-
254-
255229
root@localhost:8000/default> show online nodes;
256230

257-
show online nodes
258-
259231
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
260232
│ id │ type │ node_group │ warehouse │ cluster │ version │
261233
├────────────────────────┼───────────────┼────────────┼────────────────┼─────────┼─────────────────────────────┤
@@ -277,13 +249,8 @@ show online nodes
277249
```sql
278250
root@localhost:8000/default> alter warehouse test_warehouse unassign nodes(unassign 1 nodes from dev_node for default, unassign 2 nodes from infra_node for default);
279251

280-
alter warehouse test_warehouse unassign nodes(unassign 1 nodes from dev_node for default, unassign 2 nodes from infra_node for default)
281-
282-
283252
root@localhost:8000/default> show online nodes;
284253

285-
show online nodes
286-
287254
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
288255
│ id │ type │ node_group │ warehouse │ cluster │ version │
289256
├────────────────────────┼───────────────┼────────────┼────────────────┼─────────┼─────────────────────────────┤

0 commit comments

Comments
 (0)