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

Function assert_reports_column_count_mismatch

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

Source from the content-addressed store, hash-verified

3062
3063 #[tokio::test]
3064 async fn assert_reports_column_count_mismatch() {
3065 let mut benchmark = parse_benchmark(
3066 r#"
3067assert I
3068SELECT 1 AS a, 2 AS b
3069----
30701
3071
3072run
3073SELECT 1;
3074"#,
3075 )
3076 .await
3077 .expect("benchmark should parse");
3078 let ctx = SessionContext::new();
3079
3080 assert_result_error_contains(
3081 benchmark.assert(&ctx).await,
3082 "expected 1 columns but got 2",
3083 );
3084 }
3085
3086 #[tokio::test]
3087 async fn assert_reports_value_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…