BigQuery query cost calculator
Enter the bytes a query processes, from a dry run or the console, to see its on-demand cost per run and per month at $6.25 per TiB or your own rate, and what a change adds.
Updated
What a BigQuery query costs, why a query or dbt model scans more than it should, which controls stop it, and how to catch a costly SQL change before it merges.
Enter the bytes a query processes, from a dry run or the console, to see its on-demand cost per run and per month at $6.25 per TiB or your own rate, and what a change adds.
Updated
Fail queries over a byte limit, require a partition filter, or set an approximate daily cap with custom quotas. Budgets and job history only report; a pull request check flags costly changes first.
Updated
Compile your dbt project on your main branch and on the pull request, dry-run each changed model's compiled SQL from both, and compare the bytes.
Updated
BigQuery skips partitions only when the query filters the partitioning column with a constant expression. Without such a filter, or with one it can't use, it reads every partition.
Updated
DiffCost is a GitHub Action that prices the BigQuery SQL changes in a pull request. Setting it up? The documentation covers installation, thresholds and the dashboard.