Get column statistics
hana_get_column_statsRetrieve column statistics (distinct count, null count, min/max) for SAP HANA tables from cached metadata or live queries, with a specific column required for live mode.
Instructions
Retrieve column statistics (distinct count, null count, min/max) from SYS.COLUMN_STATISTICS (cached) or via live COUNT queries (live=true). With live=true a specific column_name is required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live | No | If true, run live COUNT(*)/COUNT(DISTINCT) queries instead of reading SYS.COLUMN_STATISTICS. | |
| table_name | Yes | Table name | |
| column_name | No | Optional: single column to inspect. Required when live=true. | |
| schema_name | No | Schema name (defaults to HANA_SCHEMA) |