Merge pull request #2494 from himanshug/fix_timeseries

do not drop post-aggs in TimeseriesQueryToolChest.makePreComputeManipulatorFn
This commit is contained in:
Fangjin Yang 2016-02-20 10:37:32 -08:00
commit 8ee81947cd
1 changed files with 1 additions and 1 deletions

View File

@ -238,8 +238,8 @@ public class TimeseriesQueryQueryToolChest extends QueryToolChest<Result<Timeser
@Override @Override
public Result<TimeseriesResultValue> apply(Result<TimeseriesResultValue> result) public Result<TimeseriesResultValue> apply(Result<TimeseriesResultValue> result)
{ {
final Map<String, Object> values = Maps.newHashMap();
final TimeseriesResultValue holder = result.getValue(); final TimeseriesResultValue holder = result.getValue();
final Map<String, Object> values = Maps.newHashMap(holder.getBaseObject());
if (calculatePostAggs) { if (calculatePostAggs) {
// put non finalized aggregators for calculating dependent post Aggregators // put non finalized aggregators for calculating dependent post Aggregators
for (AggregatorFactory agg : query.getAggregatorSpecs()) { for (AggregatorFactory agg : query.getAggregatorSpecs()) {