You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "DataBora (via GitHub)" <gi...@apache.org> on 2025/08/25 18:45:08 UTC

[I] Compilation error: ambiguous quarter() method call in temporal.rs with chrono 0.4.41 [arrow-rs]

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

   **Describe the bug**
   <!--
   Compilation fails when using arrow-arith with chrono 0.4.41 due to ambiguous method resolution for `quarter()` in temporal.rs.
   -->
   
   **To Reproduce**
   <!--
   1. Use arrow-arith 53.4.0 or later
   2. With chrono 0.4.41
   3. Compilation fails with trait ambiguity error
   -->
   
   **Error message**
   <!--
   error[E0034]: multiple applicable items in scope
   --> arrow-arith-53.4.0/src/temporal.rs:91:36
   |
   91  |         DatePart::Quarter => |d| d.quarter() as i32,
   |                                    ^^^^^^^ multiple quarter found
   |
   note: candidate #1 is defined in the trait ChronoDateExt
   note: candidate #2 is defined in the trait Datelike
   -->
   
   **Expected behavior**
   <!--
   Code should compile without ambiguity errors.
   -->
   
   **Proposing solution**
   <!--
   Disambiguate the method call on line 91 in temporal.rs file:
   ```rust
   DatePart::Quarter => |d| Datelike::quarter(&d) as i32,
   -->


-- 
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] Compilation error: ambiguous quarter() method call in temporal.rs with chrono 0.4.41 [arrow-rs]

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

   this is very annoying, i prepared the patch for that, i would appreciate some input, 


-- 
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] Compilation error: ambiguous quarter() method call in temporal.rs with chrono 0.4.41 [arrow-rs]

Posted by "crepererum (via GitHub)" <gi...@apache.org>.
crepererum closed issue #8221: Compilation error: ambiguous quarter() method call in temporal.rs with chrono 0.4.41
URL: https://github.com/apache/arrow-rs/issues/8221


-- 
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