An Empirical Evaluation of Columnar Storage Formats

Xinyu Zeng, Yulong Hui, Jiahong Shen, Andrew Pavlo, Wes McKinney, Huanchen Zhang · DOI

Introduction

For over a decade, Apache Parquet and Apache ORC have served as the bedrock of big data analytics. Designed during the "Hadoop era," these formats were engineered to optimize for the constraints of that time: slow hard disk drives (HDDs), expensive storage, and the MapReduce processing model. However, the hardware landscape has undergone a seismic shift. Modern data stacks now leverage NVMe SSDs with gigabytes of bandwidth, high-latency cloud object stores like Amazon S3, and workloads increasingly dominated by machine learning (ML) rather than traditional SQL queries.

This paper provides a long-overdue "health check" on these dominant columnar formats. By benchmarking Parquet and ORC against modern hardware and real-world data distributions, the researchers reveal that many standard design choices—once considered best practices—have become performance bottlenecks in the modern era.

Methodology

To move beyond treating these formats as "black boxes," the authors employed a three-pronged research strategy:

  1. Feature Taxonomy: A deep-dive comparison of the internal architectures of Parquet and ORC. This included analyzing their physical layouts (both utilize the PAX model), specific encoding schemes (such as Run-Length Encoding, Bitpacking, and Delta encoding), and their differing approaches to handling nested data (Dremel vs. Length/Presence models).
  2. Real-World Profiling: Rather than relying solely on synthetic benchmarks like TPC-H, the study analyzed over 600 real-world datasets from sources including the Public BI Benchmark, UCI-ML, ClickHouse, and Yelp. This allowed the authors to identify "typical" data properties, such as the ratio of distinct values (NDV), null ratios, and sortedness.
  3. Stress-Testing Framework: The researchers developed a custom benchmark framework capable of generating data based on these real-world parameters. This allowed them to isolate and stress-test specific format features under controlled conditions.

Key Insights: The Reality of Modern Data

The Dominance of Low NDV

One of the most significant findings from the profiling of 600+ datasets is that over 80% of real-world integer columns possess a very low number of distinct values (NDV). This makes Dictionary Encoding the most critical optimization tool available. Parquet’s aggressive implementation of dictionary encoding makes it a highly effective "reasonable default" for a wide variety of general-purpose workloads.

The CPU-Storage Paradox

In the HDD era, aggressive block compression (using Zstd or Snappy) was essential to minimize disk I/O. On modern NVMe drives, however, the bottleneck has shifted. The time required for the CPU to decompress a data block is now often greater than the time saved by reading less data from the disk. The study found that applying Zstd compression to Parquet files on an NVMe drive can impose up to a 4.2x performance overhead compared to scanning uncompressed data. In many modern environments, turning off block compression entirely results in faster query execution.

Metadata and Wide Tables

Modern ML workloads often involve "wide tables" containing thousands of features. The authors observed that in these scenarios, the time spent parsing a file's metadata (the footer) can dominate the total query time. Current metadata structures are not optimized for random access or the scale of modern feature sets, leading to significant latency in high-latency cloud environments.

Performance Results and Hardware Mismatch

Parquet vs. ORC

The evaluation found no single "winner," as each format excels in different areas. Parquet generally achieves smaller file sizes due to superior dictionary encoding and offers faster raw decoding. Conversely, ORC is significantly more efficient at selection pruning (skipping irrelevant data). This is due to ORC’s finer-grained "zone maps," which track data statistics every 10,000 rows, compared to Parquet’s typical 1-million-row page sizes.

The GPU Gap

As data processing shifts toward hardware accelerators, the study highlights a fundamental mismatch between current columnar formats and GPUs. Existing encoding schemes are highly sequential—where the decoding of one value depends on the previous one. This sequential nature starves the massive parallelism of GPU cores. Interestingly, ORC-cuDF (GPU) outperformed Parquet-cuDF because ORC’s internal layout provides more independent blocks that the GPU can process in parallel, though neither format is truly "GPU-native."

Vector Embeddings

Neither format currently handles the high-dimensional vector embeddings central to modern AI. They fail to compress these floating-point vectors effectively and are slow to scan, suggesting a critical need for specialized floating-point compression algorithms within the storage layer.

Conclusion and Future Directions

The findings suggest that while Parquet and ORC remain robust, they are showing their age. To meet the demands of the next decade, the authors propose several paths forward for the next generation of storage formats:

  • Cloud-Native Metadata: Centralizing metadata to reduce the number of expensive "GET" requests in high-latency object storage.
  • Parallel-Friendly Encodings: Developing new encoding algorithms designed specifically for SIMD and GPU architectures.
  • ML-Optimized Storage: Providing native support for wide tables and compressed high-dimensional vectors.

By moving away from the "one-size-fits-all" compression and sequential logic of the Hadoop era, the data community can unlock the full potential of modern NVMe and GPU hardware.

Summary updated

BibTeX
@article{zeng2023empirical,
  author = {Xinyu Zeng and Yulong Hui and Jiahong Shen and Andrew Pavlo and Wes McKinney and Huanchen Zhang},
  title = {{An Empirical Evaluation of Columnar Storage Formats}},
  journal = {Proc. VLDB Endow.},
  year = {2023},
  url = {https://openreview.net/forum?id=WnepEhBuhp},
}
Figure