columnHistogram
columnHistogramMeasure percentile distribution for a numeric, date, timestamp, or text column, including min/max, percentiles (P25-P99), and null counts to understand data spread.
Instructions
Measure percentile distribution for one orderable numeric, date, timestamp or text column: min/max, P25/P50/P75/P90/P95/P99 and null counts. Use columnDistribution for top frequent values instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| column | Yes | ||
| schema | No | ||
| connection | Yes | Database to run against. Call listConnections for valid names; do not guess. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Maximum observed non-null column value. | |
| min | No | Minimum observed non-null column value. | |
| p25 | No | 25th percentile value for the column. | |
| p50 | No | Median, or 50th percentile, value for the column. | |
| p75 | No | 75th percentile value for the column. | |
| p90 | No | 90th percentile value for the column. | |
| p95 | No | 95th percentile value for the column. | |
| p99 | No | 99th percentile value for the column. | |
| table | No | ||
| column | No | Column whose percentile distribution was measured. | |
| schema | No | ||
| nullRows | Yes | Number of rows where the column value is NULL. | |
| nullRatio | Yes | Share of rows where the column value is NULL, from 0.0 to 1.0. | |
| totalRows | Yes | Total number of rows considered for this statistic. | |
| columnType | No | Database type of the column used to choose percentile behavior. | |
| nonNullRows | Yes | Number of rows where the column value is not NULL. | |
| percentileFunction | No | Database percentile function used, such as continuous or discrete percentile. |