Skip to content

Commit fdf3f6c

Browse files
authored
Minor: clean up the code regarding clippy (#8122)
1 parent e305bcf commit fdf3f6c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

datafusion/core/src/physical_optimizer/limited_distinct_aggregation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl LimitedDistinctAggregation {
5757
aggr.filter_expr().to_vec(),
5858
aggr.order_by_expr().to_vec(),
5959
aggr.input().clone(),
60-
aggr.input_schema().clone(),
60+
aggr.input_schema(),
6161
)
6262
.expect("Unable to copy Aggregate!")
6363
.with_limit(Some(limit));

datafusion/physical-plan/src/limit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ impl ExecutionPlan for GlobalLimitExec {
229229
let remaining_rows: usize = nr - skip;
230230
let mut skip_some_rows_stats = Statistics {
231231
num_rows: Precision::Exact(remaining_rows),
232-
column_statistics: col_stats.clone(),
232+
column_statistics: col_stats,
233233
total_byte_size: Precision::Absent,
234234
};
235235
if !input_stats.num_rows.is_exact().unwrap_or(false) {

datafusion/sql/src/statement.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
10171017
expr_to_columns(&filter_expr, &mut using_columns)?;
10181018
let filter_expr = normalize_col_with_schemas_and_ambiguity_check(
10191019
filter_expr,
1020-
&[&[&scan.schema()]],
1020+
&[&[scan.schema()]],
10211021
&[using_columns],
10221022
)?;
10231023
LogicalPlan::Filter(Filter::try_new(filter_expr, Arc::new(scan))?)

0 commit comments

Comments
 (0)