---
title: "Parquet Content-Defined Chunking"
description: "Parquet Content-Defined Chunking, now available in PyArrow and Pandas via the use_content_defined_chunking option, writes Parquet data pages so that small logical edits produce minimal byte-level differences."
url: "https://swe.quest/articles/parquet-content-defined-chunking-87ef6600fb11e475"
canonical: "https://huggingface.co/blog/parquet-cdc"
source: "Hugging Face"
published: "2025-07-25"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 16
tags: ["storage-systems","data-pipelines","python","algorithms"]
---

# Parquet Content-Defined Chunking

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2025-07-25, 16 min read, Deep dive. Original: [https://huggingface.co/blog/parquet-cdc](https://huggingface.co/blog/parquet-cdc)

## Summary

Parquet Content-Defined Chunking, now available in PyArrow and Pandas via the use\_content\_defined\_chunking option, writes Parquet data pages so that small logical edits produce minimal byte-level differences. This lets content-addressable storage like Hugging Face's Xet layer deduplicate effectively. On a 100k-row OpenOrca subset, exact re-uploads, added or removed columns, type casts and appended rows already deduplicate well, transferring only the new pages and the footer. Row insertions and deletions defeat vanilla Parquet, though, because separately compressed pages shift: about 90 MB of 99 MB was re-uploaded. CDC aligns page boundaries to content to fix this and also handles different row-group sizes and file splits.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Storage systems](https://swe.quest/tags/storage-systems.md) (Infrastructure)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Python](https://swe.quest/tags/python.md) (Languages)
- [Algorithms](https://swe.quest/tags/algorithms.md) (Architecture & design)

## Prerequisites

- Parquet file layout
- PyArrow basics
- content-addressable storage

## Keywords

Apache Parquet, PyArrow, Xet, Hugging Face Hub, content-defined chunking, Pandas

## Related posts

- [Improving Parquet Dedupe on Hugging Face Hub](https://swe.quest/articles/improving-parquet-dedupe-on-hugging-face-hub-fceac01ac834bf66.md): Hugging Face · 2024-10-05 · Medium · 5 min read · Storage systems, Analytics & OLAP, Data pipelines, Algorithms
  Byte-level content-defined chunking dedupes Parquet appends almost perfectly: 10,000 appended rows give 99.1% dedupe and need about 20MB of new storage.
- [A Deep Dive into Apache Parquet with ClickHouse - Part 2](https://swe.quest/articles/a-deep-dive-into-apache-parquet-with-clickhouse-part-2-6aca5ceaeed12095.md): ClickHouse · 2023-04-26 · Medium · 23 min read · Analytics & OLAP, Storage engines, Performance engineering, Data pipelines
  Parquet files are organized into row groups, column chunks and pages, with dictionary, RLE/bit-packing and delta encodings plus footer metadata and min/max statistics that let readers push down projections and predicates.
- [From Files to Chunks: Improving HF Storage Efficiency](https://swe.quest/articles/from-files-to-chunks-improving-hf-storage-efficiency-389481ed0fa30735.md): Hugging Face · 2024-11-20 · Medium · 5 min read · Storage systems, Algorithms, Version control, Cost optimization
  Hugging Face's Xet team plans to replace file-level Git LFS storage with content-defined chunking (CDC), where a rolling hash over a sliding window sets variable-size chunk boundaries and chunks are deduplicated in a content-addressed store, so edits only upload and store changed chunks.
- [ClickHouse and Parquet: A foundation for fast Lakehouse analytics](https://swe.quest/articles/clickhouse-and-parquet-a-foundation-for-fast-lakehouse-analytics-8735ae90a09a83f6.md): ClickHouse · 2025-05-07 · Medium · 22 min read · Query engines, Analytics & OLAP, Performance engineering, Concurrency
  ClickHouse queries Parquet files directly, without ingestion, through a format-specific reader that currently parses via Arrow and then converts into ClickHouse's in-memory format.
- [ClickHouse Release 25.8](https://swe.quest/articles/clickhouse-release-25-8-24e052d1705201ca.md): ClickHouse · 2025-09-05 · Medium · 13 min read · Analytics & OLAP, Query engines, Performance engineering, Data pipelines
  ClickHouse 25.8 ships 45 features, 47 performance optimizations and 119 bug fixes.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
