File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,19 @@ use datafusion_expr::{
33
33
} ;
34
34
use datafusion_physical_plan:: ExecutionPlan ;
35
35
36
- /// Source table
36
+ /// A named table which can be queried.
37
+ ///
38
+ /// Please see [`CatalogProvider`] for details of implementing a custom catalog.
39
+ ///
40
+ /// [`TableProvider`] represents a source of data which can provide data as
41
+ /// Apache Arrow `RecordBatch`es. Implementations of this trait provide
42
+ /// important information for planning such as:
43
+ ///
44
+ /// 1. [`Self::schema`]: The schema (columns and their types) of the table
45
+ /// 2. [`Self::supports_filters_pushdown`]: Should filters be pushed into this scan
46
+ /// 2. [`Self::scan`]: An [`ExecutionPlan`] that can read data
47
+ ///
48
+ /// [`CatalogProvider`]: super::CatalogProvider
37
49
#[ async_trait]
38
50
pub trait TableProvider : Debug + Sync + Send {
39
51
/// Returns the table provider as [`Any`](std::any::Any) so that it can be
You can’t perform that action at this time.
0 commit comments