Skip to content

Commit bb97843

Browse files
Revert "Disallow missing events in UNTIL"
This reverts commit b63baef.
1 parent 36b5c52 commit bb97843

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

x-pack/plugin/eql/src/main/java/org/elasticsearch/xpack/eql/parser/LogicalPlanBuilder.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,6 @@ public Sequence visitSequence(SequenceContext ctx) {
334334
throw new ParsingException(source, "A sequence requires a minimum of 2 queries (excluding UNTIL clause), found [1]");
335335
}
336336
until = queries.remove(queries.size() - 1);
337-
if (until.isMissingEventFilter()) {
338-
throw new ParsingException(source, "UNTIL clause cannot be a negative clause (missing event)");
339-
}
340337
} else {
341338
until = defaultUntil(source);
342339
}

x-pack/plugin/eql/src/test/java/org/elasticsearch/xpack/eql/planner/QueryTranslatorFailTests.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,6 @@ public void testSequenceWithTooLittleQueriesWithUntil() throws Exception {
267267
plan("sequence [any where true] [any where true] until [any where true]");
268268
}
269269

270-
public void testSequenceWithNegativeUntil() throws Exception {
271-
String s = errorParsing("sequence [any where true] [any where true] until ![any where true]");
272-
assertEquals("1:2: UNTIL clause cannot be a negative clause (missing event)", s);
273-
}
274-
275270
public void testSequenceWithIncorrectOption() throws Exception {
276271
EqlClientException e = expectThrows(EqlClientException.class, () -> plan("sequence [any where true] with repeat=123"));
277272
String msg = e.getMessage();

0 commit comments

Comments
 (0)