Apache Spark Big Data (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
Parquet Format Deep Dive: Row Groups, Column Chunks, Dremel encoding, and predicate pushdown.
senior LevelForms
In Simple Words: Apache Parquet is an open-source columnar storage format designed for analytics:
- Row Groups: Logical horizontal partitions of data (typically 128MB to 512MB).
- Column Chunks: Within a row group, all values for a single column are stored contiguously on disk.
- Column Metadata & Statistics: Every column chunk stores min/max values and null counts in the file footer.
- Predicate Pushdown: When running
WHERE age > 65, Spark inspects the file footer statistics. If a Row Group'smax(age) == 54, Spark skips reading the entire byte block from disk, delivering massive I/O savings.