What are the trade-offs between CSV and Parquet file formats?

Quick Overview

Compares CSV and Parquet as storage formats for tabular data. Tests whether you understand row versus columnar layout, compression, read speed, schema and type handling, and when each format is the better choice for analytics work.

What are the trade-offs between CSV and Parquet file formats?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

What are the trade-offs between CSV and Parquet file formats? Assume you are picking a format for tabular data that a data team will store, share and analyze. ```hint Look at the layout Picture how each format places values on disk, and what a query that needs 3 of 50 columns has to read in each case. ``` ```hint Types Ask what a reader learns about each column's type when it opens the file. ``` ### What a Strong Answer Covers - The on-disk layout of each format and its effect on reading a subset of columns - File size and why compression works differently in the two formats - Read and write speed at scale, including the cost of parsing text - How each format stores (or fails to store) schema and types, and what type inference gets wrong - Portability and tooling, and the situations where each format is the better choice ### Follow-up Questions - How does a Parquet reader skip row groups for a filter such as `country = 'FR'`, and when does that skipping stop helping? - Why is writing many small Parquet files a problem, and how would you fix it? - How would you choose a Parquet compression codec, for example Snappy versus Zstd? - When would you pick a third format such as Avro, Arrow IPC (Feather) or JSON Lines?

Overview: Compares CSV and Parquet as storage formats for tabular data. Tests whether you understand row versus columnar layout, compression, read speed, schema and type handling, and when each format is the better choice for analytics work.

PracHub logo
General
Nov 25, 2026
mediumData ScientistOtherData Manipulation (SQL/Python)
0
0

What are the trade-offs between CSV and Parquet file formats?

Assume you are picking a format for tabular data that a data team will store, share and analyze.

What a Strong Answer Covers Guidance

  • The on-disk layout of each format and its effect on reading a subset of columns
  • File size and why compression works differently in the two formats
  • Read and write speed at scale, including the cost of parsing text
  • How each format stores (or fails to store) schema and types, and what type inference gets wrong
  • Portability and tooling, and the situations where each format is the better choice

Follow-up Questions Guidance

  • How does a Parquet reader skip row groups for a filter such as country = 'FR' , and when does that skipping stop helping?
  • Why is writing many small Parquet files a problem, and how would you fix it?
  • How would you choose a Parquet compression codec, for example Snappy versus Zstd?
  • When would you pick a third format such as Avro, Arrow IPC (Feather) or JSON Lines?