Skip to content
TeachTrails
Data EngineeringDatabricks

What Is Databricks? The Lakehouse, Explained Simply

What Databricks is and why companies use it: data engineering, data lakes, warehouses and the lakehouse, explained in plain English with one shop's data.

Sukanya Saha, Technology Consultant

9 min read

Beginner friendly

Start with a story: ShopKart

Imagine a small online shop called ShopKart. Every day, data appears in many places: orders in the app's database, payments from the payment company, clicks on the website, and customer details in a CSV file.

One morning, the boss asks a simple question: “How much did we sell in each city yesterday?” Nobody can answer quickly. The data is scattered, messy (some orders have no customer, some appear twice) and too big to open in Excel.

A data engineer fixes this. They build pipelines: programs that collect the data, clean it, and put it in tables that anyone can query. We'll follow ShopKart's data through this whole course, and by the end you'll have built that pipeline yourself.

📊 What a data pipeline does

Sources

App database, payments, website clicks, CSV files

Ingest

Copy raw data in, as it arrives

Transform

Clean, remove duplicates, join, add up

Serve

Dashboards, reports, AI models

ETL vs ELT

ETL means Extract, Transform, Load: clean the data before saving it. ELT means Extract, Load, Transform: save the raw data first, then clean it inside the platform. Cloud storage is cheap and compute is powerful, so modern platforms like Databricks mostly do ELT: keep the raw copy, and you can always re-clean it if you find a bug.

Warehouse, lake, lakehouse

Companies tried two ways to store analytics data before the lakehouse:

  • Data warehouse: a database built for analysis. Clean tables, fast SQL, reliable. But expensive, and it handles only structured data (rows and columns), not images, logs or JSON.
  • Data lake: dump every file into cheap cloud storage (Amazon S3, Azure Data Lake Storage, Google Cloud Storage). Cheap and stores anything, but with no rules it turns into a data swamp: no updates, no transactions, half-written files, nobody knows what's correct.
  • Lakehouse: keep the cheap files of a lake, but add a layer that gives them warehouse powers: real tables, safe updates (ACID), history and security. That layer is Delta Lake plus Unity Catalog. Databricks popularised this idea.
Data warehouseData lakeLakehouse
Storage costHighLowLow
Data typesTables onlyAnything (files)Anything, with tables on top
Updates & transactionsYesNoYes (Delta Lake)
SQL speedFastSlow, unreliableFast
Machine learningAwkwardGoodGood
ExamplesSnowflake, BigQuery, RedshiftRaw files in S3 / ADLSDatabricks

So what exactly is Databricks?

Databricks is a company founded in 2013 by the people who created Apache Spark at UC Berkeley. Its platform runs inside your cloud (AWS, Azure or Google Cloud). On Azure it's sold as Azure Databricks, which is why you see that name in so many job posts. Think of it as layers:

📊 The Databricks lakehouse, layer by layer

What people do

Data engineering

Pipelines, ETL, streaming

SQL & dashboards

Analysts, reports

Machine learning & AI

Models, MLflow

Compute: the engines that do the work

Apache Spark

Many machines work together

Photon

Faster engine for SQL

Serverless

Compute that starts in seconds

Unity Catalog

Who can see which table, plus lineage and auditing

Delta Lake

Turns files into reliable tables: ACID, history, MERGE

Your cloud storage

Amazon S3 · Azure Data Lake Storage · Google Cloud Storage (Parquet files)

The key idea: your data stays in your own cloud storage, in open formats (Parquet files with a Delta log). Databricks brings the computers and the rules. If you ever stopped using Databricks, your files would still be there.

OLTP vs OLAP: two kinds of databases

Interviewers love this one, and it explains why ShopKart can't just query its app database:

