defaultSegmentFiltersFromFieldDef = field => {
  const {name, tableFieldIndex} = field;
  const type = defaultFilterTypeFromFieldDef(field);
  const filterVals = defaultFilterValueFromFieldDef(field);
  return filterVals.map(filterVal => ({
    name,
    key: tableFieldIndex - 1,
    type,
    value: filterVal,
  }));
}
compute segmentFilter from a single field definition
@param {Object} field - contains {name, type, tableFieldIndex, role, dataType, domain}
@returns {Array<Object>} segmentFilters, each contains {name, key, type, value}