File tree Expand file tree Collapse file tree
optimizer/src/simplify_expressions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -458,6 +458,7 @@ fn sum_rewrite_candidate_arg(expr: &Expr) -> Option<Expr> {
458458}
459459
460460/// Result of trying to split an expression into an arg and constant
461+ #[ expect( clippy:: large_enum_variant) ]
461462#[ derive( Debug , Clone ) ]
462463enum SplitResult {
463464 /// if the expression is either of
Original file line number Diff line number Diff line change @@ -200,14 +200,16 @@ fn rewrite_aggregate_non_aggregate_aggr_expr(
200200 . map ( |expr| columnize_expr ( expr, inner_aggregate. as_ref ( ) ) )
201201 . collect :: < Result < Vec < _ > > > ( ) ?;
202202
203- Ok ( Transformed :: yes ( LogicalPlan :: Projection ( Projection :: try_new (
204- projection_exprs,
205- inner_aggregate,
206- ) ?) ) )
203+ Ok ( Transformed :: yes ( LogicalPlan :: Projection (
204+ Projection :: try_new ( projection_exprs, inner_aggregate) ?,
205+ ) ) )
207206}
208207
209208fn is_top_level_aggregate_expr ( expr : & Expr ) -> bool {
210- matches ! ( expr. clone( ) . unalias_nested( ) . data, Expr :: AggregateFunction ( _) )
209+ matches ! (
210+ expr. clone( ) . unalias_nested( ) . data,
211+ Expr :: AggregateFunction ( _)
212+ )
211213}
212214
213215fn aggregate_output_exprs ( group_expr : & [ Expr ] ) -> Result < Vec < Expr > > {
You can’t perform that action at this time.
0 commit comments