Skip to content

Commit dbd8bbc

Browse files
committed
rename test and testcase for u64
1 parent 98ce8fc commit dbd8bbc

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

datafusion/expr-common/src/interval_arithmetic.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4161,13 +4161,19 @@ mod tests {
41614161
}
41624162

41634163
#[test]
4164-
fn test_cardinality_full_i64_range_does_not_overflow() -> Result<()> {
4164+
fn test_cardinality_full_integer_range_does_not_overflow() -> Result<()> {
41654165
let interval = Interval::try_new(
41664166
ScalarValue::Int64(Some(i64::MIN)),
41674167
ScalarValue::Int64(Some(i64::MAX)),
41684168
)?;
41694169
assert_eq!(interval.cardinality(), None);
41704170

4171+
let interval = Interval::try_new(
4172+
ScalarValue::UInt64(Some(0)),
4173+
ScalarValue::UInt64(Some(u64::MAX)),
4174+
)?;
4175+
assert_eq!(interval.cardinality(), None);
4176+
41714177
Ok(())
41724178
}
41734179

0 commit comments

Comments
 (0)