Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use datafusion_physical_plan::execution_plan::EmissionType;
use datafusion_physical_plan::repartition::RepartitionExec;
use datafusion_physical_plan::sorts::sort_preserving_merge::SortPreservingMergeExec;
use datafusion_physical_plan::tree_node::PlanContext;
use datafusion_physical_plan::{ExecutionPlan, ExecutionPlanProperties};
use datafusion_physical_plan::ExecutionPlanProperties;

use itertools::izip;

Expand Down Expand Up @@ -205,9 +205,8 @@ pub fn plan_with_order_breaking_variants(
// Replace `SortPreservingMergeExec` with a `CoalescePartitionsExec`
// SPM may have `fetch`, so pass it to the `CoalescePartitionsExec`
let child = Arc::clone(&sort_input.children[0].plan);
let coalesce = CoalescePartitionsExec::new(child)
.with_fetch(plan.fetch())
.unwrap();
let coalesce =
Arc::new(CoalescePartitionsExec::new(child).with_fetch(plan.fetch()));
sort_input.plan = coalesce;
} else {
return sort_input.update_plan_from_children();
Expand Down
Loading