if (returnType == null) {
throw Util.newInternal(
"Invalid user-defined function '" + udfName
+ "': return type is null");
}
final Syntax syntax = udf.getSyntax();
if (syntax == null) {
throw Util.newInternal(
"Invalid user-defined function '" + udfName
+ "': syntax is null");
}