# Learn Delta Lake Without Databricks: a Free Local Playground

> Practise Delta Lake on your laptop: write Delta tables, update, delete, MERGE and time travel with PySpark in Docker, and watch every commit in the _delta_log. Free.

Page: https://datautility.in/blog/learn-delta-lake-without-databricks-free-local
This is the Markdown copy of the page. The tool itself runs in the browser: your files are processed on your own device and are not uploaded.

Published 2026-11-28 · Analyze & protect · delta lake tutorial, delta lake without databricks, delta lake local, delta lake docker, pyspark delta lake, delta lake playground

Delta Lake is the table format behind most lakehouses, and nearly every data engineering interview asks about it. You do not need a Databricks account to learn it. The Spark Lab runs Apache Spark with Delta Lake on your own computer, gives you four guided Delta lessons, and shows the transaction log of every table as you change it.

Open the tool: [Spark Lab](https://datautility.in/sparklab)

## What you get

- Apache Spark 3.5 with Delta Lake 3.2, inside one Docker container on your laptop.

- An editor on the web page, with the imports shown at the top of every lesson.

- A **Delta log** panel that opens by itself after a Delta write: one row per commit, with the operation (WRITE, UPDATE, DELETE, MERGE, RESTORE), rows written, updated and deleted, files added and removed, and the raw JSON.

- The real Spark UI on localhost:4040, to see the jobs each Delta operation runs.

## Start in three steps

1. Install Docker Desktop.

2. Open the [Spark Lab](https://datautility.in/pyspark-spark-ui-lab), copy the Set up and Start commands into a terminal.

3. Paste the token, click Connect, and open the editor. The Delta lessons are under **Delta Lake** in the explorer.

## The four Delta lessons

- **D1. Write a Delta table**: a Delta table is a folder of Parquet files plus a `_delta_log` folder. Commit 0 appears in the log.

- **D2. Update, delete, append**: each change is a new version (1, 2, 3). history() prints the same story the log shows.

- **D3. Time travel and restore**: read version 0 with versionAsOf, then restoreToVersion brings it back as a new commit.

- **D4. MERGE**: an upsert in one commit. The log shows 1,000 rows updated and 500 inserted.

## The code you will write

```python
from pyspark.sql import SparkSession, functions as F
from delta.tables import DeltaTable

spark = SparkSession.builder.getOrCreate()
df.write.format("delta").mode("overwrite").save("/data/outputs/orders_delta")
t = DeltaTable.forPath(spark, "/data/outputs/orders_delta")
t.update("quantity = 1", {"quantity": "2"})
t.history().show()
```

The same code runs on Databricks, EMR or any Spark with Delta, so what you learn carries over.

## Why practise locally

A local lab is free, fast to reset (delete the folder and run again), and private: your files stay in a Docker volume on your machine. It is the quickest way to see what Delta does on disk before you use it at work.

## How to use the Spark Lab: step by step

1. Install Docker Desktop
2. Run the Set up and Start commands from the Spark Lab page
3. Connect and open the editor
4. Run lessons D1 to D4 and watch the Delta log panel

## When to use the Spark Lab

- Preparing for a data engineering interview
- Learning Delta Lake before a Databricks project
- Teaching lakehouse basics without cloud accounts
- Testing MERGE logic on sample data

## Frequently asked questions

### Do I need Databricks to learn Delta Lake?
No. Delta Lake is open source. The Spark Lab runs Spark with Delta Lake on your own computer in Docker, free, with no account.

### Which Delta Lake version does the lab use?
Delta Lake 3.2 on Apache Spark 3.5, with the jars baked into the lab image so it works offline.

### Where are my Delta tables stored?
In /data/outputs inside the lab, which is a Docker volume (datautility-spark-data) on your computer. Nothing is uploaded.

### Can I see the _delta_log files?
Yes. The Delta log panel under the editor lists every commit with its operation and row counts, and shows the raw JSON. You can also run docker exec spark-lab ls /data/outputs/<table>/_delta_log.

Tip: Click "Read v0" on any commit in the Delta log panel. It inserts the time-travel code for that version into the editor.

## Also try

- [The Delta Lake transaction log, explained](https://datautility.in/blog/delta-lake-transaction-log-explained)
- [MERGE, time travel and restore in PySpark](https://datautility.in/blog/delta-lake-merge-time-travel-restore-pyspark)
- [Learn PySpark and the Spark UI free](https://datautility.in/blog/learn-pyspark-and-the-spark-ui-free)

## More guides

- [Data Profiler: Check Data Quality Before You Use It](https://datautility.in/blog/data-profiler-check-data-quality)
- [Compare Two CSV or Excel Files: Find Added, Removed and Changed Rows](https://datautility.in/blog/compare-two-csv-files-find-differences)
- [Data Masking: Hide Emails, Phones and Names Before Sharing](https://datautility.in/blog/data-masking-hide-emails-phones-pii)
