Skip to content

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

@andygrove

Description

@andygrove

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions