table_describe
Schema, row count, null counts, cardinality estimates, ranges and content hash.
Flags
| Flag | Value |
|---|---|
| Kind | query: reads values |
| Rows | one result, not a table |
| Deterministic | yes |
| Order matters | no |
| Decomposable | no |
| Makes | no value |
Parameters
| Parameter | Type | Required | Notes |
|---|---|---|---|
table |
reference | yes | A value's reference. |
response_format |
"concise" | "detailed" | no | The byte budget: 64 KiB concise, 512 KiB detailed. |
Example
Over the example tables orders; ${input:name} is an input's reference and ${verb} the value an earlier call made.
table_describe {
"table": "${input:orders}"
}Result
240 rows, 10 columns
{
"ref": "sha256:99ab959ecf24ecf1edaeea4428de84d2222c75d1000a17203f15ee061b9e25d1",
"rows": 240,
"columns": "…"
}Diagnostics
A refusal comes back as ok: false with coded diagnostics; every code, with its fix, is on the diagnostics page. A parameter that does not match the schema above is ARG_INVALID, with the parameter's path.