Skip to content

[python] Introduce backports.zstd dependency to fix fastavro reader exception for ManifestListManager#7834

Merged
JingsongLi merged 1 commit into
apache:masterfrom
SteNicholas:PAIMON-7833
May 13, 2026
Merged

[python] Introduce backports.zstd dependency to fix fastavro reader exception for ManifestListManager#7834
JingsongLi merged 1 commit into
apache:masterfrom
SteNicholas:PAIMON-7833

Conversation

@SteNicholas
Copy link
Copy Markdown
Member

@SteNicholas SteNicholas commented May 13, 2026

Purpose

On Python versions below 3.14, fastavro uses backports.zstd for the zstandard Avro codec. Without that package, reading zstd-compressed manifest lists with ManifestListManager.read can fail with a confusing “missing codec / install backports.zstd” style error, especially in slim or Ray-like environments where optional deps are omitted. Therefore introduce backports.zstd (with a Python < 3.14 marker) to paimon-python/dev/requirements.txt so that local and CI-style dev installs include the codec backend needed for zstd manifest list I/O.

Close #7833.

Tests

ManifestListManagerTest::test_zstd_manifest_list_fastavro_requires_backports_zstd.

@SteNicholas SteNicholas force-pushed the PAIMON-7833 branch 2 times, most recently from 25a355b to 472d4fe Compare May 13, 2026 00:20
Comment thread paimon-python/dev/requirements.txt Outdated
Comment thread paimon-python/dev/requirements.txt Outdated
@SteNicholas SteNicholas force-pushed the PAIMON-7833 branch 2 times, most recently from fa653da to 5db66cf Compare May 13, 2026 02:26
@XiaoHongbo-Hope
Copy link
Copy Markdown
Contributor

+1

1 similar comment
@JingsongLi
Copy link
Copy Markdown
Contributor

+1

@JingsongLi JingsongLi merged commit c960676 into apache:master May 13, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] zstandard codec is supported but you need to install one of the following libraries: ('backports.zstd',)

3 participants