Skip to content

Commit ce3cdcd

Browse files
committed
wip: remove dead code
1 parent 7550b29 commit ce3cdcd

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

datafusion/core/src/physical_optimizer/enforce_distribution.rs

-24
Original file line numberDiff line numberDiff line change
@@ -1114,30 +1114,6 @@ fn remove_dist_changing_operators(
11141114
})
11151115
}
11161116

1117-
// /// Changes each child of the `dist_context.plan` such that they no longer
1118-
// /// use order preserving variants, if no ordering is required at the output
1119-
// /// of the physical plan (there is no global ordering requirement by the query).
1120-
// fn update_plan_to_remove_unnecessary_final_order(
1121-
// dist_context: DistributionContext,
1122-
// ) -> Result<Arc<dyn ExecutionPlan>> {
1123-
// let DistributionContext {
1124-
// plan,
1125-
// distribution_onwards,
1126-
// ..
1127-
// } = dist_context;
1128-
// let new_children = izip!(plan.children(), distribution_onwards)
1129-
// .map(|(mut child, mut dist_onward)| {
1130-
// replace_order_preserving_variants(&mut child, &mut dist_onward)?;
1131-
// Ok(child)
1132-
// })
1133-
// .collect::<Result<Vec<_>>>()?;
1134-
// if !new_children.is_empty() {
1135-
// plan.with_new_children(new_children)
1136-
// } else {
1137-
// Ok(plan)
1138-
// }
1139-
// }
1140-
11411117
/// Updates the physical plan `input` by using `dist_onward` replace order preserving operator variants
11421118
/// with their corresponding operators that do not preserve order. It is a wrapper for `replace_order_preserving_variants_helper`
11431119
fn replace_order_preserving_variants(

0 commit comments

Comments
 (0)