Skip to main content

partitions

Overview​

Show the Partition status of all tables in the database. Before 3.0.2(inclusive), the tables were always empty.

Database​

information_schema

Table Information​

Column NameTypeDescription
PARTITION_IDbigintPartitinon ID
TABLE_CATALOGvarchar(64)Catalog name
TABLE_SCHEMAvarchar(64)Database name
TABLE_NAMEvarchar(64)Table name
PARTITION_NAMEvarchar(64)Partition name
SUBPARTITION_NAMEvarchar(64)Always empty
PARTITION_ORDINAL_POSITIONintOrdinal position of the partition
SUBPARTITION_ORDINAL_POSITIONintAlways empty
PARTITION_METHODvarchar(13)Partition method
SUBPARTITION_METHODvarchar(13)Always empty
PARTITION_EXPRESSIONvarchar(2048)Partition expression
SUBPARTITION_EXPRESSIONvarchar(2048)Always empty
PARTITION_DESCRIPTIONtextPartition description
TABLE_ROWSbigint
AVG_ROW_LENGTHbigint
DATA_LENGTHbigint
MAX_DATA_LENGTHbigint
INDEX_LENGTHbigint
DATA_FREEbigint
CREATE_TIMEbigint
UPDATE_TIMEdatetime
CHECK_TIMEdatetime
CHECKSUMbigint
PARTITION_COMMENTtext
NODEGROUPvarchar(256)
TABLESPACE_NAMEvarchar(268)
LOCAL_DATA_SIZEtextPartition local data size
REMOTE_DATA_SIZEtextPartition remote data size (cloud)
STATEtextPartition state
REPLICA_ALLOCATIONtextdistribution of replicas of a tablet
REPLICA_NUMintreplicas num
STORAGE_POLICYtextStorage policy
STORAGE_MEDIUMtextStorage medium
COOLDOWN_TIME_MStextCooldown time
LAST_CONSISTENCY_CHECK_TIMEtextLast consistency check time
BUCKET_NUMintPartition bucket num
COMMITTED_VERSIONbigintLast commited version
VISIBLE_VERSIONbigintCurrent visible version
PARTITION_KEYtextPartition key
RANGEtextPartition range(min max value)
DISTRIBUTIONtextDistribution type