Skip to content

Commit 16eb25d

Browse files
committed
Revert "FileSource - provide default implementations for schema_adapter_factory methods"
This reverts commit ee07b69.
1 parent ee07b69 commit 16eb25d

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

datafusion/datasource/src/file.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -134,19 +134,11 @@ pub trait FileSource: Send + Sync {
134134
fn with_schema_adapter_factory(
135135
&self,
136136
factory: Arc<dyn SchemaAdapterFactory>,
137-
) -> Arc<dyn FileSource>
138-
where
139-
Self: Sized + Clone,
140-
{
141-
// clone the _concrete_ self, then wrap it
142-
Arc::new(self.clone()) as Arc<dyn FileSource>
143-
}
137+
) -> Arc<dyn FileSource>;
144138

145139
/// Returns the current schema adapter factory if set
146140
///
147141
/// Note: You can implement this method and `with_schema_adapter_factory`
148142
/// automatically using the [`crate::impl_schema_adapter_methods`] macro.
149-
fn schema_adapter_factory(&self) -> Option<Arc<dyn SchemaAdapterFactory>> {
150-
None
151-
}
143+
fn schema_adapter_factory(&self) -> Option<Arc<dyn SchemaAdapterFactory>>;
152144
}

0 commit comments

Comments
 (0)