You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Neville Dipale (Jira)" <ji...@apache.org> on 2020/02/01 07:45:00 UTC

[jira] [Updated] (ARROW-7681) [Rust] Explicitly seeking a BufReader will discard the internal buffer

     [ https://issues.apache.org/jira/browse/ARROW-7681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Neville Dipale updated ARROW-7681:
----------------------------------
    Fix Version/s: 1.0.0

> [Rust] Explicitly seeking a BufReader will discard the internal buffer
> ----------------------------------------------------------------------
>
>                 Key: ARROW-7681
>                 URL: https://issues.apache.org/jira/browse/ARROW-7681
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Rust
>            Reporter: Max Burke
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.0.0
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> 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]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)