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

   **Describe the bug**
   ```
   
~/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/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`
      --> 
~/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-arith-53.4.0/src/temporal.rs:637:5
       |
   637 |     fn quarter(&self) -> u32;
       |     ^^^^^^^^^^^^^^^^^^^^^^^^^
   note: candidate #2 is defined in the trait `Datelike`
      --> 
~/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/chrono-0.4.40/src/traits.rs:47:5
   ```
   **To Reproduce**
   1. clean cargo registry
   ```
   rm -rf ~/.cargo/registry
   ```
   2. cargo new arrow_box
   cd arrow_box
   
   3. add single dependency to Cargo.toml: 
   ```
   [dependencies]
   arrow = "54.2.0"
   ```
   4. cargo build
   
   **Expected behavior**
   Compilation success
   
   **Additional context**
   I could fix it by adding "ChronoDateExt::" before "quarter" in 
   arrow-arith/src/temporal.rs:92
   like this:
   ```
   DatePart::Quarter => |d| ChronoDateExt::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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to