Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

arrow2 0.18.0 release broke against minimal dependencies in the Cargo.toml #1569

Closed
jcreekmore opened this issue Sep 18, 2023 · 3 comments · Fixed by #1584
Closed

arrow2 0.18.0 release broke against minimal dependencies in the Cargo.toml #1569

jcreekmore opened this issue Sep 18, 2023 · 3 comments · Fixed by #1584

Comments

@jcreekmore
Copy link

Even though #1568 is not merged in, apparently version 0.18.0 has already been released to crates.io. In that release, you are putting a dependency on an API introduced in chrono 0.4.31, but in your Cargo.toml, you only have a dependency on 0.4. In my application, since I am using a Cargo.lock file, the upgrade to arrow2 0.18.0 caused a failure since I have an older version of chrono than 0.4.31. Bumping the actual dependency to 0.4.31 in your Cargo.toml would require a new enough version of chrono to not break builds.

@xosxos
Copy link

xosxos commented Oct 23, 2023

Same here. I could fix it by upgrading my chrono version, but it was a bit of a nuisance to debug. I had chrono and polars as dependencies, and not arrow2 directly.

In case someone is googling around, the error was:

error[E0599]: no method named `timestamp_nanos_opt` found for struct `DateTime` in the current scope

@sundy-li
Copy link
Collaborator

sundy-li commented Oct 24, 2023

maybe we should republish this v18.0 version after #1584 merged, but I don't have permission to release it .

I suggest to use arrow2 = { git = "https://github.com/jorgecarleitao/arrow2", rev = "e078242" } to make temporary fix.

@vladfi1
Copy link

vladfi1 commented Jan 22, 2024

I am still facing this issue. Maybe it could be reopened until cargo.io is properly updated?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants