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

Function assert_reports_row_count_mismatch

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

Source from the content-addressed store, hash-verified

3038
3039 #[tokio::test]
3040 async fn assert_reports_row_count_mismatch() {
3041 let mut benchmark = parse_benchmark(
3042 r#"
3043assert I
3044SELECT 1 AS value
3045----
30461
30472
3048
3049run
3050SELECT 1;
3051"#,
3052 )
3053 .await
3054 .expect("benchmark should parse");
3055 let ctx = SessionContext::new();
3056
3057 assert_result_error_contains(
3058 benchmark.assert(&ctx).await,
3059 "expected 2 rows but got 1",
3060 );
3061 }
3062
3063 #[tokio::test]
3064 async fn assert_reports_column_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…