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

Function assert_propagates_query_failures

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

Source from the content-addressed store, hash-verified

3015
3016 #[tokio::test]
3017 async fn assert_propagates_query_failures() {
3018 let mut benchmark = parse_benchmark(
3019 r#"
3020assert I
3021SELECT * FROM missing_assert_table
3022----
30231
3024
3025run
3026SELECT 1;
3027"#,
3028 )
3029 .await
3030 .expect("benchmark should parse");
3031 let ctx = SessionContext::new();
3032
3033 assert_result_error_contains(
3034 benchmark.assert(&ctx).await,
3035 "missing_assert_table",
3036 );
3037 }
3038
3039 #[tokio::test]
3040 async fn assert_reports_row_count_mismatch() {

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…