Skip to content

Commit 5d96e52

Browse files
author
Jiayu Liu
committed
fix unit test
1 parent 1ecae8f commit 5d96e52

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

datafusion/tests/sql.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,11 @@ async fn csv_query_window_with_empty_over() -> Result<()> {
804804
let sql = "SELECT count(c12) over () FROM aggregate_test_100";
805805
// FIXME: so far the WindowAggExec is not implemented
806806
// and the current behavior is to throw not implemented exception
807-
let result = execute(&mut ctx, sql);
807+
808+
let plan = ctx.create_logical_plan(&sql)?;
809+
let plan = ctx.optimize(&plan)?;
810+
let plan = ctx.create_physical_plan(&plan)?;
811+
let result = collect(plan).await;
808812
assert!(result.is_err());
809813
Ok(())
810814
}

0 commit comments

Comments
 (0)