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: recurse into Map datatype when hydrating dictionaries #6645

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

nathanielc
Copy link
Contributor

When hydrating dictionaries for the FlightDataEncoder the Map data type was assumed to not be nested. This change correctly recurses into the Map field to hydrate any dictionaries within the map.

Which issue does this PR close?

Closes #6644

Rationale for this change

Fix the bug following the pattern already established for other nested types.

What changes are included in this PR?

Handle the Map type like we do other nested data types.

Are there any user-facing changes?

No

When hydrating dictionaries for the FlightDataEncoder the Map data type
was assumed to not be nested. This change correctly recurses into the
Map field to hydrate any dictionaries within the map.

Fixes apache#6644
@github-actions github-actions bot added arrow Changes to the arrow crate arrow-flight Changes to the arrow-flight crate labels Oct 29, 2024
@crepererum crepererum merged commit ad56c02 into apache:master Oct 30, 2024
12 checks passed
@nathanielc nathanielc deleted the fix/flight-dict-map branch October 30, 2024 12:33
adbmal pushed a commit to adbmal/arrow-rs that referenced this pull request Nov 2, 2024
When hydrating dictionaries for the FlightDataEncoder the Map data type
was assumed to not be nested. This change correctly recurses into the
Map field to hydrate any dictionaries within the map.

Fixes apache#6644
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate arrow-flight Changes to the arrow-flight crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DictionaryHandling does not recurse into Map fields
3 participants