Skip to content

Manifests are written without an avro.codec entry; PyIceberg 0.12 cannot read them #3640

Closed

Description

@jatorre

Apache Iceberg Rust version

main (5994664)

Describe the bug

ManifestWriter and ManifestListWriter create their Avro writers with Writer::new, so the files carry no avro.codec entry (uncompressed). The Avro specification makes null the default, but PyIceberg 0.12 falls back to the Iceberg table-property default gzip, which is not an Avro codec name, and raises ValueError: Unsupported codec: gzip. A table with one snapshot written by iceberg-rust then cannot be scanned from PyIceberg (the PyIceberg side is apache/iceberg-python, issue to follow).

To Reproduce

Commit a fast append with iceberg-rust to a table, then table.scan().to_arrow() with PyIceberg 0.12.

Expected behavior

Manifests compressed with deflate (what other writers produce for manifests; DuckDB's in the same table were deflate), which also makes them smaller.

Willingness to contribute

I can contribute a fix for this bug independently (PR to follow).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions