internalsGet Pro

Module 04 · Lesson 3 of 10Pro

Parquet: columnar files for analytics

Level
Intermediate
Topic
Data formats and file storage
Reading time
17 min

When you finish this page you can

  1. Describe a Parquet file’s layout from the first byte to the last, naming row groups, column chunks, pages and the footer.
  2. Trace how a reader uses the footer and its min/max statistics to skip row groups and columns it doesn’t need.
  3. Choose a sort order and row group size for a Parquet export from the queries that will read it.
  4. Inspect any Parquet file’s row groups and statistics with DuckDB’s parquet_metadata() and parquet_schema().
  1. Writing fast analytical queries17 min
  2. Reading and writing CSV, JSON and Parquet in Python14 min
  3. Row and columnar storage: why layout matters13 min
  4. CSV and JSON: simple but costly at scale14 min

One shopper, 3.95 billion rows

is an online store in India. Every night its data job loads about 10 million click events from the store’s database, and writes the night’s clicks to a file, exports/clicks_<night>.parquet, for the ML team. Meera, Kartly’s data engineer, keeps 13 months of these files: 395 of them.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan