()
| 2409 | |
| 2410 | #[test] |
| 2411 | fn test_with_fetch_absent_stats() { |
| 2412 | // Test with absent statistics |
| 2413 | let original_stats = Statistics { |
| 2414 | num_rows: Precision::Absent, |
| 2415 | total_byte_size: Precision::Absent, |
| 2416 | column_statistics: vec![ColumnStatistics { |
| 2417 | null_count: Precision::Absent, |
| 2418 | max_value: Precision::Absent, |
| 2419 | min_value: Precision::Absent, |
| 2420 | sum_value: Precision::Absent, |
| 2421 | distinct_count: Precision::Absent, |
| 2422 | byte_size: Precision::Absent, |
| 2423 | }], |
| 2424 | }; |
| 2425 | |
| 2426 | let result = original_stats.clone().with_fetch(Some(100), 0, 1).unwrap(); |
| 2427 | |
| 2428 | // With absent input stats, output should be inexact estimate |
| 2429 | assert_eq!(result.num_rows, Precision::Inexact(100)); |
| 2430 | assert_eq!(result.total_byte_size, Precision::Absent); |
| 2431 | // Column stats should remain absent |
| 2432 | assert_eq!(result.column_statistics[0].null_count, Precision::Absent); |
| 2433 | } |
| 2434 | |
| 2435 | #[test] |
| 2436 | fn test_with_fetch_fetch_exceeds_rows() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…