Request a demo

BigQuery error · Resources and limits

Response too large to return

The query result, or one stage of the query, is bigger than the maximum response size (10 GB compressed for results written to the temporary table). Write the result to a destination table or export it to Cloud Storage, or return fewer rows and columns.

Error reason responseTooLarge · HTTP 403 · Checked against the Google Cloud docs in November 2026

The error message

Response too large to return. Consider specifying a destination table in your job configuration.

Causes

The result is too big for the anonymous result table

Without a destination table, BigQuery writes results to a temporary table with a maximum response size of 10 GB compressed. Exporting a big table through SELECT * in a notebook, BI tool or client library is the usual trigger. Legacy SQL prints the same error with Consider setting allowLargeResults to true in your job configuration.

A large intermediate stage

Some queries run in stages, and the error can come from a stage even when the final result is smaller. A global ORDER BY is the most common example, because all rows go through one stage.

A single row is too large to page through

Reading results with jobs.getQueryResults (also used by the console and bq) has a 20 MB row limit, and tabledata.list 100 MB. Very wide rows or huge arrays then fail with variants such as Response too large to return. single row too big to return due to byte limit or Message before conversion exceeds max row limit.

How to fix it

1. Write the result to a table

A destination table has no response size limit. In SQL, create the table directly; in bq use --destination_table, in the console Query settings > Destination.

CREATE OR REPLACE TABLE `project.analytics.purchases_nov` AS
SELECT user_id, order_id, amount, event_ts
FROM `project.dataset.events`
WHERE event_date BETWEEN '2026-11-01' AND '2026-11-30'
  AND event_name = 'purchase';

2. Export big results to Cloud Storage

If the data is going to another system, export it as files instead of streaming rows through the API.

EXPORT DATA OPTIONS (
  uri = 'gs://my-bucket/exports/purchases-*.parquet',
  format = 'PARQUET',
  overwrite = true
) AS
SELECT user_id, order_id, amount, event_ts
FROM `project.dataset.events`
WHERE event_date = '2026-11-22';

3. Remove the global ORDER BY or add LIMIT

Sorting a large result serves no purpose if it lands in a file or a table. If a person reads the output, aggregate it or keep the top rows with LIMIT.

4. Read wide rows with the Storage Read API

For the single-row variant, read the destination table with the BigQuery Storage Read API, which streams Arrow or Avro and doesn't use the REST row limit, or select fewer columns and unnest big arrays.

How to prevent it

  • Point notebooks and BI extracts at destination tables or the Storage Read API instead of pulling millions of rows through query results.
  • Treat any query that returns more than a few million rows to a client as an export job and write it as one.
  • Check failed jobs with error_result.reason = 'responseTooLarge' in failed jobs cost: the whole query ran before it failed.

FAQ

Am I charged for a query that fails with response too large?

With on-demand pricing, no: queries that return an error aren't charged. With editions, the slot time spent computing the result before the failure counts toward your reservation, and the rerun spends it again, so write to a table on the first try.

What is the maximum query response size in BigQuery?

10 GB compressed for results returned through the temporary result table. The actual uncompressed size can be much larger. There is no limit when you write results to a destination table.

Does CREATE TABLE AS SELECT avoid the error?

Yes. The result goes to a permanent table, which has no response size limit, and you can then read it in pages, export it or query it further. The new table is billed as storage.

SQL reference

More resources and limits

All BigQuery error messages · What 50M daily events say about BigQuery failures

Stop finding BigQuery failures in Slack threads

Masthead watches every BigQuery job, dbt model, Dataform action and Airflow task from audit logs, groups failures into incidents and shows which tables and dashboards are affected. No access to your data and no added BigQuery cost.