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

Method get_table_source

datafusion/sql/examples/sql.rs:130–135  ·  view source on GitHub ↗
(&self, name: TableReference)

Source from the content-addressed store, hash-verified

128
129impl ContextProvider for MyContextProvider {
130 fn get_table_source(&self, name: TableReference) -> Result<Arc<dyn TableSource>> {
131 match self.tables.get(name.table()) {
132 Some(table) => Ok(Arc::clone(table)),
133 _ => plan_err!("Table not found: {}", name.table()),
134 }
135 }
136
137 fn get_function_meta(&self, _name: &str) -> Option<Arc<ScalarUDF>> {
138 None

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
tableMethod · 0.45

Tested by

no test coverage detected