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

Function create_context

datafusion/core/benches/sql_planner.rs:91–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89}
90
91fn create_context() -> SessionContext {
92 let ctx = SessionContext::new();
93 ctx.register_table("t1", create_table_provider("a", 200))
94 .unwrap();
95 ctx.register_table("t2", create_table_provider("b", 200))
96 .unwrap();
97 ctx.register_table("t700", create_table_provider("c", 700))
98 .unwrap();
99 ctx.register_table("t1000", create_table_provider("d", 1000))
100 .unwrap();
101 ctx.register_table("struct_t1", create_struct_table_provider())
102 .unwrap();
103 ctx.register_table("struct_t2", create_struct_table_provider())
104 .unwrap();
105 ctx
106}
107
108/// Register the table definitions as a MemTable with the context and return the
109/// context

Callers 1

criterion_benchmarkFunction · 0.70

Calls 4

newFunction · 0.85
create_table_providerFunction · 0.70
register_tableMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…