CachingClusteredClientTest: Use groupBy v1. (#3958)

GroupBy v2 doesn't cache on the broker, so it isn't actually testing
what the test was supposed to be testing. Also, the test failed due
to mismatched expectations.
This commit is contained in:
Gian Merlino 2017-02-21 14:53:34 -08:00 committed by Parag Jain
parent 128274c6f0
commit f910c050fd
1 changed files with 7 additions and 1 deletions

View File

@ -92,6 +92,7 @@ import io.druid.query.filter.SelectorDimFilter;
import io.druid.query.groupby.GroupByQuery;
import io.druid.query.groupby.GroupByQueryConfig;
import io.druid.query.groupby.GroupByQueryRunnerTest;
import io.druid.query.groupby.strategy.GroupByStrategySelector;
import io.druid.query.ordering.StringComparators;
import io.druid.query.search.SearchQueryQueryToolChest;
import io.druid.query.search.SearchResultValue;
@ -158,7 +159,12 @@ import java.util.concurrent.Executor;
@RunWith(Parameterized.class)
public class CachingClusteredClientTest
{
public static final ImmutableMap<String, Object> CONTEXT = ImmutableMap.<String, Object>of("finalize", false);
public static final ImmutableMap<String, Object> CONTEXT = ImmutableMap.<String, Object>of(
"finalize", false,
// GroupBy v2 won't cache on the broker, so test with v1.
"groupByStrategy", GroupByStrategySelector.STRATEGY_V1
);
public static final MultipleIntervalSegmentSpec SEG_SPEC = new MultipleIntervalSegmentSpec(ImmutableList.<Interval>of());
public static final String DATA_SOURCE = "test";
static final DefaultObjectMapper jsonMapper = new DefaultObjectMapper(new SmileFactory());