def check_table_columns_consistence_and_clear(table_name, columns_table,
    parameter_root):
    """Check whether table columns have changed since parameter
    view last was executed. If yes, clear lists.
    """
    selected_tb = parameter_root['tb'].selected
    parameter_root['tb'].list = columns_table
    if selected_tb is None:
        if table_name in parameter_root['tb'].list:
            parameter_root['tb'].selected = table_name
        parameter_root['raster'].value = parameter_root['tb'].selected
