Skip to content

Column projection: partial field IDs in Parquet resolve via name mapping #4463

Closed as not planned

Description

@slachiewicz

Body:
PyIceberg's _HasIds check treats a file as fully ID-bearing only when every
field, including list elements and map keys/values, has an ID. Otherwise it
resolves the whole file through schema.name-mapping.default.

The spec now says the opposite: before projection, readers check the full file
schema; if any field ID is present at any depth, readers use stored IDs and
treat ID-less fields, lists missing an element ID and maps missing a key or
value ID as absent. Absent fields resolve through partition metadata,
initial-default, then null — never through the name mapping, which applies
only to files with no field IDs.

Reference fixture: apache/iceberg-verification#27
(v2/partial-field-ids-parquet-data), with expected values. On that file all
projections currently fail in PyIceberg 0.12.0.

Activity

  1. slachiewicz commented on Nov 22, 2026

    @slachiewicz
    MemberAuthor

    Closing in favor of #4417 and its fix in #4419, which already makes the reader resolve a file by ID when any column has one and drop a list or map whose element, key or value has no ID.

    One correction to my description: the spec wording I quoted is proposed in apache/iceberg#19037 and is not merged yet. The reference table for this case is apache/iceberg-verification#27.

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