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

Method process_line

benchmarks/src/sql_benchmark.rs:511–524  ·  view source on GitHub ↗
(
        &mut self,
        ctx: &SessionContext,
        reader: &mut BenchmarkFileReader,
        line: &mut String,
    )

Source from the content-addressed store, hash-verified

509 }
510
511 async fn process_line(
512 &mut self,
513 ctx: &SessionContext,
514 reader: &mut BenchmarkFileReader,
515 line: &mut String,
516 ) -> Result<()> {
517 // Split the line into directive and arguments.
518 let cloned_line = line.trim_start().to_string();
519 let splits: Vec<&str> = cloned_line.split_whitespace().collect();
520
521 BenchmarkDirective::select(reader, splits[0])?
522 .process(ctx, self, reader, line, &splits)
523 .await
524 }
525
526 fn process_query(&mut self, splits: &[&str], mut query: String) -> Result<()> {
527 debug!("Processing query {query}");

Callers 1

process_fileMethod · 0.80

Calls 3

collectMethod · 0.80
processMethod · 0.80
to_stringMethod · 0.45

Tested by

no test coverage detected