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

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

Reply via email to