oceanbase.CDB_OB_TABLEGROUPS

2023-12-08 07:13:36  Updated

Purpose

The oceanbase.CDB_OB_TABLEGROUPS view displays the metadata of table groups of all tenants in the sys tenant, especially the partition information about the table groups.

Note

This view is introduced since OceanBase Database V4.0.0.

Columns

Column Type Nullable? Description
TENANT_ID bigint(20) NO The ID of the tenant.
TABLEGROUP_NAME varchar(128) NO The name of the table group.
PARTITIONING_TYPE varchar(13) NO The partitioning type of the partitioned table group. Valid values:
  • NONE: non-partitioning
  • HASH: HASH partitioning (with a single partitioning key)
  • KEY: KEY partitioning
  • RANGE: RANGE partitioning (with a single partitioning key)
  • RANGE COLUMNS: RANGE COLUMNS partitioning
  • LIST: LIST partitioning (with a single partitioning key)
  • LIST COLUMNS: LIST COLUMNS partitioning
  • UNKNOWN: an unknown type

    Note

    This column is introduced since OceanBase Database V4.2.0 and is NULL by default.

  • SUBPARTITIONING_TYPE varchar(13) NO The subpartitioning type of the partitioned table group. Valid values:
  • NONE: non-subpartitioning
  • HASH: HASH partitioning (with a single partitioning key)
  • KEY: KEY partitioning
  • RANGE: RANGE partitioning (with a single partitioning key)
  • RANGE COLUMNS: RANGE COLUMNS partitioning
  • LIST: LIST partitioning (with a single partitioning key)
  • LIST COLUMNS: LIST COLUMNS partitioning
  • UNKNOWN: an unknown type

    Note

    This column is introduced since OceanBase Database V4.2.0 and is NULL by default.

  • PARTITION_COUNT bigint(20) NO The number of partitions in the partitioned table group. For a non-partitioned table group, the value is NULL.
    DEF_SUBPARTITION_COUNT bigint(0) NO The number of subpartitions in the partitioned table group. For a non-subpartitioned table group, the value is NULL.
    PARTITIONING_KEY_COUNT bigint(20) NO The number of partitioning keys for the partitioned table group. For a non-partitioned table group, the value is NULL.
    SUBPARTITIONING_KEY_COUNT bigint(20) NO The number of subpartitioning keys for the partitioned table group. For a non-subpartitioned table group, the value is NULL.
    SHARDING varchar(10) NO The attribute of the table group.

    Contact Us