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

Method with_file

datafusion/datasource/src/file_scan_config/mod.rs:447–449  ·  view source on GitHub ↗

Add a file as a single group See [`Self::with_file_groups`] for more information.

(self, partitioned_file: PartitionedFile)

Source from the content-addressed store, hash-verified

445 ///
446 /// See [`Self::with_file_groups`] for more information.
447 pub fn with_file(self, partitioned_file: PartitionedFile) -> Self {
448 self.with_file_group(FileGroup::new(vec![partitioned_file]))
449 }
450
451 /// Set the output ordering of the files
452 ///

Callers 15

test_with_storesFunction · 0.45
avro_exec_missing_columnFunction · 0.45
avro_exec_with_partitionFunction · 0.45
parquet_exec_with_errorFunction · 0.45
test_metadata_size_hintFunction · 0.45
create_scanMethod · 0.45
buildMethod · 0.45

Calls 2

newFunction · 0.85
with_file_groupMethod · 0.80

Tested by 15

test_with_storesFunction · 0.36
test_metadata_size_hintFunction · 0.36
buildMethod · 0.36
csv_exec_sortedFunction · 0.36
csv_exec_with_sortFunction · 0.36
parquet_execFunction · 0.36
parquet_exec_with_sortFunction · 0.36
parquet_exec_with_statsFunction · 0.36
create_simple_csv_execFunction · 0.36