You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
improve the article format of hdfs() and mv_infos() function (apache#1828)
## Versions
- [x] dev
- [x] 3.0
- [x] 2.1
- [ ] 2.0
## Languages
- [x] Chinese
- [x] English
## Docs Checklist
- [ ] Checked by AI
- [ ] Test Cases Built
Copy file name to clipboardExpand all lines: docs/sql-manual/sql-functions/table-valued-functions/mv_infos.md
+42-59Lines changed: 42 additions & 59 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,79 +24,62 @@ specific language governing permissions and limitations
24
24
under the License.
25
25
-->
26
26
27
-
## `mv_infos`
28
-
29
-
### Name
30
-
31
-
mv_infos
32
-
33
-
### description
27
+
## Description
34
28
35
29
Table function, generating temporary tables for asynchronous materialized views, which can view information about asynchronous materialized views created in a certain database.
36
30
37
-
This function is used in the from clause.
38
-
39
-
This funciton is supported since 2.1.0.
40
-
41
-
#### syntax
42
-
43
-
`mv_infos("database"="")`
44
-
45
-
mv_infos() Table structure:
31
+
## Syntax
46
32
```sql
47
-
mysql>desc function mv_infos("database"="tpch100");
* JobName: The job name corresponding to the materialized view
70
-
* State: Materialized View State
71
-
* SchemaChangeDetail: The reason why the materialized view State becomes a SchemeChange
72
-
* RefreshState: Materialized view refresh status
73
-
* RefreshInfo: Refreshing strategy information defined by materialized views
74
-
* QuerySql: Query statements defined by materialized views
75
-
* EnvInfo: Environmental information during the creation of materialized views
76
-
* MvProperties: Materialized visual attributes
77
-
* MvPartitionInfo: Partition information of materialized views
78
-
* SyncWithBaseTables:Is it synchronized with the base table data? To see which partition is not synchronized, please use [SHOW PARTITIONS](../sql-reference/Show-Statements/SHOW-PARTITIONS.md)
| JobName | TEXT | Job name corresponding to the materialized view |
48
+
| State | TEXT | State of the materialized view |
49
+
| SchemaChangeDetail | TEXT | Reason for the state change to SchemaChange |
50
+
| RefreshState | TEXT | Refresh state of the materialized view |
51
+
| RefreshInfo | TEXT | Refresh strategy information defined for the materialized view |
52
+
| QuerySql | TEXT | SQL query defined for the materialized view |
53
+
| EnvInfo | TEXT | Environment information when the materialized view was created |
54
+
| MvProperties | TEXT | Materialized view properties |
55
+
| MvPartitionInfo | TEXT | Partition information of the materialized view |
56
+
| SyncWithBaseTables | BOOLEAN | Whether the data is synchronized with the base table. To check which partition is not synchronized, use [SHOW PARTITIONS](../sql-reference/Show-Statements/SHOW-PARTITIONS.md)|
57
+
58
+
## Examples
87
59
88
-
2.View the materialized view named mv1 under db1
60
+
View all materialized views under test
89
61
90
62
```sql
91
-
mysql>select*from mv_infos("database"="db1") where Name ="mv1";
0 commit comments