You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "ryzhyk (via GitHub)" <gi...@apache.org> on 2025/02/24 23:42:01 UTC
[I] Compilation error due to rkyv/rkyv#434 [datafusion]
ryzhyk opened a new issue, #14862:
URL: https://github.com/apache/datafusion/issues/14862
### Describe the bug
When datafusion is used in a workspace that enables the `rkyv-64` feature in the `chrono` crate, this triggers a Rust compilation error:
```
error[E0277]: can't compare `Option<&std::string::String>` with `Option<&mut std::string::String>`
--> datafusion/expr/src/logical_plan/plan.rs:2872:43
|
2872 | merged.retain(|k, v| input.get(k) == Some(v));
| ^^ no implementation for `Option<&std::string::String> == Option<&mut std::string::String>`
|
= help: the trait `PartialEq<Option<&mut std::string::String>>` is not implemented for `Option<&std::string::String>`
= help: the following other types implement trait `PartialEq<Rhs>`:
`Option<T>` implements `PartialEq`
`Option<U>` implements `PartialEq<rkyv::option::ArchivedOption<T>>`
```
The root cause of the error is incorrect type unification in the Rust compiler, as explained in https://github.com/rkyv/rkyv/issues/434.
I will submit a PR with a workaround.
### To Reproduce
Change `Cargo.toml` to enable the `rkyv-64` feature in chrono and try building the `datafusion-expr` crate:
```
chrono = { version = "0.4.38", default-features = false, features = ["rkyv-64"] }
```
### Expected behavior
_No response_
### Additional context
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] Compilation error due to rkyv/rkyv#434 [datafusion]
Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead closed issue #14862: Compilation error due to rkyv/rkyv#434
URL: https://github.com/apache/datafusion/issues/14862
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org