From 1dd7c2ba1dd3ef00cd62fcbfac23d52ff4832ec3 Mon Sep 17 00:00:00 2001 From: Noel Kwan Date: Wed, 24 Jul 2024 11:54:28 +0800 Subject: [PATCH] fix tests --- src/frontend/src/binder/mod.rs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/frontend/src/binder/mod.rs b/src/frontend/src/binder/mod.rs index 29ed638e4f0f..af1be41a711e 100644 --- a/src/frontend/src/binder/mod.rs +++ b/src/frontend/src/binder/mod.rs @@ -780,6 +780,7 @@ mod tests { UnnamedExpr( Function( Function { + aggregate: false, name: ObjectName( [ Ident { @@ -892,7 +893,9 @@ mod tests { select_items: [ AggCall( AggCall { - agg_kind: ApproxPercentile, + agg_kind: Builtin( + ApproxPercentile, + ), return_type: Float64, args: [ FunctionCall( @@ -933,30 +936,29 @@ mod tests { direct_args: [ Literal { data: Some( - Decimal( - Normalized( + Float64( + OrderedFloat( 0.5, ), ), ), data_type: Some( - Decimal, + Float64, ), }, Literal { data: Some( - Decimal( - Normalized( + Float64( + OrderedFloat( 0.01, ), ), ), data_type: Some( - Decimal, + Float64, ), }, ], - user_defined: false, }, ), ],