File tree Expand file tree Collapse file tree
main/java/org/apache/datafusion
test/java/org/apache/datafusion Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -229,6 +229,11 @@ public void registerUdf(
229229 if (nativeHandle == 0 ) {
230230 throw new IllegalStateException ("SessionContext is closed" );
231231 }
232+ java .util .Objects .requireNonNull (name , "name" );
233+ java .util .Objects .requireNonNull (udf , "udf" );
234+ java .util .Objects .requireNonNull (returnType , "returnType" );
235+ java .util .Objects .requireNonNull (argTypes , "argTypes" );
236+ java .util .Objects .requireNonNull (volatility , "volatility" );
232237 List <Field > fields = new ArrayList <>(argTypes .size () + 1 );
233238 fields .add (new Field ("return" , FieldType .nullable (returnType ), null ));
234239 for (int i = 0 ; i < argTypes .size (); i ++) {
Original file line number Diff line number Diff line change 2020package org .apache .datafusion ;
2121
2222import static org .junit .jupiter .api .Assertions .assertEquals ;
23- import static org .junit .jupiter .api .Assertions .assertNotNull ;
2423
2524import java .util .List ;
2625
@@ -79,7 +78,6 @@ void addOne_overConstantTable_returnsIncrementedValues() throws Exception {
7978 assertEquals (2 , y .get (0 ));
8079 assertEquals (3 , y .get (1 ));
8180 assertEquals (4 , y .get (2 ));
82- assertNotNull (y );
8381 }
8482 }
8583 }
You can’t perform that action at this time.
0 commit comments