mustdo-afk opened a new issue, #15429: URL: https://github.com/apache/datafusion/issues/15429
### Describe the bug I downloaded `apache/datafusion` and checked out to the `branch-28` branch. Then, when I ran `cargo build`, the following error occurred. How could such a dependency - related error occur? > error[E0034]: multiple applicable items in scope > --> /Users/lutengda/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-arith-43.0.0/src/temporal.rs:262:47 > | > 262 | time_fraction_dyn(array, "quarter", |t| t.quarter() as i32) > | ^^^^^^^ multiple `quarter` found > | > = note: candidate #1 is defined in an impl of the trait `Datelike` for the type `NaiveDateTime` > note: candidate #2 is defined in an impl of the trait `ChronoDateExt` for the type `T` > --> /Users/lutengda/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-arith-43.0.0/src/temporal.rs:149:5 > | > 149 | fn quarter(&self) -> u32 { > | ^^^^^^^^^^^^^^^^^^^^^^^^ > help: disambiguate the method for candidate #1 > | > 262 | time_fraction_dyn(array, "quarter", |t| Datelike::quarter(&t) as i32) > | ~~~~~~~~~~~~~~~~~~~~~ > help: disambiguate the method for candidate #2 > | > 262 | time_fraction_dyn(array, "quarter", |t| ChronoDateExt::quarter(&t) as i32) > | ~~~~~~~~~~~~~~~~~~~~~~~~~~ > > error[E0034]: multiple applicable items in scope > --> /Users/lutengda/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-arith-43.0.0/src/temporal.rs:272:52 > | > 272 | time_fraction_internal(array, "quarter", |t| t.quarter() as i32) > | ^^^^^^^ multiple `quarter` found > | > = note: candidate #1 is defined in an impl of the trait `Datelike` for the type `NaiveDateTime` > note: candidate #2 is defined in an impl of the trait `ChronoDateExt` for the type `T` > --> /Users/lutengda/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-arith-43.0.0/src/temporal.rs:149:5 > | > 149 | fn quarter(&self) -> u32 { > | ^^^^^^^^^^^^^^^^^^^^^^^^ > help: disambiguate the method for candidate #1 > | > 272 | time_fraction_internal(array, "quarter", |t| Datelike::quarter(&t) as i32) > | ~~~~~~~~~~~~~~~~~~~~~ > help: disambiguate the method for candidate #2 > | > 272 | time_fraction_internal(array, "quarter", |t| ChronoDateExt::quarter(&t) as i32) > | ~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Compiling sqlparser_derive v0.1.1 > For more information about this error, try `rustc --explain E0034`. > error: could not compile `arrow-arith` (lib) due to 2 previous errors > warning: build failed, waiting for other jobs to finish... ### To Reproduce _No response_ ### Expected behavior _No response_ ### Additional context _No response_ -- 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...@datafusion.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org