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

Function create_context

datafusion/core/benches/map_query_sql.rs:59–63  ·  view source on GitHub ↗
(num: i32)

Source from the content-addressed store, hash-verified

57}
58
59fn create_context(num: i32) -> datafusion_common::Result<Arc<Mutex<SessionContext>>> {
60 let ctx = SessionContext::new();
61 ctx.register_batch("t", t_batch(num))?;
62 Ok(Arc::new(Mutex::new(ctx)))
63}
64
65fn criterion_benchmark(c: &mut Criterion) {
66 let ctx = create_context(1).unwrap();

Callers 1

criterion_benchmarkFunction · 0.70

Calls 3

newFunction · 0.85
t_batchFunction · 0.85
register_batchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…