@@ -70,7 +70,6 @@ pub struct SedonaScalarUDF {
7070 name : String ,
7171 signature : Signature ,
7272 kernels : Vec < ScalarKernelRef > ,
73- documentation : Option < Documentation > ,
7473 aliases : Vec < String > ,
7574}
7675
@@ -185,14 +184,12 @@ impl SedonaScalarUDF {
185184 name : & str ,
186185 kernels : Vec < ScalarKernelRef > ,
187186 volatility : Volatility ,
188- documentation : Option < Documentation > ,
189187 ) -> SedonaScalarUDF {
190188 let signature = Signature :: user_defined ( volatility) ;
191189 Self {
192190 name : name. to_string ( ) ,
193191 signature,
194192 kernels,
195- documentation,
196193 aliases : vec ! [ ] ,
197194 }
198195 }
@@ -203,7 +200,6 @@ impl SedonaScalarUDF {
203200 name : self . name ,
204201 signature : self . signature ,
205202 kernels : self . kernels ,
206- documentation : self . documentation ,
207203 aliases,
208204 }
209205 }
@@ -214,12 +210,7 @@ impl SedonaScalarUDF {
214210 /// arguments. This is useful to create stub functions when it is expected that the
215211 /// actual functionality will be registered from one or more independent crates
216212 /// (e.g., ST_Intersects(), which may be implemented in sedona-geo or sedona-geography).
217- pub fn new_stub (
218- name : & str ,
219- arg_matcher : ArgMatcher ,
220- volatility : Volatility ,
221- documentation : Option < Documentation > ,
222- ) -> Self {
213+ pub fn new_stub ( name : & str , arg_matcher : ArgMatcher , volatility : Volatility ) -> Self {
223214 let name_string = name. to_string ( ) ;
224215 let stub_kernel = SimpleSedonaScalarKernel :: new_ref (
225216 arg_matcher,
@@ -228,7 +219,7 @@ impl SedonaScalarUDF {
228219 } ) ,
229220 ) ;
230221
231- Self :: new ( name, vec ! [ stub_kernel] , volatility, documentation )
222+ Self :: new ( name, vec ! [ stub_kernel] , volatility)
232223 }
233224
234225 /// Create a SedonaScalarUDF from a single kernel
@@ -240,7 +231,6 @@ impl SedonaScalarUDF {
240231 name,
241232 kernels. into_scalar_kernel_refs ( ) ,
242233 Volatility :: Immutable ,
243- None ,
244234 )
245235 }
246236
@@ -284,7 +274,7 @@ impl ScalarUDFImpl for SedonaScalarUDF {
284274 }
285275
286276 fn documentation ( & self ) -> Option < & Documentation > {
287- self . documentation . as_ref ( )
277+ None
288278 }
289279
290280 fn return_type ( & self , _args : & [ DataType ] ) -> Result < DataType > {
@@ -355,7 +345,7 @@ mod tests {
355345 #[ test]
356346 fn udf_empty ( ) -> Result < ( ) > {
357347 // UDF with no implementations
358- let udf = SedonaScalarUDF :: new ( "empty" , vec ! [ ] , Volatility :: Immutable , None ) ;
348+ let udf = SedonaScalarUDF :: new ( "empty" , vec ! [ ] , Volatility :: Immutable ) ;
359349 assert_eq ! ( udf. name( ) , "empty" ) ;
360350 assert_eq ! ( udf. coerce_types( & [ ] ) ?, vec![ ] ) ;
361351
@@ -397,7 +387,6 @@ mod tests {
397387 "simple_udf" ,
398388 vec ! [ kernel_geo, kernel_arrow] ,
399389 Volatility :: Immutable ,
400- None ,
401390 ) ;
402391
403392 // Calling with a geo type should return a Null type
@@ -443,7 +432,6 @@ mod tests {
443432 "stubby" ,
444433 ArgMatcher :: new ( vec ! [ ] , SedonaType :: Arrow ( DataType :: Boolean ) ) ,
445434 Volatility :: Immutable ,
446- None ,
447435 ) ;
448436 let tester = ScalarUdfTester :: new ( stub. into ( ) , vec ! [ ] ) ;
449437 tester. assert_return_type ( DataType :: Boolean ) ;
@@ -465,7 +453,6 @@ mod tests {
465453 SedonaType :: Arrow ( DataType :: Boolean ) ,
466454 ) ,
467455 Volatility :: Immutable ,
468- None ,
469456 ) ;
470457
471458 // None CRS to None CRS is OK
@@ -498,7 +485,6 @@ mod tests {
498485 WKB_GEOMETRY ,
499486 ) ,
500487 Volatility :: Immutable ,
501- None ,
502488 ) ;
503489
504490 let tester = ScalarUdfTester :: new (
0 commit comments