Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-7681

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • Rust

    Description

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

       

      Pull request: https://github.com/apache/arrow/pull/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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              m18e Max Burke
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 6h
                  6h