gulliver_preflight
Estimate SQL query bytes, rows and cost without executing it, then get scale lint and a budget verdict with status and next step.
Instructions
Estimate bytes, rows and money for a query WITHOUT running it (BigQuery dry-run, EXPLAIN elsewhere; free), plus scale lint and the budget verdict. Every estimate says how exact it is (exact, upper_bound or heuristic). status is ok, warn, block, needs_rehearsal or needs_approval, with next_step. Always call before gulliver_run. Use gulliver_rehearse instead when the estimate is a heuristic or joins may multiply rows. Logs a receipt for gulliver_receipt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | Exactly one SQL statement (SELECT/WITH) in the connection's dialect. Several statements are rejected. | |
| connection | No | Connection name as listed by gulliver_status (from gulliver.toml or GULLIVER_DSN). Omit for the default connection. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| next_step | Yes |