Skip to content

Commit

Permalink
chore: Bump OpenDAL to 0.48 (#500)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
Xuanwo authored Jul 29, 2024
1 parent 79b5650 commit b3c2311
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ log = "^0.4"
mockito = "^1"
murmur3 = "0.5.2"
once_cell = "1"
opendal = "0.47"
opendal = "0.48"
ordered-float = "4.0.0"
parquet = "52"
pilota = "0.11.2"
Expand Down
6 changes: 4 additions & 2 deletions crates/iceberg/src/io/storage_fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ impl FsConfig {
///
/// fs always build from `/`
pub fn build(&self, _: &str) -> Result<Operator> {
let m = HashMap::from_iter([("root".to_string(), "/".to_string())]);
Ok(Operator::via_map(Scheme::Fs, m)?)
Ok(Operator::via_iter(Scheme::Fs, [(
"root".to_string(),
"/".to_string(),
)])?)
}
}
2 changes: 1 addition & 1 deletion crates/iceberg/src/io/storage_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ impl MemoryConfig {
/// Build new opendal operator from given path.
pub fn build(&self, _: &str) -> Result<Operator> {
let m = HashMap::new();
Ok(Operator::via_map(Scheme::Memory, m)?)
Ok(Operator::via_iter(Scheme::Memory, m)?)
}
}
2 changes: 1 addition & 1 deletion crates/iceberg/src/io/storage_s3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,6 @@ impl S3Config {
);
m.insert("region".to_string(), self.region.clone());

Ok(Operator::via_map(Scheme::S3, m)?)
Ok(Operator::via_iter(Scheme::S3, m)?)
}
}
2 changes: 1 addition & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ group_imports = "StdExternalCrate"
imports_granularity = "Module"
overflow_delimited_expr = true
trailing_comma = "Vertical"
where_single_line = true
where_single_line = true

0 comments on commit b3c2311

Please sign in to comment.