We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98ce8fc commit dbd8bbcCopy full SHA for dbd8bbc
1 file changed
datafusion/expr-common/src/interval_arithmetic.rs
@@ -4161,13 +4161,19 @@ mod tests {
4161
}
4162
4163
#[test]
4164
- fn test_cardinality_full_i64_range_does_not_overflow() -> Result<()> {
+ fn test_cardinality_full_integer_range_does_not_overflow() -> Result<()> {
4165
let interval = Interval::try_new(
4166
ScalarValue::Int64(Some(i64::MIN)),
4167
ScalarValue::Int64(Some(i64::MAX)),
4168
)?;
4169
assert_eq!(interval.cardinality(), None);
4170
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
+
4177
Ok(())
4178
4179
0 commit comments