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

Method set_table_schema

datafusion/sql/src/planner.rs:348–354  ·  view source on GitHub ↗
(
        &mut self,
        mut schema: Option<DFSchemaRef>,
    )

Source from the content-addressed store, hash-verified

346 }
347
348 pub fn set_table_schema(
349 &mut self,
350 mut schema: Option<DFSchemaRef>,
351 ) -> Option<DFSchemaRef> {
352 std::mem::swap(&mut self.create_table_schema, &mut schema);
353 schema
354 }
355
356 pub fn table_schema(&self) -> Option<DFSchemaRef> {
357 self.create_table_schema.clone()

Callers 2

insert_to_planMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected