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

Method create

datafusion/core/src/test_util/mod.rs:185–194  ·  view source on GitHub ↗
(
        &self,
        _: &dyn Session,
        cmd: &CreateExternalTable,
    )

Source from the content-addressed store, hash-verified

183#[async_trait]
184impl TableProviderFactory for TestTableFactory {
185 async fn create(
186 &self,
187 _: &dyn Session,
188 cmd: &CreateExternalTable,
189 ) -> Result<Arc<dyn TableProvider>> {
190 Ok(Arc::new(TestTableProvider {
191 url: cmd.location.to_string(),
192 schema: Arc::clone(cmd.schema.inner()),
193 }))
194 }
195}
196
197/// TableProvider for testing purposes

Callers 3

create_custom_tableMethod · 0.45
create_functionMethod · 0.45

Calls 4

newFunction · 0.85
ExtensionClass · 0.85
to_stringMethod · 0.45
innerMethod · 0.45

Tested by

no test coverage detected