Monday , November 30 2026
Data lake vs warehouse, medallion architecture, Parquet partitioning with pandas, Delta Lake, Iceberg and avoiding data swamps.

Data Lakes and Lakehouses: Parquet, Partitioning and Delta Lake

Updated: 28 November 2026Level: IntermediateReading time: about 9 minutespandas · pyarrow

A data lake stores huge amounts of raw data of any type – CSV, JSON, logs, images, audio – cheaply in object storage such as Amazon S3, Azure Data Lake or Google Cloud Storage. A lakehouse adds warehouse-like tables and transactions on top.

What You Will Learn

  • Data lake vs data warehouse
  • The bronze–silver–gold (medallion) layers
  • Why Parquet and partitioning matter
  • Lakehouse table formats: Delta Lake, Iceberg, Hudi
  • Avoiding a “data swamp”

Prerequisites

Data Warehousing.

Lake vs Warehouse

Data lake Data warehouse
Data Raw, any format Cleaned, structured tables
Schema Applied when reading (schema-on-read) Defined before loading (schema-on-write)
Cost Very low per TB Higher
Users Data engineers, data scientists, ML Analysts, BI

Medallion Architecture

Layer Contents
Bronze Raw data exactly as received
Silver Cleaned, de-duplicated, typed data
Gold Business-level tables and aggregates for dashboards and ML

Parquet and Partitioning

Example
# pip install pandas pyarrow
import pandas as pd

df = pd.DataFrame({"order_id": [1, 2, 3, 4],
                   "city": ["Ludhiana", "Jalandhar", "Ludhiana", "Amritsar"],
                   "month": ["2026-01", "2026-01", "2026-02", "2026-02"],
                   "amount": [1200, 15000, 22000, 2500]})

df.to_parquet("lake/silver/orders", partition_cols=["month"])   # one folder per month

jan = pd.read_parquet("lake/silver/orders", filters=[("month", "=", "2026-01")])
print(jan[["order_id", "city", "amount"]])
Output
   order_id       city  amount
0         1   Ludhiana    1200
1         2  Jalandhar   15000

Explanation: Data is written as lake/silver/orders/month=2026-01/…parquet. A query for January reads only that folder (partition pruning), and Parquet stores columns separately and compressed, so tools read only the columns they need. The same code works with s3:// paths.

Lakehouse Table Formats

Format Adds
Delta Lake ACID transactions, time travel, MERGE/upserts (Databricks)
Apache Iceberg Open table format supported by Snowflake, BigQuery, Spark, Trino
Apache Hudi Upserts and incremental processing

Avoid a Data Swamp

  • Keep a data catalog: what each dataset is, who owns it.
  • Use consistent folder names and partitions.
  • Apply access control and mask personal data.
  • Run quality checks between bronze, silver and gold.

Series

Data Engineering series: ETL Pipelines · Apache Spark · Apache Kafka · Apache Airflow · Data Warehousing · Data Lakes · Big Data Analytics

Interview Questions

Q: What is schema-on-read?
The structure is applied when data is read, not when it is stored.

Q: Why Parquet?
Columnar, compressed and splittable – much faster and smaller than CSV for analytics.

Q: What is a lakehouse?
A data lake with table formats that add transactions and warehouse-style management.

Practice Exercises

  1. Partition a CSV of orders by city into Parquet and read one city back.
  2. Design bronze, silver and gold tables for website click logs.

Summary

Data lakes store raw data cheaply; medallion layers refine it; Parquet and partitioning make it fast; Delta, Iceberg and Hudi turn a lake into a reliable lakehouse.

Next: Big Data Analytics · Apache Spark

About Machine Learning

Check Also

Apache Kafka Tutorial with Python: Real-Time Data Streaming

Kafka concepts, running Kafka with Docker, Python producer and consumer, consumer groups, offsets and real-time ML uses.