partitions
The partitions view displays the information about partitioned tables and table partitions in the database. The information about level-1 partitions and level-2 partitions is recorded separately. For details, see Table 1. This view is read-only. All users have the read permission on this view. A user can view only the records that the user has the access permission. Some information in the view is obtained based on statistics. Run ANALYZE before checking the information. (If data is updated in the database, you are advised to delay running ANALYZE.) Level-2 partitions are not supported in distributed mode. Therefore, the values of columns related to level-2 partitions in this view are always NULL.
| 
       Name  | 
     
       Type  | 
     
       Description  | 
    
|---|---|---|
| 
       TABLE_CATALOG  | 
     
       varchar(512)  | 
     
       Name of the catalog to which the table belongs. When lower_case_table_names is set to 0, the value of this column is case-sensitive. When lower_case_table_names is set to 1, the value of this column is case-insensitive.  | 
    
| 
       TABLE_SCHEMA  | 
     
       varchar(64)  | 
     
       Name of the schema. When lower_case_table_names is set to 0, the value of this column is case-sensitive. When lower_case_table_names is set to 1, the value of this column is case-insensitive.  | 
    
| 
       TABLE_NAME  | 
     
       varchar(64)  | 
     
       Name of the table. When lower_case_table_names is set to 0, the value of this column is case-sensitive. When lower_case_table_names is set to 1, the value of this column is case-insensitive.  | 
    
| 
       PARTITION_NAME  | 
     
       varchar(64)  | 
     
       Name of the partition.  | 
    
| 
       SUBPARTITION_NAME  | 
     
       varchar(64)  | 
     
       Name of the level-2 partition. If a partition is not a level-2 partition, the value is null.  | 
    
| 
       PARTITION_ORDINAL_POSITION  | 
     
       bigint unsigned  | 
     
       Position of the partition in the table.  | 
    
| 
       SUBPARTITION_ORDINAL_POSITION  | 
     
       bigint unsigned  | 
     
       Position of the level-2 partition in the partition. If a partition is not a level-2 partition, the value is null.  | 
    
| 
       PARTITION_METHOD  | 
     
       varchar(18)  | 
     
       Partitioning policy. If a partition is not a level-1 partition, the value is null. 
  | 
    
| 
       SUBPARTITION_METHOD  | 
     
       varchar(12)  | 
     
       Level-2 partitioning policy. If a partition is not a level-2 partition, the value is null. 
  | 
    
| 
       PARTITION_EXPRESSION  | 
     
       longtext  | 
     
       Not supported. The value is NULL.  | 
    
| 
       SUBPARTITION_EXPRESSION  | 
     
       longtext  | 
     
       Not supported. The value is NULL.  | 
    
| 
       PARTITION_DESCRIPTION  | 
     
       longtext  | 
     
      
  | 
    
| 
       TABLE_ROWS  | 
     
       bigint unsigned  | 
     
       Number of table rows in the partition.  | 
    
| 
       AVG_ROW_LENGTH  | 
     
       bigint unsigned  | 
     
       Not supported. The value is NULL.  | 
    
| 
       DATA_LENGTH  | 
     
       bigint unsigned  | 
     
       Not supported. The value is NULL.  | 
    
| 
       MAX_DATA_LENGTH  | 
     
       bigint unsigned  | 
     
       Not supported. The value is NULL.  | 
    
| 
       INDEX_LENGTH  | 
     
       bigint unsigned  | 
     
       Not supported. The value is NULL.  | 
    
| 
       DATA_FREE  | 
     
       bigint unsigned  | 
     
       Not supported. The value is NULL.  | 
    
| 
       CREATE_TIME  | 
     
       datetime  | 
     
       Not supported. The value is NULL.  | 
    
| 
       UPDATE_TIME  | 
     
       datetime  | 
     
       Not supported. The value is NULL.  | 
    
| 
       CHECK_TIME  | 
     
       datetime  | 
     
       Not supported. The value is NULL.  | 
    
| 
       CHECKSUM  | 
     
       bigint unsigned  | 
     
       Not supported. The value is NULL.  | 
    
| 
       PARTITION_COMMENT  | 
     
       varchar(80)  | 
     
       Not supported. The value is NULL.  | 
    
| 
       NODEGROUP  | 
     
       varchar(12)  | 
     
       Not supported. The value is NULL.  | 
    
| 
       TABLESPACE_NAME  | 
     
       varchar(64)  | 
     
       Name of the tablespace to which the partition belongs.  | 
    
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot