Skip to content

Expose a path for converting bytes::Bytes into arrow_buffer::Buffer without copy #5104

Closed
@chebbyChefNEQ

Description

@chebbyChefNEQ

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

It would be nice if we can call let buffer: Buffer = bytes.into() without incurring a copy, since object_store returns bytes::Bytes.

Describe the solution you'd like

I see that arrow_buffer::bytes::Bytes already implements From<bytes::Bytes> here

I guess we just need to add a implementation of From<bytes::Bytes> for Buffer

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrowChanges to the arrow crateenhancementAny new improvement worthy of a entry in the changeloggood first issueGood for newcomershelp wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions