Skip to the page

Cloud data platforms · Trade-off

Parquet, ORC, Avro, CSV or JSON

The interviewer asks

Pick a file format for each of these and tell me why: raw events coming off Kafka, the tables analysts query every day, a daily file a bank partner sends you, and messages between two services.

Then

Follow-ups the interviewer asks next

  1. Row-based or columnar: what's the difference in practice?
  2. Why is Avro common with Kafka?
  3. What can go wrong with a partner's CSV?
  4. Snappy, zstd or gzip?
  5. Where does JSON belong, and what's the VARIANT type for?

The answer

What a strong answer covers

  • Parquet: columnar, compressed and encoded per column, with min/max statistics; the default for analytics and for Delta, Iceberg and Hudi tables.
  • ORC: also columnar, from the Hive world, with similar strengths; most new lakehouse tooling leans towards Parquet.
  • Avro: row-based, with the schema travelling alongside and clear schema evolution rules; good for streaming and record-at-a-time writes, usually with a schema registry. Protobuf plays the same role, especially between services.
  • CSV: readable by anyone but untyped, with delimiter, quoting, encoding and date-format traps, and gzip-compressed CSV can't be split across tasks. For partner files, agree a spec (UTF-8, header, delimiter, quoting, date format, a row-count trailer or checksum), validate on arrival and convert to Parquet.
  • JSON: flexible but big and slow to parse; land it, then parse it into typed columns, or keep semi-structured parts in a VARIANT column (Spark 4.0, Delta, Snowflake) or BigQuery's JSON type.
  • Per case: Kafka events as Avro or Protobuf on the wire, landed as Parquet in a table format; analytics tables in Parquet under Delta or Iceberg; the partner file as CSV in, Parquet out; services on Protobuf or Avro.
  • Compression: snappy is fast (Spark's Parquet default); zstd compresses better at similar speed; gzip is slow and, for CSV, not splittable.

The red pen

Common traps

Avoid:"CSV, because everyone can open it"; Parquet for tiny single-record messages; not knowing gzipped CSV can't be split.

Practise this out loud

Say your answer out loud to an AI interviewer that follows up, and get a score for it.

Practise by voice

Practise questions like this out loud

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview