mirror of https://github.com/apache/druid.git
Merge pull request #725 from metamx/fix-missing-context
fix for missing context when embedding broker
This commit is contained in:
commit
62b0e21c56
|
@ -39,6 +39,7 @@ import io.druid.query.UnionQueryRunner;
|
|||
import org.joda.time.Interval;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
*/
|
||||
|
@ -102,11 +103,16 @@ public class ClientQuerySegmentWalker implements QuerySegmentWalker
|
|||
);
|
||||
|
||||
|
||||
final PostProcessingOperator<T> postProcessing = objectMapper.convertValue(
|
||||
query.getContext().get("postProcessing"),
|
||||
new TypeReference<PostProcessingOperator<T>>() {
|
||||
}
|
||||
);
|
||||
final Map<String, Object> context = query.getContext();
|
||||
PostProcessingOperator<T> postProcessing = null;
|
||||
if(context != null) {
|
||||
postProcessing = objectMapper.convertValue(
|
||||
context.get("postProcessing"),
|
||||
new TypeReference<PostProcessingOperator<T>>()
|
||||
{
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
return postProcessing != null ?
|
||||
postProcessing.postProcess(baseRunner) : baseRunner;
|
||||
|
|
Loading…
Reference in New Issue