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

Method with_table

datafusion/core/src/execution/session_state.rs:2630–2640  ·  view source on GitHub ↗

Registers a table. The catalog and schema are provided by default.

(mut self, table: &str, source: Arc<dyn TableSource>)

Source from the content-addressed store, hash-verified

2628 ///
2629 /// The catalog and schema are provided by default.
2630 pub fn with_table(mut self, table: &str, source: Arc<dyn TableSource>) -> Self {
2631 self.tables.insert(
2632 ResolvedTableReference {
2633 catalog: "default".to_string().into(),
2634 schema: "public".to_string().into(),
2635 table: table.to_string().into(),
2636 },
2637 source,
2638 );
2639 self
2640 }
2641
2642 /// Sets the `return_expr_planners` flag to true.
2643 pub fn with_expr_planners(self) -> Self {

Callers 1

plan_count_wildcardFunction · 0.80

Calls 3

insertMethod · 0.45
intoMethod · 0.45
to_stringMethod · 0.45

Tested by

no test coverage detected