add more logging for groupby caching

This commit is contained in:
fjy 2014-08-12 12:35:39 -07:00
parent 0cff63c7c6
commit 578e0b4fb6
1 changed files with 7 additions and 1 deletions

View File

@ -22,6 +22,7 @@ package io.druid.query;
import com.google.common.base.Function;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
import com.metamx.common.ISE;
import com.metamx.common.guava.Sequence;
import com.metamx.common.guava.Sequences;
import io.druid.query.aggregation.MetricManipulationFn;
@ -73,9 +74,14 @@ public class FinalizeResultsQueryRunner<T> implements QueryRunner<T>
@Override
@SuppressWarnings("unchecked")
public T apply(@Nullable T input)
public T apply(T input)
{
Result<BySegmentResultValueClass<T>> result = (Result<BySegmentResultValueClass<T>>) input;
if (input == null) {
throw new ISE("Cannot have a null result!");
}
BySegmentResultValueClass<T> resultsClass = result.getValue();
return (T) new Result<BySegmentResultValueClass>(