Interview practice question
Choosing a partition column
Data Engineering · Spark · Intermediate
You're designing a table of 10 billion events per month. Analysts filter mostly by event date and sometimes by country and user. How do you partition it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Partition by date, the most common filter.
- Avoid partitioning on high-cardinality columns like user_id.
- Use clustering, Z-order or liquid clustering for secondary filters.
- Keep partitions reasonably sized, not too many tiny ones.
- Revisit as query patterns change.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.