def column_type_to_python_type(
    column_type: str, mapping: Dict[str, Any] = SQL_TYPE_TO_PYTHON_TYPE_MAPPING
) -> Any:
    """
    Convert a SQL column type to the corresponding Python type.
    Looks up the provided SQL column type in a mapping dictionary and returns
    the corresponding Python type. Raises a `ValueError` if the column type
    is unsupported.
    Args:
        column_type (str): The SQL column type to convert.
    Returns:
        Any: The corresponding Python type.
    Raises:
        ValueError: If the column type is unsupported.
    """
    if t := mapping.get(column_type):
        return t
    raise ValueError(
        f"Unsupported column type: {column_type}; supported types are: {list(mapping.keys())}"
    )

    Convert a SQL column type to the corresponding Python type.
    Looks up the provided SQL column type in a mapping dictionary and returns
    the corresponding Python type. Raises a `ValueError` if the column type
    is unsupported.
    Args:
        column_type (str): The SQL column type to convert.
    Returns:
        Any: The corresponding Python type.
    Raises:
        ValueError: If the column type is unsupported.
    
ai/core/src/unitycatalog/ai/core/utils/type_utils.py