From 55d894e104197cf2ff226bc9ee1dfb526687d231 Mon Sep 17 00:00:00 2001 From: Roman Leventov Date: Sun, 26 Nov 2017 21:03:58 -0300 Subject: [PATCH] Fix IndexMergeBenchmark (#5118) --- .../io/druid/benchmark/indexing/IndexMergeBenchmark.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/benchmarks/src/main/java/io/druid/benchmark/indexing/IndexMergeBenchmark.java b/benchmarks/src/main/java/io/druid/benchmark/indexing/IndexMergeBenchmark.java index 842c7245e3d..5a96ef3785f 100644 --- a/benchmarks/src/main/java/io/druid/benchmark/indexing/IndexMergeBenchmark.java +++ b/benchmarks/src/main/java/io/druid/benchmark/indexing/IndexMergeBenchmark.java @@ -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()