get_column_stats
Retrieve optimizer statistics for table columns, including NDV, density, null count, bucket count, low/high value, and histogram type. Filter results by optional column or schema.
Instructions
Return optimizer statistics for columns of a table: number of distinct values (NDV), density, null count, bucket count, low/high value, histogram type. Optional column filter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name. | |
| column | No | Optional column name filter. | |
| schema | No | Schema (owner) of the table. Optional — defaults to the server's current schema; omit rather than guess. |