apache / arrow-rs

Official Rust implementation of Apache Arrow
https://arrow.apache.org/
Apache License 2.0
2.62k stars 802 forks source link

Fix LocalFileSystem with range request that ends beyond end of file #6751

Open kylebarron opened 3 days ago

kylebarron commented 3 days ago

Which issue does this PR close?

Closes #6749.

Rationale for this change

Make LocalFileSystem act the same as other object store backends.

What changes are included in this PR?

Allow LocalFileSystem to return a satisfiable byte range beyond the end of the file.

Add new test for satisfiable and non-satisfiable byte range.

Are there any user-facing changes?

No.