ritchie46 opened a new issue, #4843:
URL: https://github.com/apache/arrow-rs/issues/4843
**Describe the bug**
I assume this is related to the space in the path. If we try to get metadata
on a file in a public dataset. One path (without spaces succeeds), but a file
in the same bucket that contains spaces in the path fails.
**To Reproduce**
```rust
use object_store::aws::{AmazonS3Builder, AmazonS3ConfigKey};
use object_store::ObjectStore;
#[tokio::main(flavor = "current_thread")]
pub async fn run() -> Option<()> {
let mut builder = AmazonS3Builder::from_env();
builder = builder.with_config(AmazonS3ConfigKey::Region, "us-east-1");
builder = builder.with_bucket_name("nyc-tlc");
let store = builder.build().unwrap();
// THIS WORKS
let path=
object_store::path::Path::parse("misc/FOIL_2017-12-04.csv").unwrap();
let out = store.head(&path).await.unwrap();
dbg!(out);
/// out = ObjectMeta {
// location: Path {
// raw: "misc/FOIL_2017-12-04.csv",
// },
// last_modified: 2017-12-05T19:45:41Z,
// size: 555893670,
// e_tag: Some(
// "\"f21b9424ed28661676114566b3cf6449-34\"",
// ),
// THIS DOESN'T
let path= object_store::path::Path::parse("trip
data/fhv_tripdata_2015-01.parquet").unwrap();
let out = store.head(&path).await.unwrap();
Some(())
}
```
**Expected behavior**
To return the metadata of the object.
**Additional context**
Public dataset: https://registry.opendata.aws/nyc-tlc-trip-records-pds/
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]