MCPcopy Create free account
hub / github.com/apache/datafusion / provider_as_source

Function provider_as_source

datafusion/catalog/src/default_table_source.rs:83–87  ·  view source on GitHub ↗

Wrap TableProvider in TableSource

(
    table_provider: Arc<dyn TableProvider>,
)

Source from the content-addressed store, hash-verified

81
82/// Wrap TableProvider in TableSource
83pub fn provider_as_source(
84 table_provider: Arc<dyn TableProvider>,
85) -> Arc<dyn TableSource> {
86 Arc::new(DefaultTableSource::new(table_provider))
87}
88
89/// Attempt to downcast a TableSource to DefaultTableSource and access the
90/// TableProvider. This will only work with a TableSource created by DataFusion.

Callers 15

search_accountsFunction · 0.85
try_into_logical_planMethod · 0.85
experimentFunction · 0.85
describeMethod · 0.85
scan_emptyFunction · 0.85
statement_to_planMethod · 0.85
create_cte_work_tableMethod · 0.85
plan_count_wildcardFunction · 0.85
read_tableMethod · 0.85

Calls 1

newFunction · 0.85

Tested by 4

experimentFunction · 0.68
query_with_exprMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…