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

GH-44714: [C++] Keep field metadata for keys and values when importing a map type via the C data interface #44715

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

paleolimbot
Copy link
Member

@paleolimbot paleolimbot commented Nov 13, 2024

Rationale for this change

Import of a map type from the C data interface drops field metadata (including extension type information) which does not happen when importing a map type from IPC or a list of structs. This affects the ability to roundtrip data through pyarrow/Arrow C++ if extension types are not registered.

What changes are included in this PR?

The mechanism to import the map type was changed to align with the method used for IPC import.

Are these changes tested?

Yes.

Are there any user-facing changes?

The current behaviour was surprising/inconsistent, so I think this PR brings it in more line with the current expectation/documentation.

Copy link

⚠️ GitHub issue #44714 has been automatically assigned in GitHub to PR creator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant