Skip to content

batches_to_flight_data() should not require ownership of arguments #4014

Description

@avantgardnerio

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementAny new improvement worthy of a entry in the changelog

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions