Skip to main content

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 nameTypeDescription
catalog_idvarchar(1024)ID of the catalog.
db_idvarchar(1024)ID of the database.
tbl_idvarchar(1024)ID of the table.
idx_idvarchar(1024)ID of the Index.
part_namevarchar(1024)Name of the partition.
part_idbigintID of the partition.
col_idvarchar(1024)ID of the column, currently storing column names.
countbigintNumber of rows.
ndvhllNumber of distinct values.
null_countbigintNumber of NULLs.
minvarchar(65533)Minimum value.
maxvarchar(65533)Maximum value.
data_size_in_bytesbigintData size in bytes.
update_timedatetimeLast 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.