mirror of https://github.com/apache/druid.git
fix interval start before end in TimewarpOperator
This commit is contained in:
parent
280681e84b
commit
5dd23b19c3
|
@ -85,7 +85,7 @@ public class TimewarpOperator<T> implements PostProcessingOperator<T>
|
||||||
|
|
||||||
final Interval interval = query.getIntervals().get(0);
|
final Interval interval = query.getIntervals().get(0);
|
||||||
final Interval modifiedInterval = new Interval(
|
final Interval modifiedInterval = new Interval(
|
||||||
interval.getStartMillis() + offset,
|
Math.min(interval.getStartMillis() + offset, now + offset),
|
||||||
Math.min(interval.getEndMillis() + offset, now + offset)
|
Math.min(interval.getEndMillis() + offset, now + offset)
|
||||||
);
|
);
|
||||||
return Sequences.map(
|
return Sequences.map(
|
||||||
|
|
Loading…
Reference in New Issue