Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Bump OpenDAL to v0.50.0 #21493

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 33 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ azure_storage = { version = "0.17", default-features = false, optional = true }
azure_storage_blobs = { version = "0.17", default-features = false, optional = true }

# OpenDAL
opendal = { version = "0.45", default-features = false, features = ["native-tls", "services-webhdfs"], optional = true }
opendal = { version = "0.50", default-features = false, features = ["services-webhdfs"], optional = true }

# Tower
tower = { version = "0.4.13", default-features = false, features = ["buffer", "limit", "retry", "timeout", "util", "balance", "discover"] }
Expand Down
3 changes: 2 additions & 1 deletion LICENSE-3rdparty.csv
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ azure_identity,https://github.com/azure/azure-sdk-for-rust,MIT,Microsoft Corp.
azure_storage,https://github.com/azure/azure-sdk-for-rust,MIT,Microsoft Corp.
azure_storage_blobs,https://github.com/azure/azure-sdk-for-rust,MIT,Microsoft Corp.
backoff,https://github.com/ihrwein/backoff,MIT OR Apache-2.0,Tibor Benke <ihrwein@gmail.com>
backon,https://github.com/Xuanwo/backon,Apache-2.0,Xuanwo <github@xuanwo.io>
backon,https://github.com/Xuanwo/backon,Apache-2.0,The backon Authors
backtrace,https://github.com/rust-lang/backtrace-rs,MIT OR Apache-2.0,The Rust Project Developers
base16,https://github.com/thomcc/rust-base16,CC0-1.0,Thom Chiovoloni <tchiovoloni@mozilla.com>
base16ct,https://github.com/RustCrypto/formats/tree/master/base16ct,Apache-2.0 OR MIT,RustCrypto Developers
Expand Down Expand Up @@ -241,6 +241,7 @@ generic-array,https://github.com/fizyk20/generic-array,MIT,"Bartłomiej Kamińsk
getrandom,https://github.com/rust-random/getrandom,MIT OR Apache-2.0,The Rand Project Developers
gimli,https://github.com/gimli-rs/gimli,MIT OR Apache-2.0,The gimli Authors
glob,https://github.com/rust-lang/glob,MIT OR Apache-2.0,The Rust Project Developers
gloo-timers,https://github.com/rustwasm/gloo/tree/master/crates/timers,MIT OR Apache-2.0,Rust and WebAssembly Working Group
goauth,https://github.com/durch/rust-goauth,MIT,Drazen Urch <github@drazenur.ch>
governor,https://github.com/boinkor-net/governor,MIT,Andreas Fuchs <asf@boinkor.net>
graphql-introspection-query,https://github.com/graphql-rust/graphql-client,Apache-2.0 OR MIT,Tom Houlé <tom@tomhoule.com>
Expand Down
4 changes: 2 additions & 2 deletions src/sinks/webhdfs/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ impl WebHdfsConfig {
// Build OpenDal Operator
let mut builder = Webhdfs::default();
// Prefix logic will be handled by key_partitioner.
builder.root(&self.root);
builder.endpoint(&self.endpoint);
builder = builder.root(&self.root);
builder = builder.endpoint(&self.endpoint);

let op = Operator::new(builder)?
.layer(LoggingLayer::default())
Expand Down
2 changes: 1 addition & 1 deletion src/sinks/webhdfs/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ async fn hdfs_rotate_files_after_the_buffer_size_is_reached() {

let mut response_lines: Vec<Vec<String>> = Vec::new();
for o in objects {
let bs = op.read(o.path()).await.unwrap();
let bs = op.read(o.path()).await.unwrap().to_vec();
let buf_read = BufReader::new(Cursor::new(bs));

response_lines.push(buf_read.lines().map(|l| l.unwrap()).collect());
Expand Down
Loading