Skip to content

Commit b3c2311

Browse files
authored
chore: Bump OpenDAL to 0.48 (#500)
* chore: Bump OpenDAL to 0.48 Signed-off-by: Xuanwo <[email protected]> * Format toml Signed-off-by: Xuanwo <[email protected]> --------- Signed-off-by: Xuanwo <[email protected]>
1 parent 79b5650 commit b3c2311

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ log = "^0.4"
6767
mockito = "^1"
6868
murmur3 = "0.5.2"
6969
once_cell = "1"
70-
opendal = "0.47"
70+
opendal = "0.48"
7171
ordered-float = "4.0.0"
7272
parquet = "52"
7373
pilota = "0.11.2"

crates/iceberg/src/io/storage_fs.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ impl FsConfig {
4545
///
4646
/// fs always build from `/`
4747
pub fn build(&self, _: &str) -> Result<Operator> {
48-
let m = HashMap::from_iter([("root".to_string(), "/".to_string())]);
49-
Ok(Operator::via_map(Scheme::Fs, m)?)
48+
Ok(Operator::via_iter(Scheme::Fs, [(
49+
"root".to_string(),
50+
"/".to_string(),
51+
)])?)
5052
}
5153
}

crates/iceberg/src/io/storage_memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ impl MemoryConfig {
4040
/// Build new opendal operator from given path.
4141
pub fn build(&self, _: &str) -> Result<Operator> {
4242
let m = HashMap::new();
43-
Ok(Operator::via_map(Scheme::Memory, m)?)
43+
Ok(Operator::via_iter(Scheme::Memory, m)?)
4444
}
4545
}

crates/iceberg/src/io/storage_s3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,6 @@ impl S3Config {
9797
);
9898
m.insert("region".to_string(), self.region.clone());
9999

100-
Ok(Operator::via_map(Scheme::S3, m)?)
100+
Ok(Operator::via_iter(Scheme::S3, m)?)
101101
}
102102
}

rustfmt.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ group_imports = "StdExternalCrate"
2323
imports_granularity = "Module"
2424
overflow_delimited_expr = true
2525
trailing_comma = "Vertical"
26-
where_single_line = true
26+
where_single_line = true

0 commit comments

Comments
 (0)