Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Remove Metadata from Map Key/Value Fields in as_arrow Conversion #1707

Closed
wants to merge 2 commits into from

Conversation

omkenge
Copy link
Contributor

@omkenge omkenge commented Feb 22, 2025

This change modifies the _ConvertToArrowSchema.map method to create map key and value fields without attaching extra metadata (such as field IDs). By directly constructing the key and value fields using pa.field("key", ...) and pa.field("value", ...), the resulting PyArrow schema now matches the plain schema expected by the write process, resolving the schema mismatch error when appending data with map fields.

@omkenge omkenge mentioned this pull request Feb 22, 2025
@omkenge omkenge closed this Feb 22, 2025
@omkenge omkenge deleted the omkenge-map_bug branch February 22, 2025 19:43
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.

1 participant