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

Method get_table_source

datafusion/sql/src/expr/mod.rs:1407–1412  ·  view source on GitHub ↗
(&self, name: TableReference)

Source from the content-addressed store, hash-verified

1405
1406 impl ContextProvider for TestContextProvider {
1407 fn get_table_source(&self, name: TableReference) -> Result<Arc<dyn TableSource>> {
1408 match self.tables.get(name.table()) {
1409 Some(table) => Ok(Arc::clone(table)),
1410 _ => plan_err!("Table not found: {}", name.table()),
1411 }
1412 }
1413
1414 fn get_function_meta(&self, _name: &str) -> Option<Arc<ScalarUDF>> {
1415 None

Callers 10

copy_to_planMethod · 0.45
delete_to_planMethod · 0.45
update_to_planMethod · 0.45
insert_to_planMethod · 0.45
show_columns_to_planMethod · 0.45
has_tableMethod · 0.45

Calls 2

getMethod · 0.45
tableMethod · 0.45

Tested by

no test coverage detected