Skip to main content

partitions

Inspect partition metadata for tables visible to your SQL user.

Run the query in the warehouse SQL Editor or a connected SQL client:

SELECT * FROM information_schema.partitions LIMIT 10;

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_DESCRIPTIONstringPartition description.
TABLE_ROWSbigintTable rows.
AVG_ROW_LENGTHbigintAvg row length.
DATA_LENGTHbigintData length.
MAX_DATA_LENGTHbigintMax data length.
INDEX_LENGTHbigintIndex length.
DATA_FREEbigintData free.
CREATE_TIMEbigintCreate time.
UPDATE_TIMEdatetimeUpdate time.
CHECK_TIMEdatetimeCheck time.
CHECKSUMbigintChecksum.
PARTITION_COMMENTstringPartition comment.
NODEGROUPvarchar(256)Nodegroup.
TABLESPACE_NAMEvarchar(268)Tablespace name.
LOCAL_DATA_SIZEstringPartition local data size.
REMOTE_DATA_SIZEstringPartition remote data size (cloud).
STATEstringPartition state.
REPLICA_ALLOCATIONstringDistribution of replicas of a tablet.
REPLICA_NUMintReplicas num.
STORAGE_POLICYstringStorage policy.
STORAGE_MEDIUMstringStorage medium.
COOLDOWN_TIME_MSstringCooldown time.
LAST_CONSISTENCY_CHECK_TIMEstringLast consistency check time.
BUCKET_NUMintPartition bucket num.
COMMITTED_VERSIONbigintLast commited version.
VISIBLE_VERSIONbigintCurrent visible version.
PARTITION_KEYstringPartition key.
RANGEstringPartition range(min max value).
DISTRIBUTIONstringDistribution type.

Use DESCRIBE information_schema.partitions; to inspect the schema in your warehouse.

Replica, storage medium, and cooldown fields are engine metadata fields. They do not provide controls for warehouse storage or replication in VeloDB Cloud.

Ask AI