Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bumping version gives compilation error (arrow-array) #3525

Closed
bmmeijers opened this issue Jan 13, 2023 · 3 comments
Closed

Bumping version gives compilation error (arrow-array) #3525

bmmeijers opened this issue Jan 13, 2023 · 3 comments
Labels
arrow Changes to the arrow crate question Further information is requested

Comments

@bmmeijers
Copy link
Contributor

Which part is this question about

When bumping my dependencies from v26 to a higher version, I get a compile time error on my project:

error[E0432]: unresolved import `num::complex::ComplexFloat`
  --> /home/martijn/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-array-27.0.0/src/arithmetic.rs:21:5
   |
21 | use num::complex::ComplexFloat;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ComplexFloat` in `complex`

error[E0599]: no method named `powi` found for struct `f16` in the current scope
   --> /home/martijn/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-array-27.0.0/src/arithmetic.rs:329:25
    |
329 |                 Ok(self.powi(exp as i32))
    |                         ^^^^ method not found in `f16`
...
358 | native_type_float_op!(f16, f16::ONE, f16::ZERO);
    | ----------------------------------------------- in this macro invocation
    |
    = help: items from traits can only be used if the trait is in scope
    = note: this error originates in the macro `native_type_float_op` (in Nightly builds, run with -Z macro-backtrace for more info)
help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
    |
18  | use num::Float;
    |
18  | use num::traits::float::FloatCore;
    |
18  | use num::traits::real::Real;
    |

error[E0599]: no method named `powi` found for struct `f16` in the current scope
   --> /home/martijn/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-array-27.0.0/src/arithmetic.rs:334:22
    |
334 |                 self.powi(exp as i32)
    |                      ^^^^ method not found in `f16`
...
358 | native_type_float_op!(f16, f16::ONE, f16::ZERO);
    | ----------------------------------------------- in this macro invocation
    |
    = help: items from traits can only be used if the trait is in scope
    = note: this error originates in the macro `native_type_float_op` (in Nightly builds, run with -Z macro-backtrace for more info)
help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
    |
18  | use num::Float;
    |
18  | use num::traits::float::FloatCore;
    |
18  | use num::traits::real::Real;
    |

Describe your question

Is this a problem with the arrow / parquet dependencies or do I need to do something on my rust environment?

Additional context

v.26 of arrow and parquet libs works, when going higher to v27 -- v30.0.1give all same compilation error on compiling arrow-array.

@bmmeijers bmmeijers added the question Further information is requested label Jan 13, 2023
@tustvold
Copy link
Contributor

tustvold commented Jan 13, 2023

Is there a lockfile present, that is pinning to an older version of num? Perhaps try cargo update num or deleting the lockfile?

@bmmeijers
Copy link
Contributor Author

Yeah, there is a dependency on num-bigint / num-traits that I did not bump.

@bmmeijers
Copy link
Contributor Author

Thanks, running cargo update solved it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants