Interview's MateData Engineer
Interview's Mate

Data Engineer

SQL · Spark · Lakehouse · Streaming

Visualizer

DSA Visualizer
All 32 lessons
Custom Playground
Try your own examples

Learning

System Design
31 architecture topics
SQL Learning
160 foundations → production topics
AI Engineering
160 LLM → backend topics
Data Science
160 Python → MLOps topics
Data Engineer
160 SQL → streaming topics
Docker
160 Docker learning topics
Kubernetes
160 K8s fundamentals → cloud
Java LearnSoon
Coming soon
Python Learn
Interview Q&A & internals
JavaScript Learn
Closures, async & DOM Q&A
Tech Learn
Search, practise & track Q&A
AI DSA Practice
Solve coding problems
Theme
Home
Data Engineer topics
Lesson 51/ 160
03. Data Warehousing & Data Modeling

One Big Table (OBT) Modeling & Modern Columnar Trade-offs

Flatten into wide OBTs when columnar engines make denormalized scans cheap enough for BI.

IntermediateOBT · Denormalized · Columnar3 quiz questions
Practice Generative AI Q&A
In plain wordsDiagramTheoryStep by stepWhen to use itInterview cluesMistakes to avoidQuiz (3)Practice

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

Loading interactive 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.

One Big Table Modeling & Modern Columnar Trade-offs in one concrete design

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.

Key takeaway: 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

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.

Key takeaway: 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.

How it works, step by step

Step 1 of 4
OBT

1. 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.

BI query family and explicit OBT grain
Key numbers at this step
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

OBT
Best for: One wide Big Table-like relation containing measures and denormalized dimensions for a narrow consumer workload.

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.

Denormalized
Best for: Repeating attributes from joins into each row so a query can read fewer relational edges at the cost of stored bytes.

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.

Columnar
Best for: Storage that reads and compresses selected columns, making wider physical rows practical when many columns are pruned.

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?
Interview tip: Lead with the data path and failure boundary: 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. Then make the answer operational: 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.

Knowledge check

Loading quiz

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.

Open Data Engineer Q&A →Machine Learning Q&A
Previous topic
Data Vault 2.0 Modeling (Hubs, Links, Satellites)
Next topic
Cloud Data Warehouses Overview (Snowflake, BigQuery, Redshift, Databricks SQL)