BigData / Apache Parquet Interview Questions
What is partitioning in Parquet and how does it improve query performance?
Partitioning organises files into a directory hierarchy based on column values, following the Hive partition layout:
s3://bucket/events/
date=2026-01-01/
part-0000.parquet
date=2026-01-02/
part-0001.parquet
region=US/
...
When a query filters on a partition column, the engine lists only matching subdirectories and skips all others — this is called partition pruning. No Parquet files in the skipped partitions are opened at all.
Example savings: a table with 3 years of daily data (1,095 partitions) filtering on a single date skips 99.9% of files before any Parquet-level statistics are consulted.
Trade-offs:
- Partition on columns with moderate cardinality (dates, regions, categories) — not user IDs (too many small files).
- Avoid over-partitioning: thousands of tiny files hurt throughput more than they help with pruning.
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
