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 name | Type | Description |
|---|---|---|
PARTITION_ID | bigint | Partitinon ID. |
TABLE_CATALOG | varchar(64) | Catalog name. |
TABLE_SCHEMA | varchar(64) | Database name. |
TABLE_NAME | varchar(64) | Table name. |
PARTITION_NAME | varchar(64) | Partition name. |
SUBPARTITION_NAME | varchar(64) | Always empty. |
PARTITION_ORDINAL_POSITION | int | Ordinal position of the partition. |
SUBPARTITION_ORDINAL_POSITION | int | Always empty. |
PARTITION_METHOD | varchar(13) | Partition method. |
SUBPARTITION_METHOD | varchar(13) | Always empty. |
PARTITION_EXPRESSION | varchar(2048) | Partition expression. |
SUBPARTITION_EXPRESSION | varchar(2048) | Always empty. |
PARTITION_DESCRIPTION | string | Partition description. |
TABLE_ROWS | bigint | Table rows. |
AVG_ROW_LENGTH | bigint | Avg row length. |
DATA_LENGTH | bigint | Data length. |
MAX_DATA_LENGTH | bigint | Max data length. |
INDEX_LENGTH | bigint | Index length. |
DATA_FREE | bigint | Data free. |
CREATE_TIME | bigint | Create time. |
UPDATE_TIME | datetime | Update time. |
CHECK_TIME | datetime | Check time. |
CHECKSUM | bigint | Checksum. |
PARTITION_COMMENT | string | Partition comment. |
NODEGROUP | varchar(256) | Nodegroup. |
TABLESPACE_NAME | varchar(268) | Tablespace name. |
LOCAL_DATA_SIZE | string | Partition local data size. |
REMOTE_DATA_SIZE | string | Partition remote data size (cloud). |
STATE | string | Partition state. |
REPLICA_ALLOCATION | string | Distribution of replicas of a tablet. |
REPLICA_NUM | int | Replicas num. |
STORAGE_POLICY | string | Storage policy. |
STORAGE_MEDIUM | string | Storage medium. |
COOLDOWN_TIME_MS | string | Cooldown time. |
LAST_CONSISTENCY_CHECK_TIME | string | Last consistency check time. |
BUCKET_NUM | int | Partition bucket num. |
COMMITTED_VERSION | bigint | Last commited version. |
VISIBLE_VERSION | bigint | Current visible version. |
PARTITION_KEY | string | Partition key. |
RANGE | string | Partition range(min max value). |
DISTRIBUTION | string | Distribution 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.