Query what a run built
query_runRuns one read-only SQL statement over the parquet a run sealed, and waits for the answer. THIS IS HOW YOU CHECK THE DATA IS RIGHT before promoting anything: count the rows, look at the range, find the nulls. Example: {"run_id": "…", "sql": "SELECT count(*) AS rows, min(observed_at) AS first, max(observed_at) AS last FROM t", "max_rows": 100}. One statement, beginning SELECT, WITH, EXPLAIN or DESCRIBE. Returns {query_id, state, rows, row_count, truncated, elapsed_ms, result_digest}. max_rows is capped at 100, and a wide answer is trimmed further to keep the result under 16 KiB (rows_omitted says so) — aggregate in the statement rather than paging, or download the parquet with get_artifact_download. If the wait runs out the answer is query_timed_out carrying query_id — call again with that query_id (and no sql) to read the same execution rather than paying for a second. wait_seconds is capped at 20.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | No | ||
| run_id | Yes | ||
| max_rows | No | ||
| query_id | No | ||
| wait_seconds | No |