gulliver_review
Reviews SQL and dbt model changes before a PR: compares base vs head, flags new lint, classifies change type, lists breaking downstream models, and estimates scan and cost before vs after.
Instructions
PR gate for SQL models: for each .sql model changed between a base ref and head (git) or between two dbt manifests, report new scale lint, the change type (cosmetic, non_breaking, breaking), the downstream models that break and, with a connection, the scan and money per run and per month before vs after (estimates). rehearse=true also runs 1% and 3% samples to catch new row explosions. status 'block' means the [review] policy says do not merge. Call before opening a PR. Reads git or the manifests and, with a connection, estimates without running (except rehearse=true). Use gulliver_impact for one table or column, gulliver_lint for one query.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Base ref to compare against, e.g. 'origin/main'. | origin/main |
| head | No | Head ref (only committed changes are reviewed). | HEAD |
| markdown | No | Also return the PR-comment markdown. | |
| rehearse | No | Also run changed models on 1% and 3% samples (budget-checked; costs money on billed engines). | |
| connection | No | Connection name as listed by gulliver_status (from gulliver.toml or GULLIVER_DSN). Omit for the default connection. | |
| models_dir | No | Folder with SQL models (*.sql, dbt-style refs allowed). Use an absolute path. | |
| manifest_base | No | dbt manifest.json of the base build (instead of git). | |
| manifest_head | No | dbt manifest.json of the branch. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||