mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 16:28:15 +00:00
83e2c8f69f
Signed-off-by: junxiang Mu <1948535941@qq.com>
18 lines
444 B
Rust
18 lines
444 B
Rust
use std::sync::Arc;
|
|
|
|
use datafusion::common::Result as DFResult;
|
|
use datafusion::datasource::listing::ListingTable;
|
|
|
|
use crate::data_source::table_source::TableHandle;
|
|
|
|
use super::TableHandleProvider;
|
|
|
|
#[derive(Default)]
|
|
pub struct BaseTableProvider {}
|
|
|
|
impl TableHandleProvider for BaseTableProvider {
|
|
fn build_table_handle(&self, provider: Arc<ListingTable>) -> DFResult<TableHandle> {
|
|
Ok(TableHandle::External(provider))
|
|
}
|
|
}
|