Fabric lakehouse or warehouse: which one do you need?

The difference between a lakehouse and a warehouse in Microsoft Fabric, what each engine can write, and how to choose by your team's skills and your data.

Short answer: both store tables as Delta files in OneLake, and both can be read with T-SQL. A lakehouse is written with Spark (notebooks, Python) and also holds plain files. A warehouse is written with T-SQL: inserts, updates, merges and multi-table transactions. Choose by who builds it: a Spark team builds lakehouses, a SQL team builds warehouses, and many solutions use both.

The two are less different than the names suggest, because they share the storage. What differs is which engine may write, and that follows the people more than the data.

What can each one do?

QuestionLakehouseWarehouse
Where is the data?Delta tables in OneLakeDelta tables in OneLake
Who writes tables?Spark: notebooks, Spark jobsT-SQL: INSERT, UPDATE, MERGE, CTAS
Plain files (CSV, JSON, images)?yes, in Filesno
T-SQL readsyes, through its SQL analytics endpointyes
T-SQL writesnoyes
Transactions over several tablesper tableyes
Direct Lake semantic modelyesyes
Lakehouse and warehouse side by side

How do you choose?

Who builds it?the people decide the engine
LakehousePython and Spark skills, files of any shape, data science next to BI
WarehouseSQL skills, stored procedures, existing T-SQL to move over
Start from the team, then the data

A common split follows the bronze, silver and gold layers: bronze and silver in a lakehouse, because raw files land there and Spark cleans them; gold in a warehouse when the business logic is written in SQL by the BI team. A warehouse can read the lakehouse's tables in the same query:

INSERT INTO gold.fact_sales (OrderID, CustomerKey, Amount, OrderDate)
SELECT o.order_id, c.CustomerKey, o.amount, o.order_date
FROM SilverLakehouse.dbo.silver_orders AS o
JOIN gold.dim_customer AS c ON c.CustomerID = o.customer_id AND c.IsCurrent = 1;

What goes wrong?

  • Writing through the SQL analytics endpoint. A lakehouse's endpoint is read-only for tables; an INSERT there fails. Write with Spark, or use a warehouse.
  • Two copies of the same table. Gold in a warehouse should read silver, not copy it into the warehouse first.
  • Choosing by data size alone. Both scale far; the team's language is the better guide.

Where can you check this?

Where do you start?

The open course A lakehouse in three layers builds the lakehouse side in your own workspace; the gold layer it ends with is the part you could also build in a warehouse.

Keep reading

More from the blog.

Every post

Next

Building this? Say hello.

A question about this post, a pattern you would build differently, or the next thing you want written out: Behnia reads every message.