Skip to content

Commit 8588da4

Browse files
committed
fix clippy
1 parent e3c2493 commit 8588da4

5 files changed

Lines changed: 1 addition & 63 deletions

File tree

Cargo.lock

Lines changed: 0 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

datafusion/datasource/src/source.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ use std::fmt;
2222
use std::fmt::{Debug, Formatter};
2323
use std::sync::Arc;
2424

25-
use datafusion_physical_expr::equivalence::ProjectionMapping;
2625
use datafusion_physical_plan::execution_plan::{
2726
Boundedness, EmissionType, SchedulingType,
2827
};

datafusion/physical-optimizer/src/enforce_distribution.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,6 @@ fn add_hash_on_top(
945945
///
946946
/// # Returns
947947
///
948-
949948
/// Updated node with an execution plan, where desired single
950949
/// distribution is satisfied by adding [`SortPreservingMergeExec`].
951950
fn add_merge_on_top(

datafusion/physical-plan/src/joins/hash_join/exec.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -882,26 +882,6 @@ impl ExecutionPlan for HashJoinExec {
882882
}))
883883
}
884884

885-
fn reset_state(self: Arc<Self>) -> Result<Arc<dyn ExecutionPlan>> {
886-
// Reset the left_fut to allow re-execution
887-
Ok(Arc::new(HashJoinExec {
888-
left: Arc::clone(&self.left),
889-
right: Arc::clone(&self.right),
890-
on: self.on.clone(),
891-
filter: self.filter.clone(),
892-
join_type: self.join_type,
893-
join_schema: Arc::clone(&self.join_schema),
894-
left_fut: OnceAsync::default(),
895-
random_state: self.random_state.clone(),
896-
mode: self.mode,
897-
metrics: ExecutionPlanMetricsSet::new(),
898-
projection: self.projection.clone(),
899-
column_indices: self.column_indices.clone(),
900-
null_equality: self.null_equality,
901-
cache: self.cache.clone(),
902-
}))
903-
}
904-
905885
fn execute(
906886
&self,
907887
partition: usize,

datafusion/proto/tests/cases/roundtrip_physical_plan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ fn roundtrip_test_and_return(
144144
protobuf::PhysicalPlanNode::try_from_physical_plan(exec_plan.clone(), codec)
145145
.expect("to proto");
146146
let runtime = ctx.runtime_env();
147-
let mut result_exec_plan: Arc<dyn ExecutionPlan> = proto
147+
let result_exec_plan: Arc<dyn ExecutionPlan> = proto
148148
.try_into_physical_plan(ctx, runtime.deref(), codec)
149149
.expect("from proto");
150150

0 commit comments

Comments
 (0)