Three parts of a warehouse
A warehouse has storage for files, compute to read them, and metadata to list them.
A cloud warehouse is a database service built for large reports. It looks like one thing. It has three parts:
| Part | What it does | You pay for |
|---|---|---|
| Storage | Keeps the data files, usually in cloud object storage | The bytes you keep, for each month |
| Compute | Reads the files and runs your SQL | The time it runs, or the data it reads |
| Metadata | Lists which files make up each table, the column types, and the table history | Often little. Check your vendor |
Metadata means data about data. Snowflake calls its metadata part Cloud Services.
Here is one query on the shop’s orders table. Each part has a job in it:
| order_id | customer_id | status | amount | order_date |
|---|---|---|---|---|
| 101 | 1 | paid | 40.00 | 2026-01-03 |
| 102 | 1 | paid | 25.00 | 2026-01-10 |
| 103 | 2 | refunded | 60.00 | 2026-01-11 |
| 104 | 3 | paid | 15.50 | 2026-01-15 |
| 105 | 3 | pending | NULL | 2026-01-20 |
| 106 | 4 | paid | 80.00 | 2026-01-21 |
SELECT SUM(amount) AS paid_total
FROM orders
WHERE status = 'paid';| paid_total |
|---|
| 160.50 |
The paid orders are 101, 102, 104 and 106. The sum is 40.00 + 25.00 + 15.50 + 80.00 = 160.50.
- Metadata says which files make up orders today.
- Compute reads those files from storage and adds up the amounts.
- The answer returns to you. Storage keeps the files unchanged.
Metadata explains two odd things you will meet later. A load can add no rows. A copy of a table can cost nothing at first.
Storage Layers & File Formats, in the Data Pipeline KB, taught columnar files and pruning. This chapter adds how data gets in and what you rent. Warehouse Performance & Cost covers how to read less data.
