@@ -25,8 +25,8 @@ use datafusion_expr::{
2525 AggregateUDF , AggregateUDFImpl , ScalarUDF , ScalarUDFImpl , WindowUDF , WindowUDFImpl ,
2626} ;
2727
28- use stabby:: string:: String as StabbyString ;
29- use stabby:: vec:: Vec as StabbyVec ;
28+ use stabby:: string:: String as SString ;
29+ use stabby:: vec:: Vec as SVec ;
3030
3131use crate :: session:: config:: FFI_SessionConfig ;
3232use crate :: udaf:: FFI_AggregateUDF ;
@@ -39,25 +39,25 @@ use crate::util::FfiOption;
3939#[ derive( Debug ) ]
4040pub struct FFI_TaskContext {
4141 /// Return the session ID.
42- pub session_id : unsafe extern "C" fn ( & Self ) -> StabbyString ,
42+ pub session_id : unsafe extern "C" fn ( & Self ) -> SString ,
4343
4444 /// Return the task ID.
45- pub task_id : unsafe extern "C" fn ( & Self ) -> FfiOption < StabbyString > ,
45+ pub task_id : unsafe extern "C" fn ( & Self ) -> FfiOption < SString > ,
4646
4747 /// Return the session configuration.
4848 pub session_config : unsafe extern "C" fn ( & Self ) -> FFI_SessionConfig ,
4949
5050 /// Returns a vec of name-function pairs for scalar functions.
5151 pub scalar_functions :
52- unsafe extern "C" fn ( & Self ) -> StabbyVec < ( StabbyString , FFI_ScalarUDF ) > ,
52+ unsafe extern "C" fn ( & Self ) -> SVec < ( SString , FFI_ScalarUDF ) > ,
5353
5454 /// Returns a vec of name-function pairs for aggregate functions.
5555 pub aggregate_functions :
56- unsafe extern "C" fn ( & Self ) -> StabbyVec < ( StabbyString , FFI_AggregateUDF ) > ,
56+ unsafe extern "C" fn ( & Self ) -> SVec < ( SString , FFI_AggregateUDF ) > ,
5757
5858 /// Returns a vec of name-function pairs for window functions.
5959 pub window_functions :
60- unsafe extern "C" fn ( & Self ) -> StabbyVec < ( StabbyString , FFI_WindowUDF ) > ,
60+ unsafe extern "C" fn ( & Self ) -> SVec < ( SString , FFI_WindowUDF ) > ,
6161
6262 /// Release the memory of the private data when it is no longer being used.
6363 pub release : unsafe extern "C" fn ( arg : & mut Self ) ,
@@ -85,7 +85,7 @@ impl FFI_TaskContext {
8585 }
8686}
8787
88- unsafe extern "C" fn session_id_fn_wrapper ( ctx : & FFI_TaskContext ) -> StabbyString {
88+ unsafe extern "C" fn session_id_fn_wrapper ( ctx : & FFI_TaskContext ) -> SString {
8989 unsafe {
9090 let ctx = ctx. inner ( ) ;
9191 ctx. session_id ( ) . into ( )
@@ -94,7 +94,7 @@ unsafe extern "C" fn session_id_fn_wrapper(ctx: &FFI_TaskContext) -> StabbyStrin
9494
9595unsafe extern "C" fn task_id_fn_wrapper (
9696 ctx : & FFI_TaskContext ,
97- ) -> FfiOption < StabbyString > {
97+ ) -> FfiOption < SString > {
9898 unsafe {
9999 let ctx = ctx. inner ( ) ;
100100 ctx. task_id ( ) . map ( |s| s. as_str ( ) . into ( ) ) . into ( )
@@ -112,7 +112,7 @@ unsafe extern "C" fn session_config_fn_wrapper(
112112
113113unsafe extern "C" fn scalar_functions_fn_wrapper (
114114 ctx : & FFI_TaskContext ,
115- ) -> StabbyVec < ( StabbyString , FFI_ScalarUDF ) > {
115+ ) -> SVec < ( SString , FFI_ScalarUDF ) > {
116116 unsafe {
117117 let ctx = ctx. inner ( ) ;
118118 ctx. scalar_functions ( )
@@ -124,7 +124,7 @@ unsafe extern "C" fn scalar_functions_fn_wrapper(
124124
125125unsafe extern "C" fn aggregate_functions_fn_wrapper (
126126 ctx : & FFI_TaskContext ,
127- ) -> StabbyVec < ( StabbyString , FFI_AggregateUDF ) > {
127+ ) -> SVec < ( SString , FFI_AggregateUDF ) > {
128128 unsafe {
129129 let ctx = ctx. inner ( ) ;
130130 ctx. aggregate_functions ( )
@@ -141,7 +141,7 @@ unsafe extern "C" fn aggregate_functions_fn_wrapper(
141141
142142unsafe extern "C" fn window_functions_fn_wrapper (
143143 ctx : & FFI_TaskContext ,
144- ) -> StabbyVec < ( StabbyString , FFI_WindowUDF ) > {
144+ ) -> SVec < ( SString , FFI_WindowUDF ) > {
145145 unsafe {
146146 let ctx = ctx. inner ( ) ;
147147 ctx. window_functions ( )
0 commit comments