Glossary · Data architecture
What is data warehouse?
A data warehouse is a central analytical database that stores cleaned, integrated and historical data from many sources, organized for SQL analysis and reporting rather than for running transactions. BigQuery is a serverless cloud data warehouse with separate storage and compute.
What a data warehouse is for
Applications store their data in operational databases built for transactions. Analysis needs something else: years of history, data from many systems joined together, and queries that scan large parts of a table. A data warehouse holds that copy. The classic definition calls it subject-oriented, integrated, time-variant and non-volatile: organized around business subjects, consistent across sources, keeping history, and appended to rather than updated in place.
Most warehouses are modeled in layers: raw data as loaded, cleaned and conformed tables, and business-facing marts. Dimensional modeling (facts such as orders or events, dimensions such as customers or products, joined in a star schema) remains the most common design for the marts.
How BigQuery works as a warehouse
BigQuery separates storage from compute. Tables are stored in a columnar format, and queries run on a shared, serverless engine, so there are no clusters to size. That has direct cost consequences:
- You pay for what queries read or the capacity they use. On on-demand pricing a query is billed by bytes scanned in the columns it references; on editions, by slot capacity. See BigQuery pricing.
- Columns matter.
SELECT *reads every column; selecting three columns reads three.LIMITdoes not reduce bytes scanned. - Layout matters. Partitioned and clustered tables let filters skip data.
- Storage is cheap and cold data gets cheaper. Tables or partitions not modified for 90 days move to long-term storage pricing automatically.
A typical star-schema query reads one fact table and joins dimensions, filtering on the partition column so only the needed days are scanned:
SELECT
d.country,
p.category,
SUM(f.amount) AS revenue
FROM `my-project.sales_mart.fct_orders` AS f
JOIN `my-project.sales_mart.dim_customer` AS d USING (customer_id)
JOIN `my-project.sales_mart.dim_product` AS p USING (product_id)
WHERE f.order_date BETWEEN '2026-10-01' AND '2026-10-31'
GROUP BY d.country, p.category
ORDER BY revenue DESC;
Warehouse, lake or lakehouse
A warehouse stores managed tables with enforced schemas. A data lake keeps raw files in object storage and applies schema on read. A data lakehouse keeps data in open table formats such as Apache Iceberg in object storage while adding transactions, schema evolution and governance. On Google Cloud the line is thin: BigQuery queries its own storage, external tables over Cloud Storage, and Iceberg tables from the same SQL.
Common pitfalls
- Treating it like an operational database. Single-row updates and frequent small DML statements are slow and hit quotas; batch changes instead.
- Modeling nothing. Loading raw data and letting every dashboard query it directly multiplies scan costs and definitions. A modeled layer, or a semantic layer, keeps one definition per metric.
- Keeping everything forever. Set partition expiration on raw and staging data you can reload, and review unused tables.
FAQ
What is the difference between a data warehouse and a database?
Operational databases (OLTP) such as PostgreSQL or MySQL handle many small reads and writes for an application. A data warehouse (OLAP) stores history from many sources and is built for large scans, joins and aggregations across millions or billions of rows.
What is the difference between a data warehouse and a data lake?
A data lake stores raw files of any format cheaply in object storage, with schema applied when the data is read. A warehouse stores structured, modeled tables with a schema enforced on write. A lakehouse combines open files in object storage with warehouse features such as transactions and governance.
Is BigQuery a data warehouse?
Yes. Google describes BigQuery as a fully managed, serverless data warehouse and data platform. It also queries open table formats in Cloud Storage, so it serves lakehouse designs too.
