Comment on transitivity.

Co-authored-by: Paul Masurel <paul@quickwit.io>
This commit is contained in:
Stu Hood
2025-12-16 15:16:48 -08:00
parent 07f8ac96ef
commit 49314ddf3b

View File

@@ -67,6 +67,8 @@ impl OwnedValue {
OwnedValue::Null => 0, OwnedValue::Null => 0,
OwnedValue::Str(_) => 1, OwnedValue::Str(_) => 1,
OwnedValue::PreTokStr(_) => 2, OwnedValue::PreTokStr(_) => 2,
// It is key to make sure U64, I64, F64 are grouped together in there, otherwise we
// might be breaking transivity.
OwnedValue::U64(_) => 3, OwnedValue::U64(_) => 3,
OwnedValue::I64(_) => 4, OwnedValue::I64(_) => 4,
OwnedValue::F64(_) => 5, OwnedValue::F64(_) => 5,