mirror of https://github.com/apache/druid.git
fix for missing context when embedding broker
This commit is contained in:
parent
17b6ed2cbe
commit
d6f6a59ae2
|
@ -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