diff --git a/datafusion/expr/src/tree_node/expr.rs b/datafusion/expr/src/tree_node/expr.rs index 0818ffc9ef80..fcb0a4cd93f3 100644 --- a/datafusion/expr/src/tree_node/expr.rs +++ b/datafusion/expr/src/tree_node/expr.rs @@ -309,7 +309,7 @@ impl TreeNode for Expr { filter, order_by, }) => match func_def { - AggregateFunctionDefinition::BuiltIn (fun) => { + AggregateFunctionDefinition::BuiltIn(fun) => { Expr::AggregateFunction(AggregateFunction::new( fun, transform_vec(args, &mut transform)?, diff --git a/datafusion/optimizer/src/analyzer/type_coercion.rs b/datafusion/optimizer/src/analyzer/type_coercion.rs index c54ca196b318..bedc86e2f4f1 100644 --- a/datafusion/optimizer/src/analyzer/type_coercion.rs +++ b/datafusion/optimizer/src/analyzer/type_coercion.rs @@ -352,7 +352,7 @@ impl TreeNodeRewriter for TypeCoercionRewriter { filter, order_by, }) => match func_def { - AggregateFunctionDefinition::BuiltIn (fun) => { + AggregateFunctionDefinition::BuiltIn(fun) => { let new_expr = coerce_agg_exprs_for_signature( &fun, &args, diff --git a/datafusion/optimizer/src/decorrelate.rs b/datafusion/optimizer/src/decorrelate.rs index 19ab52b6c57a..b1000f042c98 100644 --- a/datafusion/optimizer/src/decorrelate.rs +++ b/datafusion/optimizer/src/decorrelate.rs @@ -374,7 +374,7 @@ fn agg_exprs_evaluation_result_on_empty_batch( let new_expr = match expr { Expr::AggregateFunction(expr::AggregateFunction { func_def, .. }) => { match func_def { - AggregateFunctionDefinition::BuiltIn (fun) => { + AggregateFunctionDefinition::BuiltIn(fun) => { if matches!(fun, datafusion_expr::AggregateFunction::Count) { Transformed::Yes(Expr::Literal(ScalarValue::Int64(Some( 0, diff --git a/datafusion/proto/src/logical_plan/to_proto.rs b/datafusion/proto/src/logical_plan/to_proto.rs index ac5a59533645..6bfd4c3438f5 100644 --- a/datafusion/proto/src/logical_plan/to_proto.rs +++ b/datafusion/proto/src/logical_plan/to_proto.rs @@ -660,7 +660,7 @@ impl TryFrom<&Expr> for protobuf::LogicalExprNode { ref order_by, }) => { match func_def { - AggregateFunctionDefinition::BuiltIn (fun) => { + AggregateFunctionDefinition::BuiltIn(fun) => { let aggr_function = match fun { AggregateFunction::ApproxDistinct => { protobuf::AggregateFunction::ApproxDistinct