class UdfFuncService extends BaseService {

    public Result verifyUdfFuncByName(String name) {
        Result result = new Result();
        if (checkUdfFuncNameExists(name)) {
            logger.error("UDF function name:{} has exist, can't create again.", name);
            putMsg(result, Status.UDF_FUNCTION_EXISTS);
        } else {
            putMsg(result, Status.SUCCESS);
        }

        return result;
    }

}