nathanielc commented on issue #6672:
URL: https://github.com/apache/arrow-rs/issues/6672#issuecomment-2455791760
@alamb Agreed, exposing the API is a fragile solution.
I like your proposed approach however the FlightDataEncoder type does not
expose a method to access the schema. However that would be a small addition to
its API. Should we add a the function
```rust
pub fn schema(&self) -> Option<SchemaRef> {
self.schema.clone()
}
```
In cases where the schema is known upfront it will have been hydrated and
in cases where its not known upfront a None is returned. Thoughts? Maybe we
call the function `known_schema` to make it clear its only available when the
schema is known upfront?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]