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

Method register_table

datafusion-examples/examples/data_io/catalog.rs:196–205  ·  view source on GitHub ↗
(
        &self,
        name: String,
        table: Arc<dyn TableProvider>,
    )

Source from the content-addressed store, hash-verified

194 }
195
196 fn register_table(
197 &self,
198 name: String,
199 table: Arc<dyn TableProvider>,
200 ) -> Result<Option<Arc<dyn TableProvider>>> {
201 let mut tables = self.tables.write().unwrap();
202 log::info!("adding table {name}");
203 tables.insert(name, table.clone());
204 Ok(Some(table))
205 }
206
207 /// If supported by the implementation, removes an existing table from this schema and returns it.
208 /// If no table of that name exists, returns Ok(None).

Callers 15

analysisFunction · 0.45
query_memtableFunction · 0.45
write_outFunction · 0.45
create_contextFunction · 0.45
create_contextFunction · 0.45
parquet_advanced_indexFunction · 0.45
parquet_embedded_indexFunction · 0.45
parquet_indexFunction · 0.45
json_shreddingFunction · 0.45
mainFunction · 0.45
adapter_serializationFunction · 0.45

Calls 3

writeMethod · 0.45
insertMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected