Skip to content

Commit

Permalink
rename median to approx_median
Browse files Browse the repository at this point in the history
  • Loading branch information
realno committed Feb 3, 2022
1 parent 07f5819 commit 170b8e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions datafusion/tests/sql/aggregates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ async fn csv_query_median_1() -> Result<()> {
let mut ctx = ExecutionContext::new();
register_aggregate_csv(&mut ctx).await?;
let sql = "SELECT approx_median(c2) FROM aggregate_test_100";
let mut actual = execute(&mut ctx, sql).await;
let actual = execute(&mut ctx, sql).await;
let expected = vec![vec!["3"]];
assert_float_eq(&expected, &actual);
Ok(())
Expand All @@ -235,7 +235,7 @@ async fn csv_query_median_2() -> Result<()> {
let mut ctx = ExecutionContext::new();
register_aggregate_csv(&mut ctx).await?;
let sql = "SELECT approx_median(c6) FROM aggregate_test_100";
let mut actual = execute(&mut ctx, sql).await;
let actual = execute(&mut ctx, sql).await;
let expected = vec![vec!["1146409980542786560"]];
assert_float_eq(&expected, &actual);
Ok(())
Expand All @@ -246,7 +246,7 @@ async fn csv_query_median_3() -> Result<()> {
let mut ctx = ExecutionContext::new();
register_aggregate_csv(&mut ctx).await?;
let sql = "SELECT approx_median(c12) FROM aggregate_test_100";
let mut actual = execute(&mut ctx, sql).await;
let actual = execute(&mut ctx, sql).await;
let expected = vec![vec!["0.5550065410522981"]];
assert_float_eq(&expected, &actual);
Ok(())
Expand Down

0 comments on commit 170b8e6

Please sign in to comment.