We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d5d2d41 + 9426d5b commit e488f9eCopy full SHA for e488f9e
src/aggregation/mod.rs
@@ -366,8 +366,12 @@ impl PartialEq for Key {
366
fn eq(&self, other: &Self) -> bool {
367
match (self, other) {
368
(Self::Str(l), Self::Str(r)) => l == r,
369
- (Self::F64(l), Self::F64(r)) => l == r,
370
- _ => false,
+ (Self::F64(l), Self::F64(r)) => l.to_bits() == r.to_bits(),
+ (Self::I64(l), Self::I64(r)) => l == r,
371
+ (Self::U64(l), Self::U64(r)) => l == r,
372
+ // we list all variant of left operand to make sure this gets updated when we add
373
+ // variants to the enum
374
+ (Self::Str(_) | Self::F64(_) | Self::I64(_) | Self::U64(_), _) => false,
375
}
376
377
0 commit comments