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

Function t_batch

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

Source from the content-addressed store, hash-verified

51}
52
53fn t_batch(num: i32) -> RecordBatch {
54 let value: Vec<i32> = (0..num).collect();
55 let c1: ArrayRef = Arc::new(Int32Array::from(value));
56 RecordBatch::try_from_iter(vec![("c1", c1)]).unwrap()
57}
58
59fn create_context(num: i32) -> datafusion_common::Result<Arc<Mutex<SessionContext>>> {
60 let ctx = SessionContext::new();

Callers 1

create_contextFunction · 0.85

Calls 2

newFunction · 0.85
collectMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…