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

Function run_saves_with_query_results

benchmarks/src/sql_benchmark.rs:3124–3134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3122
3123 #[tokio::test]
3124 async fn run_saves_with_query_results() {
3125 let mut benchmark =
3126 parse_benchmark("run\nWITH t AS (SELECT 3 AS value) SELECT value FROM t\n")
3127 .await
3128 .expect("benchmark should parse");
3129 let ctx = SessionContext::new();
3130
3131 benchmark.run(&ctx, true).await.expect("run should succeed");
3132
3133 assert_eq!(formatted_last_results(&benchmark), vec![vec!["3"]]);
3134 }
3135
3136 #[tokio::test]
3137 async fn run_only_keeps_last_select_or_with_result() {

Callers

nothing calls this directly

Calls 3

parse_benchmarkFunction · 0.85
newFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…