def validate_function_name_length(function_name: str) -> None:
    """
    Verifies that the name of the function does not exceed the maximum allowable storage field length in the
    Database. This restriction only applies to OSS UnityCatalog.

    Args:
        function_name: The name of the function being created within Unity Catalog.
    """
    name_length = len(function_name)
    if name_length > OSS_MAX_FUNCTION_NAME_LENGTH:
        raise ValueError(
            f"The maximum length of a function name is {OSS_MAX_FUNCTION_NAME_LENGTH}. "
            f"The name supplied is {name_length} characters long."
        )

    Verifies that the name of the function does not exceed the maximum allowable storage field length in the
    Database. This restriction only applies to OSS UnityCatalog.

    Args:
        function_name: The name of the function being created within Unity Catalog.
    
ai/core/src/unitycatalog/ai/core/utils/validation_utils.py