You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fail to compile deltalake crate in crates.io with feature "s3".
Compiling lz4 v1.24.0
Compiling dynamodb_lock v0.4.1
Compiling zstd v0.11.2+zstd.1.5.2
error[E0308]: mismatched types
--> /Users/huahua/.cargo/registry/src/github.com-1ecc6299db9ec823/deltalake-0.5.0/src/storage/s3.rs:523:17
|
522 |let lock_client = dynamodb_lock::DynamoDbLockClient::new(
| -------------------------------------- arguments to this functionare incorrect
523 | dynamodb_client,
| ^^^^^^^^^^^^^^^ expected struct `rusoto_dynamodb::generated::DynamoDbClient`, found struct `DynamoDbClient`|
= note: struct `DynamoDbClient` and struct `rusoto_dynamodb::generated::DynamoDbClient` have similar names, but are actually distinct types
note: struct `DynamoDbClient` is defined in crate `rusoto_dynamodb`
--> /Users/huahua/.cargo/registry/src/github.com-1ecc6299db9ec823/rusoto_dynamodb-0.48.0/src/generated.rs:6449:1
|
6449 | pub struct DynamoDbClient {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
note: struct `rusoto_dynamodb::generated::DynamoDbClient` is defined in crate `rusoto_dynamodb`
--> /Users/huahua/.cargo/registry/src/github.com-1ecc6299db9ec823/rusoto_dynamodb-0.46.0/src/generated.rs:6449:1
|
6449 | pub struct DynamoDbClient {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `rusoto_dynamodb` are being used?
note: associated functiondefined here
--> /Users/huahua/.cargo/registry/src/github.com-1ecc6299db9ec823/dynamodb_lock-0.4.1/src/lib.rs:341:12
|
341 | pub fn new(client: DynamoDbClient, opts: DynamoDbOptions) -> Self {
| ^^^
For more information about this error, try `rustc --explain E0308`.
error: could not compile `deltalake` due to previous error
warning: build failed, waiting for other jobs to finish...
What you expected to happen:
Compile successfully.
How to reproduce it:
run cargo new
add a dependence in Cargo.toml:
[package]
name = "test_delta_lake"version = "0.1.0"edition = "2021"# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
deltalake = { version = "0.5.0", features = ["s3"] }
compile
More details:
The reason is that dynamodb_lock in crates.io is too old. It only has a 0.46 version of rusoto_dynamodb . When 0.5.0 version of deltalake was released, the dynamodb_lock in this depository had a upgraded 0.48 version of rusoto_dynamodb. So we can compile this deposiory successfully. But when we use deltalake in crates.io, it will use the dynamodb_lock in crates.io, which is outdated. So it will fail to compile.
The text was updated successfully, but these errors were encountered:
Environment
Delta-rs version: rust-v0.5.0
Binding: Rust
Environment:
Bug
What happened:
Fail to compile
deltalake
crate in crates.io with feature "s3".What you expected to happen:
Compile successfully.
How to reproduce it:
cargo new
Cargo.toml
:More details:
The reason is that
dynamodb_lock
in crates.io is too old. It only has a0.46
version ofrusoto_dynamodb
. When 0.5.0 version of deltalake was released, thedynamodb_lock
in this depository had a upgraded0.48
version ofrusoto_dynamodb
. So we can compile this deposiory successfully. But when we usedeltalake
in crates.io, it will use thedynamodb_lock
in crates.io, which is outdated. So it will fail to compile.The text was updated successfully, but these errors were encountered: