Note
This view is available starting with V4.0.0.
Purpose
This view displays the metadata of all table groups of all tenants in the sys tenant. It mainly displays the partitioning information of the table groups.
Note
Starting from V4.2.0, the partitioning attribute fields in this view will be displayed as NONE or NULL.
Columns
Column |
Type |
Nullable |
Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | The tenant ID. |
| TABLEGROUP_NAME | varchar(128) | NO | The name of the table group. |
| PARTITIONING_TYPE | varchar(13) | NO | The partitioning type of the primary partitions of the table group. Valid values:
NoteStarting from V4.2.0, the value of this field is |
| SUBPARTITIONING_TYPE | varchar(13) | NO | The partitioning type of the subpartitions of the table group. Valid values:
NoteStarting from V4.2.0, the value of this field is |
| PARTITION_COUNT | bigint(0) | NO | The value is NULL. |
| DEF_SUBPARTITION_COUNT | bigint(0) | NO | The value is NULL. |
| PARTITIONING_KEY_COUNT | bigint(0) | NO | The value is NULL. |
| SUBPARTITIONING_KEY_COUNT | bigint(0) | NO | The value is NULL. |
| SHARDING | varchar(20) | NO | The SHARDING attribute of the table group. Valid values:
NoteThis field is available starting from V4.2.0. |
| SCOPE | varchar(20) | NO | The SCOPE attribute of the table group. Valid values:
NoteFor V5.x versions, this field is available starting from V5.0.1. |
Sample query
Query the attributes of the tblgroup1 table group.
obclient> SELECT * FROM oceanbase.CDB_OB_TABLEGROUPS
WHERE tablegroup_name = 'tblgroup1'
LIMIT 1\G
The query result is as follows:
*************************** 1. row ***************************
TENANT_ID: 1002
TABLEGROUP_NAME: tblgroup1
PARTITIONING_TYPE: NONE
SUBPARTITIONING_TYPE: NONE
PARTITION_COUNT: NULL
DEF_SUBPARTITION_COUNT: NULL
PARTITIONING_KEY_COUNT: NULL
SUBPARTITIONING_KEY_COUNT: NULL
SHARDING: NONE
SCOPE: ZONE
1 row in set
