Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ public void testCanMatchFilteringOnCoordinatorThatCanBeSkipped() throws Exceptio
List<Index> regularIndices =
randomList(0, 2, () -> new Index(randomAlphaOfLength(10), UUIDs.base64UUID()));

long indexMinTimestamp = randomLongBetween(0, 5000);
long indexMinTimestamp = randomLongBetween(1000, 5000);
long indexMaxTimestamp = randomLongBetween(indexMinTimestamp, 5000 * 2);
StaticCoordinatorRewriteContextProviderBuilder contextProviderBuilder = new StaticCoordinatorRewriteContextProviderBuilder();
String timestampFieldName = dataStream.getTimeStampField().getName();
Expand All @@ -463,7 +463,8 @@ public void testCanMatchFilteringOnCoordinatorThatCanBeSkipped() throws Exceptio
// We query a range outside of the timestamp range covered by both datastream indices
rangeQueryBuilder
.from(indexMaxTimestamp + 1)
.to(indexMaxTimestamp + 2);
.to(indexMaxTimestamp + 2)
.format("epoch_millis");

BoolQueryBuilder queryBuilder = new BoolQueryBuilder()
.filter(rangeQueryBuilder);
Expand Down Expand Up @@ -519,7 +520,7 @@ public void testCanMatchFilteringOnCoordinatorParsingFails() throws Exception {
List<Index> regularIndices =
randomList(0, 2, () -> new Index(randomAlphaOfLength(10), UUIDs.base64UUID()));

long indexMinTimestamp = randomLongBetween(0, 5000);
long indexMinTimestamp = randomLongBetween(1000, 5000);
long indexMaxTimestamp = randomLongBetween(indexMinTimestamp, 5000 * 2);
StaticCoordinatorRewriteContextProviderBuilder contextProviderBuilder = new StaticCoordinatorRewriteContextProviderBuilder();
String timestampFieldName = dataStream.getTimeStampField().getName();
Expand Down Expand Up @@ -577,7 +578,8 @@ public void testCanMatchFilteringOnCoordinatorThatCanNotBeSkipped() throws Excep
// We query a range within the timestamp range covered by both datastream indices
rangeQueryBuilder
.from(indexMinTimestamp)
.to(indexMaxTimestamp);
.to(indexMaxTimestamp)
.format("epoch_millis");

queryBuilder.filter(rangeQueryBuilder);

Expand All @@ -590,7 +592,8 @@ public void testCanMatchFilteringOnCoordinatorThatCanNotBeSkipped() throws Excep
// We query a range outside of the timestamp range covered by both datastream indices
RangeQueryBuilder rangeQueryBuilder = new RangeQueryBuilder(timestampFieldName)
.from(indexMaxTimestamp + 1)
.to(indexMaxTimestamp + 2);
.to(indexMaxTimestamp + 2)
.format("epoch_millis");

TermQueryBuilder termQueryBuilder = new TermQueryBuilder("fake", "value");

Expand Down