Interview practice question
Writing partitioned Parquet
Data Engineering · Python · Intermediate
You need to write a large dataset from Python into S3 as Parquet, partitioned by date, so Athena and Spark can query it efficiently. How?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Use pyarrow or Polars to write Parquet with partition columns.
- Use Hive-style paths like dt=2026-11-12.
- Aim for reasonably large files, around 128 MB or more.
- Overwrite partitions on rerun to stay idempotent.
- Register partitions in the catalog or use a table format.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.