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

Function assert_reports_value_mismatch

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

Source from the content-addressed store, hash-verified

3085
3086 #[tokio::test]
3087 async fn assert_reports_value_mismatch() {
3088 let mut benchmark = parse_benchmark(
3089 r#"
3090assert I
3091SELECT 1 AS value
3092----
30932
3094
3095run
3096SELECT 1;
3097"#,
3098 )
3099 .await
3100 .expect("benchmark should parse");
3101 let ctx = SessionContext::new();
3102
3103 assert_result_error_contains(
3104 benchmark.assert(&ctx).await,
3105 "expected value \"2\" but got value \"1\"",
3106 );
3107 }
3108
3109 // Run tests cover result buffering and physical-plan expectations.
3110

Callers

nothing calls this directly

Calls 4

parse_benchmarkFunction · 0.85
newFunction · 0.85
assertMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…