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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"table_name": "<table_name>"
},
"name": "hana_get_column_stats"
}
}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) |