You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "yutannihilation (via GitHub)" <gi...@apache.org> on 2025/02/26 10:24:50 UTC

[I] `ChronoDateExt::quarter()` conflicts with chrono v0.4.40 [arrow-rs]

yutannihilation opened a new issue, #7196:
URL: https://github.com/apache/arrow-rs/issues/7196

   **Describe the bug**
   
   [chrono v0.4.40](https://crates.io/crates/chrono/0.4.40), which was released just a few hours ago, provides its own `.quarter()` method.
   
   pull request: https://github.com/chronotope/chrono/pull/1666
   
   So, this now conflicts with the arrow's implementation.
   
   ```
   error[E0034]: multiple applicable items in scope
      --> /Users/yutannihilation/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-arith-54.2.0/src/temporal.rs:92:36
       |
   92  |         DatePart::Quarter => |d| d.quarter() as i32,
       |                                    ^^^^^^^ multiple `quarter` found
       |
   note: candidate #1 is defined in the trait `ChronoDateExt`
      --> /Users/yutannihilation/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-arith-54.2.0/src/temporal.rs:638:5
       |
   638 |     fn quarter(&self) -> u32;
       |     ^^^^^^^^^^^^^^^^^^^^^^^^^
   note: candidate #2 is defined in the trait `Datelike`
      --> /Users/yutannihilation/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/chrono-0.4.40/src/traits.rs:47:5
       |
   47  |     fn quarter(&self) -> u32 {
       |     ^^^^^^^^^^^^^^^^^^^^^^^^
   help: disambiguate the method for candidate #1
       |
   92  |         DatePart::Quarter => |d| ChronoDateExt::quarter(&d) as i32,
       |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~
   help: disambiguate the method for candidate #2
       |
   92  |         DatePart::Quarter => |d| Datelike::quarter(&d) as i32,
       |                                  ~~~~~~~~~~~~~~~~~~~~~
   
   For more information about this error, try `rustc --explain E0034`.
   error: could not compile `arrow-arith` (lib) due to 1 previous error
   ```
   
   **To Reproduce**
   
   ```sh
   cargo update chrono
   cargo build
   ```
   
   **Expected behavior**
   <!--
   A clear and concise description of what you expected to happen.
   -->
   
   **Additional context**
   <!--
   Add any other context about the problem here.
   -->


-- 
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@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] `ChronoDateExt::quarter()` conflicts with chrono v0.4.40 [arrow-rs]

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold closed issue #7196: `ChronoDateExt::quarter()` conflicts with chrono v0.4.40
URL: https://github.com/apache/arrow-rs/issues/7196


-- 
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@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] `ChronoDateExt::quarter()` conflicts with chrono v0.4.40 [arrow-rs]

Posted by "haixuanTao (via GitHub)" <gi...@apache.org>.
haixuanTao commented on issue #7196:
URL: https://github.com/apache/arrow-rs/issues/7196#issuecomment-2685474791

   For a hot quick fix, this should work:
   
   ```bash
   arrow = { git = "https://github.com/apache/arrow-rs" }
   arrow-schema = { git = "https://github.com/apache/arrow-rs" }
   arrow-data = { git = "https://github.com/apache/arrow-rs" }
   arrow-array = { git = "https://github.com/apache/arrow-rs" }
   ```
   
   But, this is just for currently build on git.
   
   I wonder if this issue makes old version of arrrow by default unusable.


-- 
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@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] `ChronoDateExt::quarter()` conflicts with chrono v0.4.40 [arrow-rs]

Posted by "DataBora (via GitHub)" <gi...@apache.org>.
DataBora commented on issue #7196:
URL: https://github.com/apache/arrow-rs/issues/7196#issuecomment-2688702335

   I needed to downgrade DataFusion from 44.0.0 to 43.0.0, arrow to =53.2.0, and chrono to =0.4.38 , in order for Elusion crate to build. I had consideration for ODBC as well, so thats why chrono is on 0.4.38


-- 
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@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] `ChronoDateExt::quarter()` conflicts with chrono v0.4.40 [arrow-rs]

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on issue #7196:
URL: https://github.com/apache/arrow-rs/issues/7196#issuecomment-2685492308

   > For a hot quick fix, this should work:
   
   A simpler option would be
   
   ```
   chrono = "= 0.4.39"
   ```
   
   Anywhere in the workspace


-- 
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@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] `ChronoDateExt::quarter()` conflicts with chrono v0.4.40 [arrow-rs]

Posted by "ddimaria (via GitHub)" <gi...@apache.org>.
ddimaria commented on issue #7196:
URL: https://github.com/apache/arrow-rs/issues/7196#issuecomment-2685296178

   This issue is blocking our builds.  I saw there was a fix applied in [#7198](https://github.com/apache/arrow-rs/pull/7198), does anyone know when this will be released?


-- 
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@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] `ChronoDateExt::quarter()` conflicts with chrono v0.4.40 [arrow-rs]

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on issue #7196:
URL: https://github.com/apache/arrow-rs/issues/7196#issuecomment-2685349672

   Unfortunately chrono released a breaking change in a patch release, whilst #7198 updates to accomodate this breaking change, downstreams will need to pin to chrono v0.4.39 either using a lockfile or an explicit dependency


-- 
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@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org