Data Warehouse
Unlock the complete study guide + 1,040 practice questions across 16 full exams.
Bundled into the existing Professional Data Engineer premium course — no separate purchase.
Included in this chapter:
- Why warehouse design flips the OLTP rules
- Shaping the data: denormalize with nested and repeated fields
- Physical layout: partition, cluster, materialize
- Mapping requirements to the model, and exam traps
How each design lever reduces cost or latency
| Design lever | What it does | Cuts bytes scanned? | Best for |
|---|---|---|---|
| Denormalize into wide table | Folds related data into one table so reads avoid joins | Indirectly (fewer joins, less shuffle) | The default analytic table |
| Nested / repeated fields | Models one-to-many in a single row via ARRAY of STRUCT | Yes (prunes to referenced sub-fields) | Parent with child records read together |
| Partitioning | Splits a table by date / timestamp / integer range | Yes (skips non-matching partitions) | Queries that filter on the partition column |
| Clustering | Sorts rows within a partition by up to 4 columns | Yes (reads fewer blocks) | Filter / group on high-cardinality columns |
| Materialized view | Precomputes and incrementally refreshes an aggregation | Yes (scans the small precomputed result) | The same heavy aggregation run repeatedly |
| Star schema (kept dimensions) | Joins facts to separate dimension tables | No (adds a join) | Large dimensions that change often |
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.