Skip to content

Commit

Permalink
Remove useless test util (apache#14570)
Browse files Browse the repository at this point in the history
  • Loading branch information
xudong963 authored Feb 10, 2025
1 parent 9c12919 commit 603721d
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use std::sync::Arc;

use crate::physical_optimizer::test_utils::{
check_integrity, stream_exec_ordered_with_projection,
check_integrity, sort_preserving_merge_exec, stream_exec_ordered_with_projection,
};

use datafusion::prelude::SessionContext;
Expand All @@ -35,7 +35,6 @@ use datafusion_physical_plan::joins::{HashJoinExec, PartitionMode};
use datafusion_physical_plan::memory::MemorySourceConfig;
use datafusion_physical_plan::repartition::RepartitionExec;
use datafusion_physical_plan::sorts::sort::SortExec;
use datafusion_physical_plan::sorts::sort_preserving_merge::SortPreservingMergeExec;
use datafusion_physical_plan::{
displayable, get_plan_string, ExecutionPlan, Partitioning,
};
Expand Down Expand Up @@ -1158,14 +1157,6 @@ fn sort_exec(
)
}

fn sort_preserving_merge_exec(
sort_exprs: impl IntoIterator<Item = PhysicalSortExpr>,
input: Arc<dyn ExecutionPlan>,
) -> Arc<dyn ExecutionPlan> {
let sort_exprs = sort_exprs.into_iter().collect();
Arc::new(SortPreservingMergeExec::new(sort_exprs, input))
}

fn repartition_exec_round_robin(input: Arc<dyn ExecutionPlan>) -> Arc<dyn ExecutionPlan> {
Arc::new(RepartitionExec::try_new(input, Partitioning::RoundRobinBatch(8)).unwrap())
}
Expand Down

0 comments on commit 603721d

Please sign in to comment.