3AceShowHand opened a new issue, #6877:
URL: https://github.com/apache/arrow-datafusion/issues/6877

   at the `arrow-datafusion/datafusion/sql` directory, and run `cargo build` .
   
   Following error report:
   ```
   ➜ cargo build
      Compiling arrow-array v43.0.0
      Compiling comfy-table v7.0.1
      Compiling bstr v0.2.17
      Compiling regex v1.9.0
      Compiling serde_json v1.0.85
      Compiling flatbuffers v23.5.26
      Compiling strum_macros v0.25.1
      Compiling log v0.4.17
   error[E0432]: unresolved import `num::complex::ComplexFloat`
     --> 
/Users/edison/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arrow-array-43.0.0/src/arithmetic.rs:21:5
      |
   21 | use num::complex::ComplexFloat;
      |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ComplexFloat` in `complex`
   
      Compiling sqlparser v0.35.0
      Compiling csv v1.1.6
   error[E0599]: no method named `powi` found for struct `f16` in the current 
scope
      --> 
/Users/edison/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arrow-array-43.0.0/src/arithmetic.rs:351:25
       |
   351 |                 Ok(self.powi(exp as i32))
       |                         ^^^^ method not found in `f16`
   ...
   380 | native_type_float_op!(f16, f16::ZERO, f16::ONE);
       | ----------------------------------------------- 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
      --> 
/Users/edison/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arrow-array-43.0.0/src/arithmetic.rs:356:22
       |
   356 |                 self.powi(exp as i32)
       |                      ^^^^ method not found in `f16`
   ...
   380 | native_type_float_op!(f16, f16::ZERO, f16::ONE);
       | ----------------------------------------------- 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;
       |
   
   Some errors have detailed explanations: E0432, E0599.
   For more information about an error, try `rustc --explain E0432`.
   error: could not compile `arrow-array` (lib) due to 3 previous errors
   warning: build failed, waiting for other jobs to finish...
   ```


-- 
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