Skip to content

Commit

Permalink
chore: clean up
Browse files Browse the repository at this point in the history
Signed-off-by: Ion Koutsouris <[email protected]>
  • Loading branch information
ion-elgreco committed Jan 14, 2025
1 parent 395acf3 commit 8564ac9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/aws/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl ObjectStoreFactory for S3ObjectStoreFactory {
}
}

let (_scheme, path) =
let (_, path) =
ObjectStoreScheme::parse(url).map_err(|e| DeltaTableError::GenericError {
source: Box::new(e),
})?;
Expand Down
4 changes: 1 addition & 3 deletions crates/azure/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,12 @@ impl ObjectStoreFactory for AzureFactory {
) -> DeltaResult<(ObjectStoreRef, Path)> {
let config = config::AzureConfigHelper::try_new(options.as_azure_options())?.build()?;

let (_scheme, path) =
let (_, path) =
ObjectStoreScheme::parse(&url).map_err(|e| DeltaTableError::GenericError {
source: Box::new(e),
})?;
let prefix = Path::parse(path)?;

// let (inner, prefix) = parse_url_opts(url, config)?;

let mut builder = MicrosoftAzureBuilder::new().with_url(url.to_string());

for (key, value) in config.iter() {
Expand Down
2 changes: 1 addition & 1 deletion crates/gcp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl ObjectStoreFactory for GcpFactory {
) -> DeltaResult<(ObjectStoreRef, Path)> {
let config = config::GcpConfigHelper::try_new(options.as_gcp_options())?.build()?;

let (_scheme, path) =
let (_, path) =
ObjectStoreScheme::parse(&url).map_err(|e| DeltaTableError::GenericError {
source: Box::new(e),
})?;
Expand Down
2 changes: 1 addition & 1 deletion crates/lakefs/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl ObjectStoreFactory for LakeFSObjectStoreFactory {
})
.collect::<HashMap<AmazonS3ConfigKey, String>>();

let (_scheme, path) =
let (_, path) =
ObjectStoreScheme::parse(&s3_url).map_err(|e| DeltaTableError::GenericError {
source: Box::new(e),
})?;
Expand Down

0 comments on commit 8564ac9

Please sign in to comment.