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

Method new

datafusion/catalog-listing/src/options.rs:73–82  ·  view source on GitHub ↗

Creates an options instance with the given format Default values: - use default file extension filter - no input partition to discover - one target partition - do not collect statistics

(format: Arc<dyn FileFormat>)

Source from the content-addressed store, hash-verified

71 /// - one target partition
72 /// - do not collect statistics
73 pub fn new(format: Arc<dyn FileFormat>) -> Self {
74 Self {
75 file_extension: format.get_ext(),
76 format,
77 table_partition_cols: vec![],
78 collect_stat: false,
79 target_partitions: 1,
80 file_sort_order: vec![],
81 }
82 }
83
84 /// Set options from [`SessionConfig`] and returns self.
85 ///

Callers

nothing calls this directly

Calls 1

get_extMethod · 0.45

Tested by

no test coverage detected