column_statistics
Inspect optimizer statistics collected for table columns.
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.column_statistics LIMIT 10;
Database
__internal_schema
Table information
| Column name | Type | Description |
|---|---|---|
id | varchar(4096) | Unique ID. |
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. |
col_id | varchar(1024) | ID of the column, currently storing column names. |
part_id | varchar(1024) | ID of the partition, always empty. |
count | bigint | Number of rows. |
ndv | bigint | 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 | Update time of current statistics. |
hot_value | string | Encoded frequent-value statistics, when collected. |
Use DESCRIBE __internal_schema.column_statistics; to inspect the schema in your warehouse.
The part_id field in this table is unused for table-level column statistics. For partition-level statistics, inspect partition_statistics.