apache / arrow-rs

Official Rust implementation of Apache Arrow
https://arrow.apache.org/
Apache License 2.0
2.62k stars 802 forks source link

feat: expose known_schema from FlightDataEncoder #6688

Closed nathanielc closed 1 week ago

nathanielc commented 2 weeks ago

Which issue does this PR close?

Fixes #6672

Rationale for this change

Need a mechanism to handle schema changes due to dictionary hydration in FlightSQL server implementations

What changes are included in this PR?

With this change is now possible to inspect the encoded schema of the encoded Flight data, which may differ from the input schema based on dictionary hydration handling.

Are there any user-facing changes?

Yes, and example motivating the new API has been given.

alamb commented 1 week ago

Thanks again