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();
|
minTime = boundary.getMinTime();
|
||||||
} catch(IllegalArgumentException e) {}
|
} catch(IllegalArgumentException e) {}
|
||||||
|
|
||||||
|
final DateTime maxTime = boundary.getMaxTime();
|
||||||
|
|
||||||
return (T) ((TimeBoundaryQuery) query).buildResult(
|
return (T) ((TimeBoundaryQuery) query).buildResult(
|
||||||
timestamp,
|
timestamp,
|
||||||
minTime,
|
minTime != null ? minTime.minus(offset) : null,
|
||||||
boundary.getMaxTime()
|
maxTime != null ? maxTime.minus(offset) : null
|
||||||
).iterator().next();
|
).iterator().next();
|
||||||
}
|
}
|
||||||
return (T) new Result(timestamp, value);
|
return (T) new Result(timestamp, value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user