Skip to content

Commit 500697e

Browse files
Add tests for explicit ScalarValue::Null partial ordering
1 parent 390c7c7 commit 500697e

File tree

1 file changed

+15
-0
lines changed
  • datafusion/common/src/scalar

1 file changed

+15
-0
lines changed

datafusion/common/src/scalar/mod.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9369,5 +9369,20 @@ mod tests {
93699369
Int32(None).partial_cmp(&Int32(None)),
93709370
None
93719371
);
9372+
9373+
assert_eq!(
9374+
Null.partial_cmp(&Int32(Some(3))),
9375+
None
9376+
);
9377+
9378+
assert_eq!(
9379+
Int32(Some(3)).partial_cmp(&Null),
9380+
None
9381+
);
9382+
9383+
assert_eq!(
9384+
Null.partial_cmp(&Null),
9385+
None
9386+
);
93729387
}
93739388
}

0 commit comments

Comments
 (0)