MCPcopy Create free account
hub / github.com/apache/datafusion / test_with_fetch_no_limit

Function test_with_fetch_no_limit

datafusion/common/src/stats.rs:2358–2371  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2356
2357 #[test]
2358 fn test_with_fetch_no_limit() {
2359 // Test when fetch is None and skip is 0 (no limit applied)
2360 let original_stats = Statistics {
2361 num_rows: Precision::Exact(100),
2362 total_byte_size: Precision::Exact(800),
2363 column_statistics: vec![col_stats_i64(10)],
2364 };
2365
2366 let result = original_stats.clone().with_fetch(None, 0, 1).unwrap();
2367
2368 // Stats should be unchanged when no fetch and no skip
2369 assert_eq!(result.num_rows, Precision::Exact(100));
2370 assert_eq!(result.total_byte_size, Precision::Exact(800));
2371 }
2372
2373 #[test]
2374 fn test_with_fetch_with_skip() {

Callers

nothing calls this directly

Calls 2

with_fetchMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…