@@ -16,8 +16,6 @@ use dashmap::DashMap;
1616use datafusion:: common:: { exec_err, internal_datafusion_err, internal_err, plan_err} ;
1717use datafusion:: error:: DataFusionError ;
1818use datafusion:: execution:: { SendableRecordBatchStream , TaskContext } ;
19- use datafusion:: physical_plan:: coalesce_partitions:: CoalescePartitionsExec ;
20- use datafusion:: physical_plan:: sorts:: sort_preserving_merge:: SortPreservingMergeExec ;
2119use datafusion:: physical_plan:: stream:: RecordBatchStreamAdapter ;
2220use datafusion:: physical_plan:: { DisplayAs , DisplayFormatType , ExecutionPlan , PlanProperties } ;
2321use futures:: { TryFutureExt , TryStreamExt } ;
@@ -101,21 +99,9 @@ pub struct NetworkCoalesceReady {
10199}
102100
103101impl NetworkCoalesceExec {
104- pub fn from_coalesce_partitions_exec (
105- input : & CoalescePartitionsExec ,
106- input_tasks : usize ,
107- ) -> Result < Self , DataFusionError > {
108- Self :: from_input ( input, input_tasks)
109- }
110-
111- pub fn from_sort_preserving_merge_exec (
112- input : & SortPreservingMergeExec ,
113- input_tasks : usize ,
114- ) -> Result < Self , DataFusionError > {
115- Self :: from_input ( input, input_tasks)
116- }
117-
118- pub fn from_input (
102+ /// Creates a new [NetworkCoalesceExec] node from a [CoalescePartitionsExec] and
103+ /// [SortPreservingMergeExec].
104+ pub fn from_input_exec (
119105 input : & dyn ExecutionPlan ,
120106 input_tasks : usize ,
121107 ) -> Result < Self , DataFusionError > {
0 commit comments