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: report hydrated schemas from flight_info requests #74

Conversation

nathanielc
Copy link
Collaborator

With flight_info requests the returned schema needs to exactly match the encoded flight data. The FlightDataEncoder will change the schema in order to hydrate dictionaries. This means the schema reported from flight_info requests did not match the encoded data.

This change copies the logic from arrow-flight that can transform a schema for hydrated dictionaries. See
apache/arrow-rs#6672 where the copied logic may be exposed directly.

With flight_info requests the returned schema needs to exactly match the
encoded flight data. The FlightDataEncoder will change the schema in
order to hydrate dictionaries. This means the schema reported from
flight_info requests did not match the encoded data.

This change copies the logic from arrow-flight that can transform a schema
for hydrated dictionaries. See
apache/arrow-rs#6672 where the copied logic
may be exposed directly.
@backkem backkem merged commit c5e3149 into datafusion-contrib:main Nov 4, 2024
7 checks passed
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.

3 participants