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

cannot use += on type OrderedFloat<f64> #1744

Closed
andygrove opened this issue Feb 4, 2022 · 1 comment · Fixed by #1756
Closed

cannot use += on type OrderedFloat<f64> #1744

andygrove opened this issue Feb 4, 2022 · 1 comment · Fixed by #1756
Labels
enhancement New feature or request

Comments

@andygrove
Copy link
Member

andygrove commented Feb 4, 2022

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
I would like to be able to use DataFusion on a Raspberry Pi running Ubuntu 20.04.3 but it does not compile.

$ cargo test
   Compiling datafusion v6.0.0 (/home/ubuntu/arrow-datafusion/datafusion)
error[E0368]: binary assignment operation `+=` cannot be applied to type `OrderedFloat<f64>`
   --> datafusion/src/physical_plan/tdigest/mod.rs:329:13
    |
329 |             weight_so_far += next.weight();
    |             -------------^^^^^^^^^^^^^^^^^
    |             |
    |             cannot use `+=` on type `OrderedFloat<f64>`

Describe the solution you'd like
I would like the code to compile.

Describe alternatives you've considered
It looks like I can use cross to cross-compile from my desktop to this architecture:

cross build --release --target aarch64-unknown-linux-gnu

Additional context

$ cat /etc/issue
Ubuntu 20.04.3 LTS \n \l

$ uname -a
Linux pi1 5.4.0-1050-raspi #56-Ubuntu SMP PREEMPT Thu Jan 13 13:09:35 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

$ rustup update
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
info: checking for self-updates

  stable-aarch64-unknown-linux-gnu unchanged - rustc 1.58.1 (db9d1b20b 2022-01-20)
@andygrove andygrove added the enhancement New feature or request label Feb 4, 2022
@andygrove
Copy link
Member Author

I was able to get this to work on a different Raspberry Pi running the same OS. The only difference was 8 GB vs 4 GB memory. This doesn't make much sense to me but I am closing this issue.

@andygrove andygrove changed the title Add support for stable-aarch64-unknown-linux-gnu cannot use += on type OrderedFloat<f64> Feb 5, 2022
@andygrove andygrove reopened this Feb 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant