Skip to content

Commit

Permalink
chore: use less copy
Browse files Browse the repository at this point in the history
  • Loading branch information
appletreeisyellow committed May 15, 2024
1 parent 3bea893 commit b2609d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datafusion/optimizer/src/single_distinct_to_groupby.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ impl OptimizerRule for SingleDistinctToGroupBy {
plan: LogicalPlan,
_config: &dyn OptimizerConfig,
) -> Result<Transformed<LogicalPlan>, DataFusionError> {
match plan {
match plan.clone() {
// TODO chunchun: remove clone
LogicalPlan::Aggregate(Aggregate {
input,
aggr_expr,
Expand Down

0 comments on commit b2609d5

Please sign in to comment.