Group bys with floats fail to compile
mwylde opened this issue · comments
create table nexmark with (
connector = 'nexmark',
event_rate = '5'
);
select cast(bid.price as float)
from nexmark
group by 1;
error[E0277]: the trait bound `f32: std::cmp::Eq` is not satisfied
--> pipeline/src/main.rs:290:5
|
278 | #[derive(Eq, Hash, Ord)]
| -- in this derive macro expansion
...
290 | pub nexmark_bid_price_: Option<f32>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::cmp::Eq` is not implemented for `f32`
|
= help: the following other types implement trait `std::cmp::Eq`:
isize
i8
i16
i32
i64
i128
usize
u8
and 4 others
= note: required for `std::option::Option<f32>` to implement `std::cmp::Eq`
Fixed in #442