Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Databend Cloud 计算集群相关的 SQL 命令。
| [CREATE WAREHOUSE](create-warehouse.md) | 创建计算集群 |
| [USE WAREHOUSE](use-warehouse.md) | 切换当前会话的计算集群 |
| [SHOW WAREHOUSES](show-warehouses.md) | 查看计算集群列表 |
| [INSPECT WAREHOUSE](inspect-warehouse.md) | 查看当前分配给计算集群的节点 |
| [ALTER WAREHOUSE](alter-warehouse.md) | 暂停、恢复或修改计算集群配置 |
| [DROP WAREHOUSE](drop-warehouse.md) | 删除计算集群 |
| [REPLACE WAREHOUSE](replace-warehouse.md) | 重建计算集群 |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: INSPECT WAREHOUSE
sidebar_position: 7
---

显示当前分配给某个计算集群的节点。

:::note
此命令依赖 system management 功能,并需要企业版许可证。
:::

## 语法

```sql
INSPECT WAREHOUSE <warehouse_name>
```

## 输出

`INSPECT WAREHOUSE` 返回以下列:

| 列名 | 说明 |
|--------|-------------|
| `cluster` | 计算集群内部的 cluster 标识 |
| `node` | 节点标识 |
| `type` | 节点类型,例如 `SelfManaged` 或 `SystemManaged` |

## 示例

```sql
INSPECT WAREHOUSE etl_wh;
```
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Tags are returned in API responses and visible through `SHOW WAREHOUSES`.
| [CREATE WAREHOUSE](create-warehouse.md) | Creates a new warehouse |
| [USE WAREHOUSE](use-warehouse.md) | Sets the current warehouse for the session |
| [SHOW WAREHOUSES](show-warehouses.md) | Lists all warehouses with optional filtering |
| [INSPECT WAREHOUSE](inspect-warehouse.md) | Shows nodes currently assigned to a warehouse |
| [ALTER WAREHOUSE](alter-warehouse.md) | Suspends, resumes, or modifies warehouse settings |
| [DROP WAREHOUSE](drop-warehouse.md) | Removes a warehouse |
| [QUERY_HISTORY](query-history.md) | Inspects query logs for a warehouse |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: INSPECT WAREHOUSE
sidebar_position: 7
---

Shows the nodes currently assigned to a warehouse.

:::note
This command requires system management support and an enterprise license.
:::

## Syntax

```sql
INSPECT WAREHOUSE <warehouse_name>
```

## Output

`INSPECT WAREHOUSE` returns the following columns:

| Column | Description |
|--------|-------------|
| `cluster` | Cluster identifier inside the warehouse |
| `node` | Node identifier |
| `type` | Node type, such as `SelfManaged` or `SystemManaged` |

## Example

```sql
INSPECT WAREHOUSE etl_wh;
```
Loading