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
* **Operations**: Read-only, only supports `SELECT`, `COUNT/SHOW DEVICES`, `DESC`. Any modifications to table structure or content are not allowed and will result in an error: `"The database 'information_schema' can only be queried." `
72
73
* **Column Names**: System table column names are all lowercase by default and separated by underscores (`_`).
73
74
@@ -713,6 +714,81 @@ IoTDB> SELECT * FROM information_schema.services
713
714
+------------+-----------+---------+
714
715
```
715
716
717
+
##### 2.22 TABLE_DISK_USAGE
718
+
> This system table is available since version V2.0.9-beta
719
+
720
+
Used to display the disk space usage of specified tables (excluding views), including the size of ChunkGroups and the size of Metadata.
721
+
722
+
Note: Statistics are based on the actual size of data in TsFiles; therefore, deletions made via mods are not considered.
723
+
724
+
The table structure is shown below:
725
+
726
+
| Column Name | Data Type | Column Type | Description |
Copy file name to clipboardExpand all lines: src/UserGuide/Master/Table/Reference/System-Tables_timecho.md
+78-3Lines changed: 78 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,8 +23,8 @@
23
23
24
24
IoTDB has a built-in system database called `INFORMATION_SCHEMA`, which contains a series of system tables for storing IoTDB runtime information (such as currently executing SQL statements, etc.). Currently, the `INFORMATION_SCHEMA` database only supports read operations.
25
25
26
-
> 💡 **[V2.0.8.2 Version Update]**<br>
27
-
> 👉 Added onw system tables: **[SERVICES](#_2-21-services)** (service status management), enhancing cluster maintenance and performance analysis.
26
+
> 💡 **[V2.0.9 Version Update]**<br>
27
+
> 👉 Added onw system tables: **[TABLE_DISK_USAGE](#_2-22-table-disk-usage)** (Table-level Storage Space Statistics), enhancing cluster maintenance and performance analysis.
28
28
29
29
30
30
## 1. System Database
@@ -63,6 +63,7 @@ IoTDB> show tables from information_schema
63
63
| regions| INF|
64
64
| services| INF|
65
65
| subscriptions| INF|
66
+
| table_disk_usage| INF|
66
67
| tables| INF|
67
68
| topics| INF|
68
69
| views| INF|
@@ -71,7 +72,7 @@ IoTDB> show tables from information_schema
* **Operations**: Read-only, only supports `SELECT`, `COUNT/SHOW DEVICES`, `DESC`. Any modifications to table structure or content are not allowed and will result in an error: `"The database 'information_schema' can only be queried." `
76
77
* **Column Names**: System table column names are all lowercase by default and separated by underscores (`_`).
77
78
@@ -717,6 +718,80 @@ IoTDB> SELECT * FROM information_schema.services
717
718
+------------+-----------+---------+
718
719
```
719
720
721
+
##### 2.22 TABLE_DISK_USAGE
722
+
> This system table is available since version V2.0.9
723
+
724
+
Used to display the disk space usage of specified tables (excluding views), including the size of ChunkGroups and the size of Metadata.
725
+
726
+
Note: Statistics are based on the actual size of data in TsFiles; therefore, deletions made via mods are not considered.
727
+
728
+
The table structure is shown below:
729
+
730
+
| Column Name | Data Type | Column Type | Description |
0 commit comments