Google BigQuery
Google BigQuery is a serverless, fully managed cloud data warehouse that runs SQL queries at scale without provisioning or managing infrastructure.
Overview
Google BigQuery is a serverless cloud data warehouse on Google Cloud. It is powered internally by Dremel, Google's distributed query technology, and lets users run SQL over large datasets without provisioning clusters, tuning nodes, or managing storage. You load or reference data, write SQL, and BigQuery allocates the compute needed to run each query.
Serverless model
Because BigQuery is serverless, there are no instances to size or keep running. Compute is expressed in "slots" (units of processing capacity) that the service assigns automatically. This removes cluster management, but it also means query cost and performance are driven by how much data each query scans and how much compute it needs.
Pricing models
BigQuery offers two main approaches to compute pricing:
- On-demand — you pay per volume of data scanned by each query (billed per byte, commonly discussed per TB).
- Capacity-based — you reserve or autoscale slots for more predictable spend at scale.
Storage is billed separately from compute.
BigQuery and DuckDB
BigQuery targets fully managed, cloud-scale warehousing where Google manages all infrastructure. DuckDB is an open-source, in-process OLAP engine for single-node and local analytics, with MotherDuck as its serverless cloud counterpart. Teams often use DuckDB for local development, testing, or cost-efficient processing of files, and BigQuery for centralized, governed cloud warehousing. Because both speak SQL and read columnar formats, moving between them is common. DuckDB can query exported data directly:
Copy code
-- DuckDB reading Parquet exported from BigQuery
SELECT event_type, COUNT(*) AS n
FROM read_parquet('gs://exports/events/*.parquet')
GROUP BY ALL
ORDER BY n DESC;
In BigQuery's standard SQL, an equivalent query reads a table directly:
Copy code
SELECT event_type, COUNT(*) AS n
FROM `project.dataset.events`
GROUP BY event_type
ORDER BY n DESC;
Related terms
Serverless is a cloud computing execution model where the cloud provider dynamically manages the allocation and provisioning of servers.
Snowflake (data cloud) →Snowflake is a cloud data platform that separates storage, compute, and services into independent layers, letting you scale query power without moving the underlying data.
Data warehouse →A data warehouse is a centralized system designed to store structured, cleaned data and support fast, complex analytical queries (OLAP), as opposed to the high-volume transactional workloads of an operational database.
Amazon Redshift →Amazon Redshift is AWS's cloud data warehouse, using massively parallel processing (MPP) to run analytical SQL over large datasets, available as provisioned clusters or serverless.
MotherDuck →MotherDuck is a cloud-based analytics platform built on top of DuckDB that enables teams to analyze and share data without managing complex infrastructure.
analytical database →An analytical database, also known as an Online Analytical Processing (OLAP) database, is designed to efficiently handle complex queries and data analysis…
FAQS
Yes. BigQuery is fully serverless. There are no clusters or instances to provision or manage; Google automatically allocates compute (measured in slots) to run each query, and you pay based on data scanned or reserved capacity.
BigQuery offers on-demand pricing, where you pay for the volume of data each query scans, and capacity-based pricing, where you reserve or autoscale slots for more predictable cost at scale. Storage is billed separately.
