@Override
  public TableConfig apply(PinotHelixResourceManager pinotHelixResourceManager,
      TableConfig tableConfig, Schema schema, Map<String, String> extraProperties) {
    IndexingConfig initialIndexingConfig = tableConfig.getIndexingConfig();
    initialIndexingConfig.setInvertedIndexColumns(schema.getDimensionNames());
    initialIndexingConfig.setNoDictionaryColumns(schema.getMetricNames());
    return tableConfig;
  }
@Test
  public void testTuner() {
    TableConfig tableConfig = new TableConfigBuilder(TableType.OFFLINE)
        .setTableName("test").setTunerConfigList(Arrays.asList(_tunerConfig)).build();
    TableConfigTunerRegistry.init(Arrays.asList(DEFAULT_TABLE_CONFIG_TUNER_PACKAGES));
    TableConfigTuner tuner = TableConfigTunerRegistry.getTuner(TUNER_NAME);
    TableConfig result = tuner.apply(null, tableConfig, _schema, Collections.emptyMap());

    IndexingConfig newConfig = result.getIndexingConfig();
    List<String> invertedIndexColumns = newConfig.getInvertedIndexColumns();
    Assert.assertTrue(invertedIndexColumns.size() == 2);
    for (int i = 0; i < DIMENSION_COLUMNS.length; i++) {
      Assert.assertTrue(invertedIndexColumns.contains(DIMENSION_COLUMNS[i]));
    }

    List<String> noDictionaryColumns = newConfig.getNoDictionaryColumns();
    Assert.assertTrue(noDictionaryColumns.size() == 1);
    Assert.assertEquals(noDictionaryColumns.get(0), METRIC_COLUMNS[0]);
  }