From ed4c1a84c4003e473035976b2abca11761457ba2 Mon Sep 17 00:00:00 2001 From: yangjiang Date: Mon, 15 Apr 2024 13:23:42 +0800 Subject: [PATCH] fix test --- .../physical-expr/src/aggregate/approx_percentile_cont.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/datafusion/physical-expr/src/aggregate/approx_percentile_cont.rs b/datafusion/physical-expr/src/aggregate/approx_percentile_cont.rs index 7e0d800eb0f4..5b5395a76ce3 100644 --- a/datafusion/physical-expr/src/aggregate/approx_percentile_cont.rs +++ b/datafusion/physical-expr/src/aggregate/approx_percentile_cont.rs @@ -447,8 +447,6 @@ mod tests { use crate::aggregate::approx_percentile_cont::ApproxPercentileAccumulator; use crate::aggregate::tdigest::TDigest; use arrow_schema::DataType; - use datafusion_common::ScalarValue; - use datafusion_expr::Accumulator; #[test] fn test_combine_approx_percentile_accumulator() { @@ -472,10 +470,5 @@ mod tests { assert_eq!(accumulator.digest.count(), 50_000.0); accumulator.merge_digests(&[t2]); assert_eq!(accumulator.digest.count(), 100_000.0); - - assert_eq!( - accumulator.evaluate().unwrap(), - ScalarValue::Float64(Some(500.0)) - ); } }