docs/src/main/sphinx/sql/show-stats.md
SHOW STATS FOR table
SHOW STATS FOR ( query )
Returns approximated statistics for the named table or for the results of a
query. Returns NULL for any statistics that are not populated or
unavailable on the data source.
Statistics are returned as a row for each column, plus a summary row for
the table (identifiable by a NULL value for column_name). The following
table lists the returned columns and what statistics they represent. Any
additional statistics collected on the data source, other than those listed
here, are not included.
:::{list-table} Statistics :widths: 20, 40, 40 :header-rows: 1
column_nameNULL in the table summary rowdata_sizeNULL in the table summary row. Available for columns of
string data types with variable widths.distinct_values_countNULL in the table summary rownulls_fractionsNULLNULL in the table summary row.row_countNULL in column statistic rowslow_valueNULL in the table summary row. Available for columns of
DATE, integer,
floating-point, and
exact numeric data types.high_valueNULL in the table summary row. Available for columns of
DATE, integer,
floating-point, and
exact numeric data types.
:::