mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-27 18:38:41 +00:00
fix Zero or negative time interval not supported
This commit is contained in:
parent
b5d04e4c55
commit
5f007b7cb1
@ -74,7 +74,7 @@ public class DateHistogramGroupSourceTests extends AbstractResponseTestCase<
|
||||
dateHistogramGroupSource = new DateHistogramGroupSource(
|
||||
field,
|
||||
scriptConfig,
|
||||
new DateHistogramGroupSource.FixedInterval(new DateHistogramInterval(randomPositiveTimeValue())),
|
||||
new DateHistogramGroupSource.FixedInterval(new DateHistogramInterval(randomTimeValue(1, 100, "d", "h", "ms", "s", "m"))),
|
||||
randomBoolean() ? randomZone() : null
|
||||
);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user