def get_column_map(table_schema):
    """
    Return a map from column name to a tuple
    where the first element is the index and second is the spec
    """
    column_map = {}
    for ind, col in enumerate(table_schema["columns"]):
        if "name" in col:
            column_map[col["name"]] = (ind, col)
    return column_map