OLTP (the app's database)OLAP (analytics, Databricks)
JobRun the business: place an order, log inUnderstand the business: revenue per city
Query shapeMany tiny reads/writes of single rowsFew huge queries scanning millions of rows
ExamplesPostgreSQL, MySQLDatabricks, Snowflake, BigQuery
StorageRow by rowColumn by column (Parquet)

Running heavy reports on the app's database would slow down checkout for real customers. So we copy the data out into a lakehouse and analyse it there.

Batch and streaming

  • Batch: process data in chunks on a schedule, like “every night at 2 AM, load yesterday's orders”.
  • Streaming: process data continuously as it arrives, within seconds or minutes.

Databricks does both with the same Spark code. You'll build batch first (lesson 6), then streaming (lesson 7).

Your learning path

LessonYou'll learnShopKart builds
2. ArchitectureWorkspace, clusters, serverless, DBUsA place to run code
3. Spark basicsDriver, executors, partitions, shuffleHow the engine thinks
4. PySparkRead, filter, join, group, window functionsFirst revenue report
5. Delta LakeACID, time travel, MERGE, OPTIMIZEReliable tables
6. MedallionBronze, silver, gold, SCD Type 2The full batch pipeline
7. StreamingAuto Loader, checkpoints, foreachBatchLoad only new files
8. Unity CatalogPermissions, volumes, lineageSecure tables
9. Declarative pipelinesStreaming tables, expectationsPipeline in a few lines
10. JobsSchedules, retries, bundles (CI/CD)Runs every morning
11. SQL & dashboardsSQL warehouses, AI/BI dashboards, Genie, alertsAnswers for the business
12. PerformanceBroadcast joins, skew, AQE, small filesFast and cheap
13. Interview60 questions + scenariosYou, interview-ready

🎯 Interview questions on this topic

Try to answer out loud first, then tap to check.

Q1What is a lakehouse, and why did it appear?Fresher
A lakehouse stores data as open files in cheap cloud storage, like a data lake, but adds a table layer (Delta Lake) that gives warehouse features: ACID transactions, updates, schema rules and fast SQL. It appeared because companies were paying for two systems (a lake for raw data and ML, a warehouse for BI) and copying data between them.
Q2What is the difference between ETL and ELT?Fresher
ETL transforms data before loading it into the target. ELT loads raw data first and transforms it inside the platform. Lakehouses favour ELT because storage is cheap and keeping raw data lets you reprocess it when logic changes.
Q3OLTP vs OLAP?Fresher
OLTP systems handle many small transactions (insert one order, update one row) and store data row by row. OLAP systems run large analytical queries over many rows and store data column by column. You keep analytics off the OLTP database so reports don't slow down the app.
Q4Why do you use Databricks instead of only a data warehouse?1–3 yrs
One copy of data in open formats in our own storage, used for batch, streaming, SQL and ML. Spark handles huge and semi-structured data (JSON, logs), and we avoid copying data into a separate warehouse. Unity Catalog gives one place for permissions and lineage.
Q5Where is the data physically stored when you create a table in Databricks?1–3 yrs
In cloud object storage (S3, ADLS Gen2 or GCS) as Parquet data files plus a _delta_log folder of JSON commit files. For managed tables Unity Catalog chooses the location; for external tables you choose it.

Key takeaways

  • Data engineering turns scattered, messy data into clean, trusted tables.
  • The lakehouse combines cheap data-lake storage with reliable warehouse-style tables.
  • Databricks runs in your cloud: Spark computes, Delta Lake stores, Unity Catalog governs.
  • ShopKart's orders will travel through every lesson until you can answer 'sales per city' instantly.

Next, you'll see how Databricks is built inside: workspaces, clusters and DBUs.

Frequently asked questions

What is Databricks in simple words?

Databricks is a cloud platform where companies store, clean and analyse huge amounts of data in one place. It runs on AWS, Azure or Google Cloud, uses Apache Spark to process data on many machines at once, and stores data as Delta Lake tables.

Is Databricks a database?

Not exactly. Your data lives as files in your own cloud storage (like Amazon S3 or Azure Data Lake Storage). Databricks adds tables, SQL, compute and security on top, so it feels like a database without locking data inside one.

Do I need to know Python to learn Databricks?

Basic Python or SQL is enough to start. You can do most data engineering work in SQL, and PySpark (Spark's Python API) reads almost like plain English. This course teaches both from scratch.

Is Databricks free to learn?

Yes. Databricks Free Edition gives you a free workspace with serverless compute for learning. Everything in this course works there, except a few admin features we point out.

What is the difference between Databricks and Snowflake?

Both are cloud data platforms. Snowflake started as a SQL data warehouse; Databricks started from Apache Spark and data lakes, so it's strong at big data processing, streaming and machine learning. Today they overlap a lot.

🧠 Quick check: what is Databricks?

  1. 1. What does a data engineer mainly do?

  2. 2. What is a lakehouse?

  3. 3. Where does Databricks store your table data?

  4. 4. Which is an OLAP question?

Databricks for Beginners

Part 1 of 13: What Is Databricks