Skip to content

Commit

Permalink
avoid unwrap in test_aggregation_with_bad_arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoday committed Jun 4, 2021
1 parent 80701f9 commit 9db2e5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datafusion/tests/sql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3443,7 +3443,7 @@ async fn test_aggregation_with_bad_arguments() -> Result<()> {
let mut ctx = ExecutionContext::new();
register_aggregate_csv(&mut ctx)?;
let sql = "SELECT COUNT(DISTINCT) FROM aggregate_test_100";
let logical_plan = ctx.create_logical_plan(&sql).unwrap();
let logical_plan = ctx.create_logical_plan(&sql)?;
let physical_plan = ctx.create_physical_plan(&logical_plan);
assert!(physical_plan.is_err());
Ok(())
Expand Down

0 comments on commit 9db2e5f

Please sign in to comment.