Skip to content

Commit b7dd7d4

Browse files
committed
fix condition
1 parent 2a9fec2 commit b7dd7d4

File tree

1 file changed

+2
-1
lines changed
  • x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plan/logical

1 file changed

+2
-1
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plan/logical/Limit.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ public void writeTo(StreamOutput out) throws IOException {
7070
out.writeNamedWriteable(limit());
7171
out.writeNamedWriteable(child());
7272
// Let's make sure we notice during tests if we ever serialize a duplicated Limit.
73-
assert duplicated == false;
73+
// FIXME: verify that this condition is correct and fix the comments
74+
assert implied || duplicated == false;
7475
}
7576

7677
@Override

0 commit comments

Comments
 (0)