We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5a2a34 commit 7263d1bCopy full SHA for 7263d1b
datafusion/datasource/src/source.rs
@@ -232,7 +232,11 @@ impl DataSourceExec {
232
)
233
}
234
235
- /// Downcast the `DataSourceExec` to a specific file source
+ /// Downcast the `DataSourceExec`'s `data_source` to a specific file source
236
+ ///
237
+ /// Returns `None` if
238
+ /// 1. the datasource is not scanning files (`FileScanConfig`)
239
+ /// 2. The [`FileScanConfig::file_source`] is not of type `T`
240
pub fn downcast_to_file_source<T: 'static>(&self) -> Option<(&FileScanConfig, &T)> {
241
self.data_source()
242
.as_any()
0 commit comments