Skip to content

[Rust] Explicitly seeking a BufReader will discard the internal buffer #23926

@asfimport

Description

@asfimport

This behavior was observed in the Parquet Rust file reader (parquet/src/util/io.rs).

 

Pull request: #6280

 

From the Rust documentation for BufReader:

 

"Seeking always discards the internal buffer, even if the seek position would otherwise fall within it. This guarantees that calling .into_inner() immediately after a seek yields the underlying reader at the same position."

 

https://doc.rust-lang.org/std/io/struct.BufReader.html#impl-Seek

Reporter: Max Burke / @maxburke

Related issues:

PRs and other links:

Note: This issue was originally created as ARROW-7681. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions