Purpose
The information_schema.PARTITIONS view provides information about partitions.
Note
This view is introduced since OceanBase Database V1.4.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| TABLE_CATALOG | text | NO | The name of the catalog to which the table containing the column belongs. The value is always def. |
| TABLE_SCHEMA | varchar(128) | NO | The name of the database. |
| TABLE_NAME | varchar(256) | NO | The name of the table. |
| PARTITION_NAME | varchar(64) | NO | The name of the partition. |
| SUBPARTITION_NAME | varchar(64) | NO | The name of the subpartition. |
| PARTITION_ORDINAL_POSITION | bigint(20) unsigned | NO | The position of the current partition in all partitions. |
| SUBPARTITION_ORDINAL_POSITION | bigint(20) unsigned | NO | The position of the current subpartition in all subpartitions. |
| PARTITION_METHOD | varchar(13) | NO | The partitioning type. |
| SUBPARTITION_METHOD | varchar(13) | NO | The subpartitioning type. |
| PARTITION_EXPRESSION | text | NO | The expression for the partitioning function. |
| SUBPARTITION_EXPRESSION | text | NO | The expression for the subpartitioning function. |
| PARTITION_DESCRIPTION | text | NO | The description for RANGE and LIST partitions. |
| SUBPARTITION_DESCRIPTION | text | NO | The description for RANGE and LIST subpartitions. |
| TABLE_ROWS | bigint(20) unsigned | NO | At present, this column is not supported and is 0 by default. |
| AVG_ROW_LENGTH | bigint(21) unsigned | NO | At present, this column is not supported and is 0 by default. |
| DATA_LENGTH | bigint(0) unsigned | NO | At present, this column is not supported and is 0 by default. |
| MAX_DATA_LENGTH | bigint(0) unsigned | NO | At present, this column is not supported and is 0 by default. |
| INDEX_LENGTH | bigint(0) unsigned | NO | At present, this column is not supported and is 0 by default. |
| DATA_FREE | bigint(0) unsigned | NO | At present, this column is not supported and is 0 by default. |
| CREATE_TIME | timestamp(6) | NO | At present, this column is not supported and is NULL by default. |
| UPDATE_TIME | datetime | NO | At present, this column is not supported and is NULL by default. |
| CHECK_TIME | datetime | YES | At present, this column is not supported and is NULL by default. |
| CHECKSUM | bigint(0) | NO | At present, this column is not supported and is NULL by default. |
| PARTITION_COMMENT | text | NO | The comment on the partition. |
| NODEGROUP | varchar(256) | NO | The node group to which the partition belongs. |
| TABLESPACE_NAME | varchar(268) | NO | The name of the tablespace containing the partition. |