You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
object_store_registry.get_by_uri does not work as expected.
To Reproduce && Expected behavior
#[test]fntest_get_by_uri_s3(){let sut = ObjectStoreRegistry::default();
sut.register_store("s3".to_string(),Arc::new(LocalFileSystem{}));let uri = "s3://bucket/key";let(_, path) = sut.get_by_uri(uri).unwrap();assert_eq!(path,"bucket/key");}#[test]fntest_get_by_uri_file(){let sut = ObjectStoreRegistry::default();let uri = "file:///bucket/key";let(_, path) = sut.get_by_uri(uri).unwrap();assert_eq!(path,"/bucket/key");}#[test]fntest_get_by_uri_local(){let sut = ObjectStoreRegistry::default();let uri = "/bucket/key";let(_, path) = sut.get_by_uri(uri).unwrap();assert_eq!(path,"/bucket/key");}
Additional context
This issue is not uncovered with local files, because LocalFileSystem does some additional "magic" to workaround the issue:
Describe the bug
object_store_registry.get_by_uri does not work as expected.
To Reproduce && Expected behavior
Additional context
This issue is not uncovered with local files, because LocalFileSystem does some additional "magic" to workaround the issue:
The text was updated successfully, but these errors were encountered: