Skip to content

Commit 52794c1

Browse files
authored
refactor: Use opendal to implement recover object instead (#17165)
* refactor: Use opendal to implement recover object instead Signed-off-by: Xuanwo <[email protected]> * Enabling versioning support Signed-off-by: Xuanwo <[email protected]> * Address comments Signed-off-by: Xuanwo <[email protected]> * Fix Signed-off-by: Xuanwo <[email protected]> --------- Signed-off-by: Xuanwo <[email protected]>
1 parent 509b62f commit 52794c1

File tree

8 files changed

+108
-531
lines changed

8 files changed

+108
-531
lines changed

Cargo.lock

+38-279
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

-3
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,6 @@ async-compression = { git = "https://github.com/datafuse-extras/async-compressio
236236
async-recursion = "1.1.1"
237237
async-stream = "0.3.3"
238238
async-trait = { version = "0.1.77" }
239-
aws-config = { version = "1.1.7", features = ["behavior-version-latest"] }
240-
aws-sdk-s3 = "1.17.0"
241-
aws-smithy-runtime = { version = "1.6.2", default-features = false }
242239
backoff = "0.4" # FIXME: use backon to replace this.
243240
backon = "1"
244241
backtrace = "0.3.73"

src/common/storage/src/operator.rs

+3
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,9 @@ fn init_s3_operator(cfg: &StorageS3Config) -> Result<impl Builder> {
280280
builder = builder.region("us-east-1");
281281
}
282282

283+
// Always enable versioning support.
284+
builder = builder.enable_versioning(true);
285+
283286
// Credential.
284287
builder = builder
285288
.access_key_id(&cfg.access_key_id)

src/query/ee/Cargo.toml

-8
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ test = true
1414
[dependencies]
1515
async-backtrace = { workspace = true }
1616
async-trait = { workspace = true }
17-
aws-smithy-runtime = { workspace = true }
1817
base64 = { workspace = true }
1918
chrono = { workspace = true }
2019
chrono-tz = { workspace = true }
@@ -26,7 +25,6 @@ databend-common-config = { workspace = true }
2625
databend-common-exception = { workspace = true }
2726
databend-common-expression = { workspace = true }
2827
databend-common-functions = { workspace = true }
29-
databend-common-grpc = { workspace = true }
3028
databend-common-io = { workspace = true }
3129
databend-common-license = { workspace = true }
3230
databend-common-meta-api = { workspace = true }
@@ -63,17 +61,11 @@ databend-storages-common-table-meta = { workspace = true }
6361
derive-visitor = { workspace = true }
6462
futures = { workspace = true }
6563
futures-util = { workspace = true }
66-
hyper-tls = { workspace = true }
67-
hyper_v014 = { workspace = true }
6864
jwt-simple = { workspace = true }
6965
log = { workspace = true }
7066
opendal = { workspace = true }
7167
tempfile = { workspace = true }
7268

73-
# aws sdk
74-
aws-config = { workspace = true }
75-
aws-sdk-s3 = { workspace = true }
76-
7769
[dev-dependencies]
7870
jsonb = { workspace = true }
7971
tantivy = { workspace = true }

0 commit comments

Comments
 (0)