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

Method create_file_source

datafusion/catalog-listing/src/table.rs:323–334  ·  view source on GitHub ↗

Creates a file source for this table

(&self)

Source from the content-addressed store, hash-verified

321
322 /// Creates a file source for this table
323 fn create_file_source(&self) -> Arc<dyn FileSource> {
324 let table_schema = TableSchema::new(
325 Arc::clone(&self.file_schema),
326 self.options
327 .table_partition_cols
328 .iter()
329 .map(|(col, field)| Arc::new(Field::new(col, field.clone(), false)))
330 .collect(),
331 );
332
333 self.options.format.file_source(table_schema)
334 }
335
336 /// Creates output ordering from user-specified file_sort_order or derives
337 /// from file orderings when user doesn't specify.

Callers 1

scan_with_argsMethod · 0.80

Calls 6

newFunction · 0.85
collectMethod · 0.80
mapMethod · 0.45
iterMethod · 0.45
cloneMethod · 0.45
file_sourceMethod · 0.45

Tested by

no test coverage detected