Skip to content

Conversation

@zeroshade
Copy link
Member

Rationale for this change

Discovered while fixing apache/iceberg-go#309 we didn't correctly propagate the field-id metadata to children of List or Map fields, only structs.

What changes are included in this PR?

A new MapType creator for constructing MapTypes from arrow fields for the Key and Items for easier construction, and fixing the pqarrow schema manifest creation to correctly propagate the child metadata field IDs for the children.

Are these changes tested?

Unit test is added.

Are there any user-facing changes?

Usage of pqarrow reading List/Map typed fields will now correctly contain the PARQUET:field_id metadata key in the schema produced.

@zeroshade zeroshade merged commit ca6e0eb into apache:main Feb 21, 2025
23 checks passed
@zeroshade zeroshade deleted the metadata-fixes branch February 21, 2025 17:50
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.

2 participants