Skip to content

Commit

Permalink
chore: increment the version of the deltalake-gcp crate
Browse files Browse the repository at this point in the history
This change also loosens the meta-crate version dependency to allow more
easy upgrades in the future
  • Loading branch information
rtyler committed Apr 30, 2024
1 parent 2aa4571 commit 41cb9d7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion crates/deltalake/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ features = ["azure", "datafusion", "gcs", "hdfs", "json", "mount", "python", "s3
deltalake-core = { version = "0.17.1", path = "../core" }
deltalake-aws = { version = "0.1.0", path = "../aws", default-features = false, optional = true }
deltalake-azure = { version = "0.1.0", path = "../azure", optional = true }
deltalake-gcp = { version = "0.1.0", path = "../gcp", optional = true }
deltalake-gcp = { version = "0.2", path = "../gcp", optional = true }
deltalake-catalog-glue = { version = "0.1.0", path = "../catalog-glue", optional = true }
deltalake-mount = { version = "0.1.0", path = "../mount", optional = true }

Expand Down
2 changes: 1 addition & 1 deletion crates/gcp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "deltalake-gcp"
version = "0.1.0"
version = "0.2.0"
authors.workspace = true
keywords.workspace = true
readme.workspace = true
Expand Down
18 changes: 9 additions & 9 deletions crates/gcp/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ use std::ops::Range;
use tokio::io::AsyncWrite;

use deltalake_core::storage::object_store::{
Result as ObjectStoreResult, PutOptions, GetOptions, ListResult, MultipartId, ObjectMeta, PutResult, GetResult, ObjectStore
GetOptions, GetResult, ListResult, MultipartId, ObjectMeta, ObjectStore, PutOptions, PutResult,
Result as ObjectStoreResult,
};

pub(crate) struct GcsStorageBackend {
Expand Down Expand Up @@ -105,18 +106,17 @@ impl ObjectStore for GcsStorageBackend {
// Source would be a reqwest error which we don't have access to so the easiest thing to do is check
// for "429" in the error message
if format!("{:?}", source).contains("429") {
Err(
object_store::Error::AlreadyExists { path: to.to_string(), source }
)
Err(object_store::Error::AlreadyExists {
path: to.to_string(),
source,
})
} else {
Err(
object_store::Error::Generic { store, source }
)
Err(object_store::Error::Generic { store, source })
}
}
_ => Err(e)
_ => Err(e),
}
},
}
}
}

Expand Down

0 comments on commit 41cb9d7

Please sign in to comment.