def join_schema_to_table_name(name: str, schema: str) -> str:
    """Utility function to join a table_name to a schema. If the table name already has a schema returns the original
    name

    Args:
        name: table name to join
        schema: schema name to join to the table name

    Returns:
        String: Reformatted table name
    """
    return '.'.join(filter(None, (schema, name))) if '.' not in name else name