From 41cb9d7b738518ba67aa5735710accac482113fc Mon Sep 17 00:00:00 2001 From: "R. Tyler Croy" Date: Mon, 29 Apr 2024 05:16:19 +0000 Subject: [PATCH] chore: increment the version of the deltalake-gcp crate This change also loosens the meta-crate version dependency to allow more easy upgrades in the future --- crates/deltalake/Cargo.toml | 2 +- crates/gcp/Cargo.toml | 2 +- crates/gcp/src/storage.rs | 18 +++++++++--------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/crates/deltalake/Cargo.toml b/crates/deltalake/Cargo.toml index ba3e26cbf9..0d5c77c8e2 100644 --- a/crates/deltalake/Cargo.toml +++ b/crates/deltalake/Cargo.toml @@ -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 } diff --git a/crates/gcp/Cargo.toml b/crates/gcp/Cargo.toml index daa9042c83..bf94ee29be 100644 --- a/crates/gcp/Cargo.toml +++ b/crates/gcp/Cargo.toml @@ -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 diff --git a/crates/gcp/src/storage.rs b/crates/gcp/src/storage.rs index 075fe61cae..9b938b737e 100644 --- a/crates/gcp/src/storage.rs +++ b/crates/gcp/src/storage.rs @@ -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 { @@ -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), } - }, + } } }