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

Function repartition_empty_file_only

datafusion/datasource/src/file_groups.rs:639–649  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

637 /// Empty file won't get partitioned
638 #[test]
639 fn repartition_empty_file_only() {
640 let partitioned_file_empty = pfile("empty", 0);
641 let file_group = vec![FileGroup::new(vec![partitioned_file_empty])];
642
643 let partitioned_files = FileGroupPartitioner::new()
644 .with_target_partitions(4)
645 .with_repartition_file_min_size(0)
646 .repartition_file_groups(&file_group);
647
648 assert_partitioned_files(None, partitioned_files);
649 }
650
651 /// Repartition when there is a empty file in file groups
652 #[test]

Callers

nothing calls this directly

Calls 6

pfileFunction · 0.85
newFunction · 0.85
assert_partitioned_filesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…