Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
zddr committed Dec 29, 2023
1 parent 8f0e73c commit 5643cd1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ SHOW PARTITIONS FROM mv1;

刷新名字为`p_20231017_20231018`的分区
```
refresh MATERIALIZED VIEW mv1 partitions(p_20231017_20231018);
REFRESH MATERIALIZED VIEW mv1 partitions(p_20231017_20231018);
```

物化视图有多种刷新方式,无论哪种方式,都可以随时进行手动刷新,
Expand Down
12 changes: 9 additions & 3 deletions docs/zh-CN/docs/sql-manual/sql-functions/table-functions/jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,28 @@ mysql> desc function jobs("type"="mv");
+-------------------+------+------+-------+---------+-------+
| Id | TEXT | No | false | NULL | NONE |
| Name | TEXT | No | false | NULL | NONE |
| MvId | TEXT | No | false | NULL | NONE |
| MvName | TEXT | No | false | NULL | NONE |
| MvDatabaseId | TEXT | No | false | NULL | NONE |
| MvDatabaseName | TEXT | No | false | NULL | NONE |
| ExecuteType | TEXT | No | false | NULL | NONE |
| RecurringStrategy | TEXT | No | false | NULL | NONE |
| Status | TEXT | No | false | NULL | NONE |
| CreateTime | TEXT | No | false | NULL | NONE |
| Comment | TEXT | No | false | NULL | NONE |
+-------------------+------+------+-------+---------+-------+
7 rows in set (0.00 sec)
10 rows in set (0.00 sec)
```

* Id:job id.
* Name:job名称.
* MvId:物化视图id
* MvName:物化视图名称
* MvDatabaseId:物化视图所属db id
* MvDatabaseName:物化视图所属db名称
* ExecuteType:执行类型
* RecurringStrategy:循环策略.
* Status:job状态.
* CreateTime:task创建时间.
* Comment:注释.

### example

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ tasks

tasks("type"="mv")表结构:
```
mysql> desc function tasks("type"="mv");
+-----------------------+------+------+-------+---------+-------+
| Field | Type | Null | Key | Default | Extra |
Expand All @@ -51,7 +50,9 @@ mysql> desc function tasks("type"="mv");
| JobId | TEXT | No | false | NULL | NONE |
| JobName | TEXT | No | false | NULL | NONE |
| MvId | TEXT | No | false | NULL | NONE |
| MvName | TEXT | No | false | NULL | NONE |
| MvDatabaseId | TEXT | No | false | NULL | NONE |
| MvDatabaseName | TEXT | No | false | NULL | NONE |
| Status | TEXT | No | false | NULL | NONE |
| ErrorMsg | TEXT | No | false | NULL | NONE |
| CreateTime | TEXT | No | false | NULL | NONE |
Expand All @@ -64,14 +65,16 @@ mysql> desc function tasks("type"="mv");
| CompletedPartitions | TEXT | No | false | NULL | NONE |
| Progress | TEXT | No | false | NULL | NONE |
+-----------------------+------+------+-------+---------+-------+
16 rows in set (0.00 sec)
18 rows in set (0.00 sec)
```

* TaskId:task id.
* JobId:job id.
* JobName:job名称.
* MvId:task所属物化视图id.
* MvDatabaseId:task所属物化视图的database id.
* MvId:物化视图id
* MvName:物化视图名称
* MvDatabaseId:物化视图所属db id
* MvDatabaseName:物化视图所属db名称
* Status:task状态.
* ErrorMsg:task失败信息.
* CreateTime:task创建时间.
Expand Down

0 comments on commit 5643cd1

Please sign in to comment.