def _create_fieldname_to_type_map(flat_dict_list):
    """
    This method will create a map of file names to the respective data types
    this is used so we can put type hints in the resultant CSV

    For now this will only populate integer fields

    Parameters:

    flat_dict_list(in) -- This is a list of dictionaries that are already flattened into
                      full path:value
    """
    fieldname_to_type = {}
    for flat_dict in flat_dict_list:
        for key, value in flat_dict.items():
            if key in fieldname_to_type:
                existing_field_type = fieldname_to_type[key]
                if (existing_field_type != 'BAD' and existing_field_type !=
                    type(value)):
                    fieldname_to_type[key] == 'BAD'
            elif type(value) == int:
                fieldname_to_type[key] = 'int'
            elif type(value) == bool:
                fieldname_to_type[key] = 'bool'
    return fieldname_to_type
