BigQuery's on-demand pricing bills for the data a query reads, not the rows it returns. A quick look at a big table, with SELECT * and LIMIT 10, can still read all of it. Most of the time that's a few cents. Now and then it's thousands of dollars: one user of the public HTTP Archive dataset reported a $14,000 charge in two hours.
BigQuery has the brakes built in. A dry run shows a query's size before it runs, a byte limit stops a query before it's billed, tables can refuse to be read in full, and daily quotas cap each person. An AI connected to BigQuery can find the big queries and check sizes. Setting the limits stays with whoever owns the project.
Here are four steps, three prompts, and how an online retailer puts limits in place in one week.
Four steps, in this order
Four steps, in this order
How BigQuery bills a query
- By data read. On-demand queries cost $6.25 per TiB processed in US locations, with the first 1 TiB each month free.
- By column, not row. BigQuery reads whole columns. Google says that on tables that aren't clustered, LIMIT doesn't change how much is read. Fewer columns and a date filter do.
- Estimates are an upper bound. Google calls a dry run's estimate an upper bound, so the final bill can be lower.
- Previews are free. Table preview in the console shows rows at no charge.
Start with BigQuery's own tools
The console shows each query's estimated size before you run it. Maximum bytes billed makes a query fail without a charge if it would read more. Partitioned tables can require a filter on the partition column, so a query without one fails. Custom quotas cap data processed per day, per user and per project. Each user is unlimited by default, and the project default is 200 TiB a day. And INFORMATION_SCHEMA.JOBS keeps 180 days of jobs, with who ran each one and the bytes billed.
What's left is deciding where each limit goes, and telling people before a query starts failing.
Do it in Claude or ChatGPT
Connect BigQuery with our guide to BigQuery in Claude, ChatGPT and MCP. All three prompts only read. The first and last still run small queries, which are billed.
Who scans what.
Using BigQuery, from INFORMATION_SCHEMA.JOBS in region-[us], list the 20 queries with the most bytes billed in the last 30 days, with who ran them, the tables they read, and whether they filtered on a date. Don't change anything.
Copy promptCheck a query's size.
Dry run this query and tell me how many GiB it would process and what that costs at on-demand rates. Don't run it. [paste query]
Copy promptLarge tables.
List the tables over [100] GiB in [dataset], with whether each is partitioned or clustered, and whether it requires a partition filter. Suggest changes, but don't make them.
Copy promptA few things to know:
- Start with a per-person limit. A project quota stops BigQuery for everyone in the project once it's reached. A per-user quota stops only that person, or that service account.
- Quotas reset at midnight Pacific Time. Lowering one takes effect in minutes. Raising one goes through an approval and can take longer.
- Check scheduled queries first. A partition filter rule breaks any query without a date filter, including ones that run at night.
- On-demand only. Custom quotas apply to on-demand pricing, not to capacity pricing with Editions.
When the whole company queries one project
On your own, you'd watch your own queries. In a growing company, marketing, ecommerce and finance all query the same project, the data lead sets the limits, and nobody sees a big query until the invoice.
Bluewren Retail, an 80-person online homeware retailer in Portland, Oregon, watches its BigQuery usage in BlueNexus. BigQuery is connected, and anything that changes it waits for Quinn. Every Monday at 08:00, the data agent reads last week's job history and the settings of the largest tables, and prepares what needs a decision for Quinn, the data lead.
Illustration of the BlueNexus app with example data.
Illustration of the BlueNexus app with example data.
Last week, 5.2 TiB was billed. Four queries over 100 GiB account for 1.9 TiB, all reading the full GA4 export when the question was about one week. Two large tables can still be read in full, and nobody has a daily limit. The agent prepares the next steps for Quinn.
Quinn approves. On Wednesday 11 November, Arden finds one nightly report on web_sessions without a date filter and adds one. The filter rule goes on Thursday 12 November. Quinn sets a daily limit of 1 TiB per person in Google Cloud, well above anyone's normal day.
For Quinn, the data lead. From BigQuery. Nothing is posted, created or changed until Quinn approves it.
- Post the 4 big queries in the data channel, each with a cheaper versionSame answers, filtered to the dates asked for: about 40 GiB in all instead of 1.9 TiB
- Create a task for Arden to check scheduled queries on orders_history and web_sessionsIn the Data project, due Wednesday, before the rule goes on
- Require a partition filter on orders_history and web_sessionsIn BigQuery, on Thursday, after Arden's check
- Set a daily query limit per personLeft unticked: Quinn sets it in Google Cloud
Illustration of the BlueNexus app with example data.
For connecting BigQuery, see BigQuery in Claude, ChatGPT and MCP. For the team, see why GA4 and BigQuery numbers differ, and how a team agrees on one set. To keep BigQuery costs in check with your team, sign up for BlueNexus.