Content-defined blocks for Parquet

Summary

The article adapts content-defined chunking to the internal structure of Parquet files. Similar table versions can therefore share blocks, even though file offsets have changed. Parquet organises data in column chunks and row groups.

Ideas

  • Knowledge of the file format improves deduplication compared with blindly chosen byte boundaries.
  • Stable block boundaries make incremental data versions cheaper to store and transfer.

Insights

  • Deduplication only works for tables when block boundaries follow the internal structure of the file format.

Facts

  • Content-defined chunking sets boundaries based on content rather than fixed positions.

Critique

  • Optimisation close to the format has to keep pace with new Parquet variants and compression methods.

Recommendations

  • Measure the deduplication rate and CPU cost with typical changes to your data sets.

References

Read the original article on Hugging Face

Search the Web Archive

Found a mistake or have something to add? Get in touch.