Correctly handle null primitive inputs for UDF by adding extra If expression to do the
null check. When user defines a UDF with primitive parameters, there is no way to tell if the
primitive parameter is null or not, so here we assume the primitive input is null-propagatable
and we should return null if the input is null.
Correctly handle null primitive inputs for UDF by adding extra If expression to do the null check. When user defines a UDF with primitive parameters, there is no way to tell if the primitive parameter is null or not, so here we assume the primitive input is null-propagatable and we should return null if the input is null.