mirror of
https://github.com/apache/druid.git
synced 2025-02-25 04:16:07 +00:00
fix offset and nulls
This commit is contained in:
parent
9f742a87a6
commit
743a9bfdac
@ -109,10 +109,12 @@ public class TimewarpOperator<T> implements PostProcessingOperator<T>
|
||||
minTime = boundary.getMinTime();
|
||||
} catch(IllegalArgumentException e) {}
|
||||
|
||||
final DateTime maxTime = boundary.getMaxTime();
|
||||
|
||||
return (T) ((TimeBoundaryQuery) query).buildResult(
|
||||
timestamp,
|
||||
minTime,
|
||||
boundary.getMaxTime()
|
||||
minTime != null ? minTime.minus(offset) : null,
|
||||
maxTime != null ? maxTime.minus(offset) : null
|
||||
).iterator().next();
|
||||
}
|
||||
return (T) new Result(timestamp, value);
|
||||
|
Loading…
x
Reference in New Issue
Block a user