Fix IndexMergeBenchmark (#5118)

This commit is contained in:
Roman Leventov 2017-11-26 21:03:58 -03:00 committed by Slim
parent 790678f02c
commit 55d894e104
1 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,7 @@
package io.druid.benchmark.indexing;
import com.fasterxml.jackson.databind.InjectableValues;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.io.Files;
import io.druid.benchmark.datagen.BenchmarkDataGenerator;
@ -28,6 +29,7 @@ import io.druid.data.input.InputRow;
import io.druid.hll.HyperLogLogHash;
import io.druid.jackson.DefaultObjectMapper;
import io.druid.java.util.common.logger.Logger;
import io.druid.math.expr.ExprMacroTable;
import io.druid.query.aggregation.hyperloglog.HyperUniquesSerde;
import io.druid.segment.IndexIO;
import io.druid.segment.IndexMergerV9;
@ -88,6 +90,9 @@ public class IndexMergeBenchmark
static {
JSON_MAPPER = new DefaultObjectMapper();
InjectableValues.Std injectableValues = new InjectableValues.Std();
injectableValues.addValue(ExprMacroTable.class, ExprMacroTable.nil());
JSON_MAPPER.setInjectableValues(injectableValues);
INDEX_IO = new IndexIO(
JSON_MAPPER,
new ColumnConfig()