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
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
The signature is:
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