File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
core/src/datasource/physical_plan Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ pub struct ArrowSource {
4545}
4646
4747impl ArrowSource {
48+ /// Returns a [`ArrowSource`]
4849 pub fn new ( config : FileScanConfig ) -> Self {
4950 Self {
5051 metrics : Default :: default ( ) ,
Original file line number Diff line number Diff line change @@ -71,15 +71,14 @@ use tokio::io::AsyncWriteExt;
7171/// .with_newlines_in_values(true) // The file contains newlines in values;
7272/// .build();
7373///
74- /// let source = Arc::new( CsvSource::new(
74+ /// let source = CsvSource::new(
7575/// true,
7676/// b',',
7777/// b'"',
7878/// config
7979/// )
8080/// .with_terminator(Some(b'#')
81- /// ));
82-
81+ /// );
8382/// let exec = (DataSourceExec::from_data_source(source));
8483/// ```
8584#[ derive( Clone ) ]
Original file line number Diff line number Diff line change @@ -688,7 +688,7 @@ impl FileSource for ParquetSource {
688688 filters : Vec < Arc < dyn PhysicalExpr > > ,
689689 config : & ConfigOptions ,
690690 ) -> datafusion_common:: Result < FilterPushdownPropagation < Arc < dyn FileSource > > > {
691- let file_schema = self . config . file_schema . clone ( ) ;
691+ let file_schema = Arc :: clone ( & self . config . file_schema ) ;
692692
693693 // Determine if based on configs we should push filters down.
694694 // If either the table / scan itself or the config has pushdown enabled,
You can’t perform that action at this time.
0 commit comments