Skip to content

Commit

Permalink
fix: put null behind all values
Browse files Browse the repository at this point in the history
  • Loading branch information
CookiePieWw committed May 21, 2024
1 parent 5cdcad6 commit 6105d0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests-fuzz/src/ir/insert_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ pub enum RowValue {
impl RowValue {
pub fn cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
match (self, other) {
(RowValue::Value(Value::Null), RowValue::Value(v2)) => v2.partial_cmp(&Value::Null),
(RowValue::Value(v1), RowValue::Value(Value::Null)) => Value::Null.partial_cmp(v1),
(RowValue::Value(v1), RowValue::Value(v2)) => v1.partial_cmp(v2),
_ => panic!("Invalid comparison: {:?} and {:?}", self, other),
}
Expand Down

0 comments on commit 6105d0c

Please sign in to comment.