Skip to content

Public API using private types: Buffer::from_bytes takes unexported Bytes #6754

@tv42

Description

@tv42

Describe the bug

https://docs.rs/arrow-buffer/53.2.0/arrow_buffer/buffer/struct.Buffer.html#method.from_bytes

/// Auxiliary method to create a new Buffer
pub fn from_bytes(bytes: Bytes) -> Self

This method is in the public API, but cannot be called.

Expected behavior

  1. All types used by public API are public.

Any outside users looking at this are probably better served by Buffer::from_vec.

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrowChanges to the arrow cratearrow-flightChanges to the arrow-flight cratebugparquetChanges to the parquet crate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions