import re


def extract_udf_name(udf_path):
    """
    Parse out the name of the UDF from the SQL DDL

    :param udf_path: Path to the UDF DDL .sql file
    :return: Name of the UDF
    """
    with open(udf_path) as udf_file:
        udf_sql = udf_file.read()
    udf_sql = udf_sql.replace('\n', ' ')
    pattern = re.compile(r'FUNCTION\s*`?(\w+.)?(\w+)`?\s*\(')
    match = pattern.search(udf_sql)
    if match:
        udf_name = match[2]
        return udf_name
    else:
        return None