internalsGet Pro

Data Engineering · Module 04

Data formats and file storage

Lessons
10
Free
1
Reading
~3 h

Your progress

0 / 10 lessons done

Sign in to track

Lessons

  1. Row and columnar storage: why layout mattersFreeEvery file format and engine in this course is either row-based or columnar, and the choice decides what each query pays. Knowing the layout lets you predict which jobs a store will do cheaply before you load a byte into it.13 min
  2. CSV and JSON: simple but costly at scaleFiles between companies are still mostly CSV and JSON. Both look simple, and most bugs between a sender and a reader come from the parts the formats never pinned down.14 min
  3. Parquet: columnar files for analyticsMost analytical data at rest is Parquet: exports, data lake files, the files under Iceberg and Delta tables. Whether a query over them reads 1% or 100% of the bytes is decided when the file is written, often by a job nobody looks at again.17 min
  4. Avro and Protobuf: schemas for eventsKafka topics and CDC tools often carry Avro or Protobuf messages, and lakes store the same data as Parquet. Where each format keeps its schema decides who can read the data, and what breaks when it changes.17 min
  5. Compression and encoding: smaller, faster filesEvery analytical file you write picks an encoding and a codec, usually by default. Those defaults decide how many bytes each query reads for the life of the data, and a sort order or one setting can change that several times over.17 min
  6. Partitioning files by date and keyAlmost every data lake, export folder and lakehouse table splits its files by a key, usually a date. That folder layout decides which files a query never opens, and once readers depend on it, changing it means rewriting everything.16 min
  7. The small files problemEvery pipeline that writes often, or splits its output into many folders, creates small files without anyone deciding to. The queries that read them slow down month by month, and the fix is cheapest when it is part of the design from the start.17 min
  8. Schema evolution: changing data without breaking jobsEvery source a pipeline reads changes shape over time: app releases, new columns, wider types. Old files and old app versions don’t change with it, so every reader must handle every shape it will ever meet.18 min
  9. Object storage for data: buckets, prefixes and costsAlmost every data platform keeps its files in object storage. Its rules differ from a disk: no rename, no folders, and a bill per request, and pipelines written as if it were a disk lose data or money.14 min
  10. Choosing a file format for your workloadEvery pipeline has files going out to partners, events in flight, tables for analysts and records kept for audits. Picking one format for all of them makes some of them slow, unreadable or unprovable; picking per workload keeps each one cheap.16 min

Practise with

No tools or paper guides for this module yet.

Terms this module teaches 36

Open glossary

Apache Avro

A row-oriented binary data format whose records hold only values, in the order a separate JSON schema lists them, so every reader needs the writer’s schema.