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

Method process_include

benchmarks/src/sql_benchmark.rs:1127–1141  ·  view source on GitHub ↗
(
        ctx: &SessionContext,
        bench: &mut SqlBenchmark,
        reader: &BenchmarkFileReader,
        splits: &[&str],
    )

Source from the content-addressed store, hash-verified

1125 }
1126
1127 async fn process_include(
1128 ctx: &SessionContext,
1129 bench: &mut SqlBenchmark,
1130 reader: &BenchmarkFileReader,
1131 splits: &[&str],
1132 ) -> Result<()> {
1133 if splits.len() != 2 || splits[1].is_empty() {
1134 return Err(exec_datafusion_err!(
1135 "{}",
1136 reader.format_exception("include requires a single argument")
1137 ));
1138 }
1139
1140 Box::pin(bench.process_file(ctx, Path::new(splits[1]))).await
1141 }
1142
1143 fn process_echo(
1144 bench: &mut SqlBenchmark,

Callers

nothing calls this directly

Calls 4

newFunction · 0.85
process_fileMethod · 0.80
lenMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected