Skip to content

Commit

Permalink
fix time shift bug (elastic#132000)
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 authored May 12, 2022
1 parent 6633242 commit d6805f9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,11 @@ export const getDateHistogramBucketAgg = ({
return;
}

if (agg.params.extendToTimeRange && agg.buckets.hasBounds()) {
if (
agg.params.extendToTimeRange &&
agg.buckets.hasBounds() &&
!agg.aggConfigs.hasTimeShifts()
) {
const bucketBounds = agg.buckets.getBounds()!;
output.params.extended_bounds = omitBy(
{
Expand Down

0 comments on commit d6805f9

Please sign in to comment.