Desktop viewport required

BigQuery Lab is not supported on small screens. Resize to at least 900px wide to use the workbench.

BigQuery Labdraft.sql

GoogleSQL workbench

Draft1 lines0 charsDraft current

Analysis, runs, and formatting always reflect the current draft and its context.

Loading SQL editor…
Starter queries4 examples

Loading an example only replaces the editor draft; nothing is analyzed or run automatically.

CTE pipeline and filter movement

AnalyzeTransform

A self-contained CTE pipeline for Analyze and Rewrite scan path.

GoogleSQL pipe syntax

FormatAnalyzeRun

A runnable pipe query for formatting, analysis, and plan inspection.

SQL UDF field usage

AnalyzeTransform

A temporary SQL UDF that reads selected STRUCT fields before pruning.

Partition-filter template

AnalyzeCost

Replace the table name, then inspect scan columns and dry-run bytes.

Context required·Draft current⌘/Ctrl Format

BigQuery context

Analyze, transform, run, and history use the current draft and explicit billing context.

Project unsetUSCache offAuth pending

Billing project is required before analyzing, transforming, or executing a query.

Changes apply to the next BigQuery action.