partition_statistics
Inspect optimizer statistics collected for columns within individual partitions.
These are service-maintained tables. Use them for inspection and contact VeloDB Cloud support before changing their schema, properties, or data.
Run the query in the warehouse SQL Editor or a connected SQL client:
SELECT * FROM __internal_schema.partition_statistics LIMIT 10;
Database
__internal_schema
Table information
| Column name | Type | Description |
|---|---|---|
catalog_id | varchar(1024) | ID of the catalog. |
db_id | varchar(1024) | ID of the database. |
tbl_id | varchar(1024) | ID of the table. |
idx_id | varchar(1024) | ID of the Index. |
part_name | varchar(1024) | Name of the partition. |
part_id | bigint | ID of the partition. |
col_id | varchar(1024) | ID of the column, currently storing column names. |
count | bigint | Number of rows. |
ndv | hll | Number of distinct values. |
null_count | bigint | Number of NULLs. |
min | varchar(65533) | Minimum value. |
max | varchar(65533) | Maximum value. |
data_size_in_bytes | bigint | Data size in bytes. |
update_time | datetime | Last update time of current statistics. |
Use DESCRIBE __internal_schema.partition_statistics; to inspect the schema in your warehouse.
ndv stores an HLL sketch rather than an integer count. Use HLL_CARDINALITY(ndv) when inspecting its estimated number of distinct values.