From 170b8e6f78cef22edeb0425cd035b9aca3f2cd8a Mon Sep 17 00:00:00 2001 From: Lin Ma Date: Wed, 2 Feb 2022 23:04:05 -0800 Subject: [PATCH] rename median to approx_median --- datafusion/tests/sql/aggregates.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/datafusion/tests/sql/aggregates.rs b/datafusion/tests/sql/aggregates.rs index f26c3891926d..68d3a3997bf2 100644 --- a/datafusion/tests/sql/aggregates.rs +++ b/datafusion/tests/sql/aggregates.rs @@ -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(()) @@ -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(()) @@ -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(())