kylebarron opened a new issue, #37: URL: https://github.com/apache/arrow-rs-object-store/issues/37
**Describe the bug** The `LocalFileSystem` fails to return data when a byte range starts before the end of the file. **To Reproduce** ```rs #[tokio::test] async fn range_request_beyond_end_of_file() { let root = TempDir::new().unwrap(); let integration = LocalFileSystem::new_with_prefix(root.path()).unwrap(); let location = Path::from("some_file"); let data = Bytes::from("arbitrary data"); integration .put(&location, data.clone().into()) .await .unwrap(); let read_data = integration.get_range(&location, 0..100).await.unwrap(); assert_eq!(&*read_data, data); } ``` This currently fails with ``` called `Result::unwrap()` on an `Err` value: Generic { store: "LocalFileSystem", source: OutOfRange { path: "/private/var/folders/42/5jr6891d4ds4xysz7q0rsghw0000gn/T/.tmpK2eHCc/some_file", expected: 100, actual: 14 } } ``` **Expected behavior** In line with the HTTP spec and other object stores, the `LocalFileSystem` should return the satisfiable part of the range request. **Additional context** Some discussion in Discord: https://discord.com/channels/885562378132000778/885562378132000781/1308082632898248836 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org