Skip to content

Commit

Permalink
docs: add doc for procedure_info table
Browse files Browse the repository at this point in the history
  • Loading branch information
WenyXu committed Oct 30, 2024
1 parent ba3a2b6 commit af1daaf
Show file tree
Hide file tree
Showing 8 changed files with 128 additions and 9 deletions.
6 changes: 1 addition & 5 deletions docs/reference/sql/information-schema/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,4 @@ There is still lots of work to do for `INFORMATION_SCHEMA`. The tracking [issue]
| [`RUNTIME_METRICS`](./runtime-metrics.md)| Provides the system runtime metrics.|
| [`CLUSTER_INFO`](./cluster-info.md)| Provides the topology information of the cluster.|
| [`FLOWS`](./flows.md) | Provides the flow information.|





| [`PROCEDURE_INFO`](./procedure-info.md) | Procedure information.|
32 changes: 32 additions & 0 deletions docs/reference/sql/information-schema/procedure-info.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# PROCEDURE_INFO
The `PROCEDURE_INFO` table provides detailed information about various procedures.

:::tip NOTE
This table is not available on [GreptimeCloud](https://greptime.cloud/).
:::

```sql
DESC TABLE INFORMATION_SCHEMA.PROCEDURE_INFO;
```

```sql
+----------------+----------------------+------+------+---------+---------------+
| Column | Type | Key | Null | Default | Semantic Type |
+----------------+----------------------+------+------+---------+---------------+
| procedure_id | String | | NO | | FIELD |
| procedure_type | String | | NO | | FIELD |
| start_time | TimestampMillisecond | | YES | | FIELD |
| end_time | TimestampMillisecond | | YES | | FIELD |
| status | String | | NO | | FIELD |
| lock_keys | String | | YES | | FIELD |
+----------------+----------------------+------+------+---------+---------------+
```

Fields in the `PROCEDURE_INFO` table are described as follows:

- `procedure`: The ID of the Procedure.
- `procedure_type`: The type of the Procedure.
- `start_time`: Timestamp indicating when the procedure started.
- `end_time`: Timestamp indicating when the procedure ended.
- `status`: Current status of the procedure.
- `lock_keys`: Keys locked by the procedure, if any.
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@
| [`RUNTIME_METRICS`](./runtime-metrics.md)| 提供了系统运行时指标。|
| [`CLUSTER_INFO`](./cluster-info.md)| 提供了集群的节点拓扑信息。|
| [`FLOWS`](./flows.md) | 提供 Flow 相关信息。|
| [`PROCEDURE_INFO`](./procedure-info.md) | 提供 Procedure 相关信息。|
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# PROCEDURE_INFO

`PROCEDURE_INFO` 表提供了各种 Procedure 的详细信息。


```sql
DESC TABLE INFORMATION_SCHEMA.PROCEDURE_INFO;
```

```sql
+----------------+----------------------+------+------+---------+---------------+
| Column | Type | Key | Null | Default | Semantic Type |
+----------------+----------------------+------+------+---------+---------------+
| procedure_id | String | | NO | | FIELD |
| procedure_type | String | | NO | | FIELD |
| start_time | TimestampMillisecond | | YES | | FIELD |
| end_time | TimestampMillisecond | | YES | | FIELD |
| status | String | | NO | | FIELD |
| lock_keys | String | | YES | | FIELD |
+----------------+----------------------+------+------+---------+---------------+
```

`PROCEDURE_INFO` 表中的字段描述如下:

- `procedure`: Procedure 的 ID。
- `procedure_type`: Procedure 的类型。
- `start_time`: Procedure 开始的时间戳。
- `end_time`: Procedure 结束的时间戳。
- `status`: Procedure 当前的状态。
- `lock_keys`: Procedure 锁定的键。
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@
| [`RUNTIME_METRICS`](./runtime-metrics.md)| 提供了系统运行时指标。|
| [`CLUSTER_INFO`](./cluster-info.md)| 提供了集群的节点拓扑信息。|
| [`FLOWS`](./flows.md) | 提供 Flow 相关信息。|
| [`PROCEDURE_INFO`](./procedure-info.md) | 提供 Procedure 相关信息。|
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# PROCEDURE_INFO

`PROCEDURE_INFO` 表提供了各种 Procedure 的详细信息。


```sql
DESC TABLE INFORMATION_SCHEMA.PROCEDURE_INFO;
```

```sql
+----------------+----------------------+------+------+---------+---------------+
| Column | Type | Key | Null | Default | Semantic Type |
+----------------+----------------------+------+------+---------+---------------+
| procedure_id | String | | NO | | FIELD |
| procedure_type | String | | NO | | FIELD |
| start_time | TimestampMillisecond | | YES | | FIELD |
| end_time | TimestampMillisecond | | YES | | FIELD |
| status | String | | NO | | FIELD |
| lock_keys | String | | YES | | FIELD |
+----------------+----------------------+------+------+---------+---------------+
```

`PROCEDURE_INFO` 表中的字段描述如下:

- `procedure`: Procedure 的 ID。
- `procedure_type`: Procedure 的类型。
- `start_time`: Procedure 开始的时间戳。
- `end_time`: Procedure 结束的时间戳。
- `status`: Procedure 当前的状态。
- `lock_keys`: Procedure 锁定的键。
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ There is still lots of work to do for `INFORMATION_SCHEMA`. The tracking [issue]
| [`RUNTIME_METRICS`](./runtime-metrics.md)| Provides the system runtime metrics.|
| [`CLUSTER_INFO`](./cluster-info.md)| Provides the topology information of the cluster.|
| [`FLOWS`](./flows.md) | Provides the flow information.|


| [`PROCEDURE_INFO`](./procedure-info.md) | Procedure information.|



Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# PROCEDURE_INFO
The `PROCEDURE_INFO` table provides detailed information about various procedures.

:::tip NOTE
This table is not available on [GreptimeCloud](https://greptime.cloud/).
:::

```sql
DESC TABLE INFORMATION_SCHEMA.PROCEDURE_INFO;
```

```sql
+----------------+----------------------+------+------+---------+---------------+
| Column | Type | Key | Null | Default | Semantic Type |
+----------------+----------------------+------+------+---------+---------------+
| procedure_id | String | | NO | | FIELD |
| procedure_type | String | | NO | | FIELD |
| start_time | TimestampMillisecond | | YES | | FIELD |
| end_time | TimestampMillisecond | | YES | | FIELD |
| status | String | | NO | | FIELD |
| lock_keys | String | | YES | | FIELD |
+----------------+----------------------+------+------+---------+---------------+
```

Fields in the `PROCEDURE_INFO` table are described as follows:

- `procedure`: The ID of the Procedure.
- `procedure_type`: The type of the Procedure.
- `start_time`: Timestamp indicating when the procedure started.
- `end_time`: Timestamp indicating when the procedure ended.
- `status`: Current status of the procedure.
- `lock_keys`: Keys locked by the procedure, if any.

0 comments on commit af1daaf

Please sign in to comment.