Skip to content

Commit 603721d

Browse files
authored
Remove useless test util (#14570)
1 parent 9c12919 commit 603721d

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

datafusion/core/tests/physical_optimizer/replace_with_order_preserving_variants.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use std::sync::Arc;
1919

2020
use crate::physical_optimizer::test_utils::{
21-
check_integrity, stream_exec_ordered_with_projection,
21+
check_integrity, sort_preserving_merge_exec, stream_exec_ordered_with_projection,
2222
};
2323

2424
use datafusion::prelude::SessionContext;
@@ -35,7 +35,6 @@ use datafusion_physical_plan::joins::{HashJoinExec, PartitionMode};
3535
use datafusion_physical_plan::memory::MemorySourceConfig;
3636
use datafusion_physical_plan::repartition::RepartitionExec;
3737
use datafusion_physical_plan::sorts::sort::SortExec;
38-
use datafusion_physical_plan::sorts::sort_preserving_merge::SortPreservingMergeExec;
3938
use datafusion_physical_plan::{
4039
displayable, get_plan_string, ExecutionPlan, Partitioning,
4140
};
@@ -1158,14 +1157,6 @@ fn sort_exec(
11581157
)
11591158
}
11601159

1161-
fn sort_preserving_merge_exec(
1162-
sort_exprs: impl IntoIterator<Item = PhysicalSortExpr>,
1163-
input: Arc<dyn ExecutionPlan>,
1164-
) -> Arc<dyn ExecutionPlan> {
1165-
let sort_exprs = sort_exprs.into_iter().collect();
1166-
Arc::new(SortPreservingMergeExec::new(sort_exprs, input))
1167-
}
1168-
11691160
fn repartition_exec_round_robin(input: Arc<dyn ExecutionPlan>) -> Arc<dyn ExecutionPlan> {
11701161
Arc::new(RepartitionExec::try_new(input, Partitioning::RoundRobinBatch(8)).unwrap())
11711162
}

0 commit comments

Comments
 (0)