()
| 234 | |
| 235 | #[test] |
| 236 | fn mbr_all_null_attr() { |
| 237 | let mut b = MbrBuilder::new(1, 1); |
| 238 | b.fold(&[CoordValue::Int64(0)], &[CellValue::Null]); |
| 239 | b.fold(&[CoordValue::Int64(1)], &[CellValue::Null]); |
| 240 | let m = b.build(); |
| 241 | assert!(matches!( |
| 242 | m.attr_stats[0], |
| 243 | AttrStats::AllNull { null_count: 2 } |
| 244 | )); |
| 245 | } |
| 246 | |
| 247 | #[test] |
| 248 | fn mbr_categorical_attr_stats() { |