One Big Table (OBT) Modeling & Modern Columnar Trade-offs
Flatten into wide OBTs when columnar engines make denormalized scans cheap enough for BI.
In plain words
BI query family and explicit OBT grain. Next, tested fact and conformed dimensions. Finally, compact partitions, metrics, and rebuild contract.
Think of it like…
An OBT is a catered plate with every item already arranged: fast to consume, but recreating the plate is unavoidable when the menu or any ingredient definition changes.
Where you’ve seen it
A weekly acquisition OBT stores campaign, channel, customer region, spend, and conversion at one campaign-day grain, with source lineage and model version embedded for each produced partition.
Words you’ll hear
- OBT
- One wide Big Table-like relation containing measures and denormalized dimensions for a narrow consumer workload.
- Denormalized
- Repeating attributes from joins into each row so a query can read fewer relational edges at the cost of stored bytes.
- Columnar
- Storage that reads and compresses selected columns, making wider physical rows practical when many columns are pruned.
- Operational boundary
- Embedding slowly changing labels, nested arrays, and dozens of sparsely used columns increases scan and storage cost; patching a dimension requires rebuilding large histories. Build an OBT from tested star models, choose one consumer grain, include only required column groups, use arrays/structs or clustering carefully, and partition/rebuild through an explicit incremental contract.
Visual diagram
Theory & deep dive
OBT: the working mechanism
An OBT denormalizes facts and dimensions into a wide, query-ready table so columnar scans can avoid joins, paying for repeated attribute bytes and a less reusable semantic structure.
BI query family and explicit OBT grain. Tested fact and conformed dimensions, then drop unused high-cardinality or sparse columns; this exposes the state governed by Columnar.
A weekly acquisition OBT stores campaign, channel, customer region, spend, and conversion at one campaign-day grain, with source lineage and model version embedded for each produced partition.
One Big Table Modeling & Modern Columnar Trade-offs: failure mode and production response
Embedding slowly changing labels, nested arrays, and dozens of sparsely used columns increases scan and storage cost; patching a dimension requires rebuilding large histories.
Build an OBT from tested star models, choose one consumer grain, include only required column groups, use arrays/structs or clustering carefully, and partition/rebuild through an explicit incremental contract. Track OBT width as "track total bytes and actually referenced columns", and make Scan ratio visible to the dataset owner.
How it works, step by step
Step 1 of 41. Choose consumer
BI query family and explicit OBT grain. An OBT denormalizes facts and dimensions into a wide, query-ready table so columnar scans can avoid joins, paying for repeated attribute bytes and a less reusable semantic structure.
- OBT width
- track total bytes and actually referenced columns
- Denormalized
- Repeating attributes from joins into each row so a query can read fewer relational edges at the cost of stored bytes.
When to use it & trade-offs
What it is
An OBT denormalizes facts and dimensions into a wide, query-ready table so columnar scans can avoid joins, paying for repeated attribute bytes and a less reusable semantic structure. A weekly acquisition OBT stores campaign, channel, customer region, spend, and conversion at one campaign-day grain, with source lineage and model version embedded for each produced partition.
Why it matters: Embedding slowly changing labels, nested arrays, and dozens of sparsely used columns increases scan and storage cost; patching a dimension requires rebuilding large histories. Build an OBT from tested star models, choose one consumer grain, include only required column groups, use arrays/structs or clustering carefully, and partition/rebuild through an explicit incremental contract.
When to reach for it
- Flatten into wide OBTs when columnar engines make denormalized scans cheap enough for BI.
- Choose OBT because it provides this capability: One wide Big Table-like relation containing measures and denormalized dimensions for a narrow consumer workload.
- Keep evidence for OBT width at "track total bytes and actually referenced columns" so the last production stage-Publish - compact partitions, metrics, and rebuild contract-remains testable.
When to avoid or be careful
- Embedding slowly changing labels, nested arrays, and dozens of sparsely used columns increases scan and storage cost; patching a dimension requires rebuilding large histories.
- Do not conflate Denormalized with OBT. The second concept contributes different behavior: Repeating attributes from joins into each row so a query can read fewer relational edges at the cost of stored bytes.
- Release only after this guardrail is in place: Build an OBT from tested star models, choose one consumer grain, include only required column groups, use arrays/structs or clustering carefully, and partition/rebuild through an explicit incremental contract.
OBT / Denormalized / Columnar - roles, limits, and operating cost
Strengths: One wide Big Table-like relation containing measures and denormalized dimensions for a narrow consumer workload. An OBT denormalizes facts and dimensions into a wide, query-ready table so columnar scans can avoid joins, paying for repeated attribute bytes and a less reusable semantic structure.
Watch out: Embedding slowly changing labels, nested arrays, and dozens of sparsely used columns increases scan and storage cost; patching a dimension requires rebuilding large histories.
Strengths: Repeating attributes from joins into each row so a query can read fewer relational edges at the cost of stored bytes. In this workflow it supports: Prune - drop unused high-cardinality or sparse columns.
Watch out: The operating cost is real: bytes read versus logical filtered result.
Strengths: Storage that reads and compresses selected columns, making wider physical rows practical when many columns are pruned. Its output can be checked with Rebuild cost.
Watch out: Operating guardrail: Build an OBT from tested star models, choose one consumer grain, include only required column groups, use arrays/structs or clustering carefully, and partition/rebuild through an explicit incremental contract.
Interview signals & numbers to know
When this topic comes up
- “Where is the failure boundary for OBT, and how would OBT width reveal it?”
- “Why is Denormalized distinct from this behavior: storage that reads and compresses selected columns, making wider physical rows practical when many columns are pruned?”
- Production clue: Embedding slowly changing labels, nested arrays, and dozens of sparsely used columns increases scan and storage cost; patching a dimension requires rebuilding large histories.
- Design probe: Build an OBT from tested star models, choose one consumer grain, include only required column groups, use arrays/structs or clustering carefully, and partition/rebuild through an explicit incremental contract.
Benchmarks & rules of thumb
- OBT width
- track total bytes and actually referenced columns
- Scan ratio
- bytes read versus logical filtered result
- Rebuild cost
- full partitions or months affected by a dimension change
Common mistakes & follow-ups
Common interview mistakes
- Embedding slowly changing labels, nested arrays, and dozens of sparsely used columns increases scan and storage cost; patching a dimension requires rebuilding large histories.
- Reporting success from a job exit code without checking OBT width and Scan ratio.
- Treating this example as complete without replay, rollback, or access boundaries: A weekly acquisition OBT stores campaign, channel, customer region, spend, and conversion at one campaign-day grain, with source lineage and model version embedded for each produced partition.
Likely interviewer follow-ups
- How would you prove this contract instead of only checking that the command ran: One wide Big Table-like relation containing measures and denormalized dimensions for a narrow consumer workload.
- What does the recovery plan do when this occurs? Embedding slowly changing labels, nested arrays, and dozens of sparsely used columns increases scan and storage cost; patching a dimension requires rebuilding large histories.
- When is OBT insufficient for Scan ratio, and what does adding Denormalized cost in OBT width?
Knowledge check
Put it into practice
Practice related interview Q&A
Apply One Big Table (OBT) Modeling & Modern Columnar Trade-offs with data engineer interview Q&A and hands-on practice.