if (functionName == null) {
throw new IllegalArgumentException(
String.format(Locale.ENGLISH, "No cast function found for return type %s",
returnType.getName()));
}
return new FunctionInfo(new FunctionIdent(functionName, ImmutableList.of(dataType)), returnType);
}