Skip to content

Commit

Permalink
Bugfix on date sorting (Thanks to @trinity-1686a)
Browse files Browse the repository at this point in the history
Not my finding. All credit to @trinity.
Just extracting the bugfix to release 0.6.2.
  • Loading branch information
fulmicoton committed Jul 10, 2023
1 parent 3463d66 commit cb9fc16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quickwit/quickwit-search/src/collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl SortingFieldComputer {
SortFieldType::U64 => SortValue::U64(sort_value),
SortFieldType::I64 => SortValue::I64(i64::from_u64(sort_value)),
SortFieldType::F64 => SortValue::F64(f64::from_u64(sort_value)),
SortFieldType::DateTime => SortValue::U64(sort_value),
SortFieldType::DateTime => SortValue::I64(i64::from_u64(sort_value)),
SortFieldType::Bool => SortValue::Boolean(sort_value == 1u64),
}
}
Expand Down

0 comments on commit cb9fc16

Please sign in to comment.