avantgardnerio opened a new issue, #4014:
URL: https://github.com/apache/arrow-rs/issues/4014
**Is your feature request related to a problem or challenge? Please describe
what you are trying to do.**
The signature is:
```
pub fn batches_to_flight_data(
schema: Schema,
batches: Vec<RecordBatch>,
) -> Result<Vec<FlightData>, ArrowError> {
```
Which means if a caller can't give up ownership (needs to re-use for
something else), they need to clone these expensive objects.
**Describe the solution you'd like**
Accept a reference instead.
**Describe alternatives you've considered**
Clone away.
**Additional context**
--
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]