@@ -34,7 +34,7 @@ use crate::config::FFI_ConfigOptions;
3434use crate :: execution:: FFI_TaskContext ;
3535use crate :: plan_properties:: FFI_PlanProperties ;
3636use crate :: record_batch_stream:: FFI_RecordBatchStream ;
37- use crate :: util:: { FFI_Option , FFIResult } ;
37+ use crate :: util:: { FFI_Option , FFI_Result } ;
3838use crate :: { df_result, sresult, sresult_return} ;
3939
4040/// A stable struct for sharing a [`ExecutionPlan`] across FFI boundaries.
@@ -48,7 +48,7 @@ pub struct FFI_ExecutionPlan {
4848 pub children : unsafe extern "C" fn ( plan : & Self ) -> SVec < FFI_ExecutionPlan > ,
4949
5050 pub with_new_children :
51- unsafe extern "C" fn ( plan : & Self , children : SVec < Self > ) -> FFIResult < Self > ,
51+ unsafe extern "C" fn ( plan : & Self , children : SVec < Self > ) -> FFI_Result < Self > ,
5252
5353 /// Return the plan name.
5454 pub name : unsafe extern "C" fn ( plan : & Self ) -> SString ,
@@ -59,14 +59,14 @@ pub struct FFI_ExecutionPlan {
5959 plan : & Self ,
6060 partition : usize ,
6161 context : FFI_TaskContext ,
62- ) -> FFIResult < FFI_RecordBatchStream > ,
62+ ) -> FFI_Result < FFI_RecordBatchStream > ,
6363
6464 pub repartitioned : unsafe extern "C" fn (
6565 plan : & Self ,
6666 target_partitions : usize ,
6767 config : FFI_ConfigOptions ,
6868 )
69- -> FFIResult < FFI_Option < FFI_ExecutionPlan > > ,
69+ -> FFI_Result < FFI_Option < FFI_ExecutionPlan > > ,
7070
7171 /// Used to create a clone on the provider of the execution plan. This should
7272 /// only need to be called by the receiver of the plan.
@@ -125,7 +125,7 @@ unsafe extern "C" fn children_fn_wrapper(
125125unsafe extern "C" fn with_new_children_fn_wrapper (
126126 plan : & FFI_ExecutionPlan ,
127127 children : SVec < FFI_ExecutionPlan > ,
128- ) -> FFIResult < FFI_ExecutionPlan > {
128+ ) -> FFI_Result < FFI_ExecutionPlan > {
129129 let runtime = plan. runtime ( ) ;
130130 let inner_plan = Arc :: clone ( plan. inner ( ) ) ;
131131
@@ -137,14 +137,14 @@ unsafe extern "C" fn with_new_children_fn_wrapper(
137137 let children = sresult_return ! ( children) ;
138138 let new_plan = sresult_return ! ( inner_plan. with_new_children( children) ) ;
139139
140- FFIResult :: Ok ( FFI_ExecutionPlan :: new ( new_plan, runtime) )
140+ FFI_Result :: Ok ( FFI_ExecutionPlan :: new ( new_plan, runtime) )
141141}
142142
143143unsafe extern "C" fn execute_fn_wrapper (
144144 plan : & FFI_ExecutionPlan ,
145145 partition : usize ,
146146 context : FFI_TaskContext ,
147- ) -> FFIResult < FFI_RecordBatchStream > {
147+ ) -> FFI_Result < FFI_RecordBatchStream > {
148148 let ctx = context. into ( ) ;
149149 let runtime = plan. runtime ( ) ;
150150 let plan = plan. inner ( ) ;
@@ -161,7 +161,7 @@ unsafe extern "C" fn repartitioned_fn_wrapper(
161161 plan : & FFI_ExecutionPlan ,
162162 target_partitions : usize ,
163163 config : FFI_ConfigOptions ,
164- ) -> FFIResult < FFI_Option < FFI_ExecutionPlan > > {
164+ ) -> FFI_Result < FFI_Option < FFI_ExecutionPlan > > {
165165 let maybe_config: Result < ConfigOptions , DataFusionError > = config. try_into ( ) ;
166166 let config = sresult_return ! ( maybe_config) ;
167167 let runtime = plan. runtime ( ) ;
0 commit comments