Skip to content

Fails to build when installing #32

Description

@alexkreidler

Install command:

$ cargo install bdt
Updating crates.io index
  Downloaded bdt v0.18.0
  Downloaded 1 crate (31.0 KB) in 0.43s
  Installing bdt v0.18.0
    Updating crates.io index
     Locking 316 packages to latest compatible versions
      Adding async-compression v0.4.19 (available: v0.4.23)
      Adding comfy-table v6.2.0 (available: v7.1.4)
      Adding datafusion v35.0.0 (available: v47.0.0)
      Adding thiserror v1.0.69 (available: v2.0.12)
  Downloaded adler32 v1.2.0
  Downloaded allocator-api2 v0.2.21

<truncated>


   Compiling arrow-ord v50.0.0
   Compiling arrow-arith v50.0.0
error[E0034]: multiple applicable items in scope
   --> /home/ubuntu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-arith-50.0.0/src/temporal.rs:238:47
    |
238 |     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`
   --> /home/ubuntu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-arith-50.0.0/src/temporal.rs:147:5
    |
147 |     fn quarter(&self) -> u32 {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^
help: disambiguate the method for candidate #1
    |
238 -     time_fraction_dyn(array, "quarter", |t| t.quarter() as i32)
238 +     time_fraction_dyn(array, "quarter", |t| Datelike::quarter(&t) as i32)
    |
help: disambiguate the method for candidate #2
    |
238 -     time_fraction_dyn(array, "quarter", |t| t.quarter() as i32)
238 +     time_fraction_dyn(array, "quarter", |t| ChronoDateExt::quarter(&t) as i32)
    |

error[E0034]: multiple applicable items in scope
   --> /home/ubuntu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-arith-50.0.0/src/temporal.rs:248:52
    |
248 |     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`
   --> /home/ubuntu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-arith-50.0.0/src/temporal.rs:147:5
    |
147 |     fn quarter(&self) -> u32 {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^
help: disambiguate the method for candidate #1
    |
248 -     time_fraction_internal(array, "quarter", |t| t.quarter() as i32)
248 +     time_fraction_internal(array, "quarter", |t| Datelike::quarter(&t) as i32)
    |
help: disambiguate the method for candidate #2
    |
248 -     time_fraction_internal(array, "quarter", |t| t.quarter() as i32)
248 +     time_fraction_internal(array, "quarter", |t| ChronoDateExt::quarter(&t) as i32)
    |

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...
error: failed to compile `bdt v0.18.0`, intermediate artifacts can be found at `/tmp/cargo-install2qyioV`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Environment:

$ cargo --version
cargo 1.86.0 (adf9b6ad1 2025-02-28)
$ rustup --version
rustup 1.28.1 (f9edccde0 2025-03-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.86.0 (05f9846f8 2025-03-31)`
$ uname -a
Linux oraclebox 6.8.0-1024-oracle #25-Ubuntu SMP Thu Mar 27 18:19:34 UTC 2025 aarch64 aarch64 aarch64 GNU/Linux
# OS: Ubuntu 24.04.2 LTS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions