Request a demo

Glossary · Data architecture

What is medallion architecture?

Medallion architecture organizes a lakehouse or warehouse into three layers of increasing quality: bronze for raw data as ingested, silver for cleaned and conformed data, and gold for business-ready tables. Each layer is built from the one before it.

Also called: bronze silver gold, multi-hop architecture, raw staging marts, data layers

The three layers

  • Bronze (raw): data as it arrived from the source, append-only, with ingestion metadata such as load time and source file. Nothing is fixed here, so you can always rebuild from it.
  • Silver (cleaned, conformed): typed columns, deduplicated rows, standard keys and time zones, invalid records filtered or flagged, sensitive columns masked or dropped. Silver tables join across sources.
  • Gold (business-ready): dimensional models, aggregates and data products that dashboards, analysts and ML features read. Metric definitions live here or in a semantic layer.

Each step is a transformation in the ELT sense: load first, refine in SQL.

Medallion on BigQuery

A common layout is three datasets, for example raw, staging and marts, with IAM granting analysts access to gold only. Bronze is filled by load jobs, Datastream, Pub/Sub subscriptions or BigLake tables over files in Cloud Storage. Silver and gold are dbt or Dataform models, usually incremental, partitioned on event date and clustered on join keys.

The most common silver step is deduplication: keep the latest version of each record.

WITH bronze_orders AS (
  SELECT * FROM UNNEST([
    STRUCT('o-1001' AS order_id, 'paid' AS status, 120.00 AS amount, TIMESTAMP '2026-11-20 09:00:00 UTC' AS _ingested_at),
    STRUCT('o-1001', 'refunded', 120.00, TIMESTAMP '2026-11-21 14:30:00 UTC'),
    STRUCT('o-1002', 'paid', 45.50, TIMESTAMP '2026-11-20 10:15:00 UTC'),
    STRUCT('o-1002', 'paid', 45.50, TIMESTAMP '2026-11-20 10:15:00 UTC')
  ])
)
SELECT order_id, status, amount, _ingested_at
FROM bronze_orders
WHERE TRUE
QUALIFY ROW_NUMBER() OVER (PARTITION BY order_id ORDER BY _ingested_at DESC) = 1
ORDER BY order_id;

The result has two rows: o-1001 with status refunded, its latest version, and a single copy of the duplicated o-1002. In a real model the CTE is the bronze table and the query writes a silver table. See QUALIFY and ROW_NUMBER.

Costs and pitfalls

  • Three copies of the data. Each layer is stored separately. Set partition expiration on bronze data you can reload, and avoid copying wide raw tables into silver column for column.
  • Gold tables nobody reads. Layers make it easy to keep adding marts. A gold table that is rebuilt daily and never queried is a dead-end table; check usage before adding more.
  • Full rebuilds of silver. Reprocessing all of history every run is the main cost driver in many medallion setups. Use incremental models that touch only new or changed partitions.
  • Leaking bronze. If dashboards read bronze tables, you can no longer change them freely. Restrict access to raw datasets.
  • Unclear rules. Write down what each layer may contain, for example whether silver may aggregate, so tables don't drift between layers.

FAQ

Who invented the medallion architecture?

The bronze, silver and gold naming was popularized by Databricks for lakehouses. The layering itself is older: warehouses have long used raw, staging and mart layers for the same purpose.

Do I need exactly three layers?

No. The names are a convention. Some teams add a layer for intermediate models or split gold into marts per domain; small projects sometimes merge bronze and silver. What matters is that each layer has clear rules about what it may contain.

How do I map medallion layers to BigQuery?

Usually one dataset per layer (raw, staging, marts) or one project per layer when access and billing need to be separate. dbt and Dataform can direct each folder of models into its own dataset.

Read next

Browse the full glossary

Observability for every BigQuery table, in about 15 minutes

Masthead detects freshness, volume and schema anomalies, monitors pipeline errors and maps column-level lineage across all your projects, from logs and metadata only.