Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Weijun-H committed Nov 29, 2023
1 parent 99273de commit 6e4ca51
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion datafusion/expr/src/tree_node/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?,
Expand Down
2 changes: 1 addition & 1 deletion datafusion/optimizer/src/analyzer/type_coercion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion datafusion/optimizer/src/decorrelate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion datafusion/proto/src/logical_plan/to_proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e4ca51

Please sign in to comment.