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

Method load_query

benchmarks/src/sort_pushdown.rs:100–108  ·  view source on GitHub ↗
(&self, query_id: usize)

Source from the content-addressed store, hash-verified

98 }
99
100 fn load_query(&self, query_id: usize) -> Result<String> {
101 let path = self.queries_dir().join(format!("q{query_id}.sql"));
102 std::fs::read_to_string(&path).map_err(|e| {
103 datafusion_common::DataFusionError::Execution(format!(
104 "Failed to read query file {}: {e}",
105 path.display()
106 ))
107 })
108 }
109
110 fn available_queries(&self) -> Vec<usize> {
111 let dir = self.queries_dir();

Callers 1

benchmark_queryMethod · 0.80

Calls 2

queries_dirMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected