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

Function load_csv

datafusion/core/benches/csv_load.rs:33–41  ·  view source on GitHub ↗
(
    ctx: Arc<Mutex<SessionContext>>,
    rt: &Runtime,
    path: &str,
    options: CsvReadOptions,
)

Source from the content-addressed store, hash-verified

31
32#[expect(clippy::needless_pass_by_value)]
33fn load_csv(
34 ctx: Arc<Mutex<SessionContext>>,
35 rt: &Runtime,
36 path: &str,
37 options: CsvReadOptions,
38) {
39 let df = rt.block_on(ctx.lock().read_csv(path, options)).unwrap();
40 black_box(rt.block_on(df.collect()).unwrap());
41}
42
43fn create_context() -> Result<Arc<Mutex<SessionContext>>> {
44 let ctx = SessionContext::new();

Callers 1

criterion_benchmarkFunction · 0.85

Calls 2

read_csvMethod · 0.80
collectMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…