Skip to content

Commit d33e333

Browse files
committed
Always true.
1 parent 23d92f0 commit d33e333

File tree

1 file changed

+2
-2
lines changed
  • x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/multivalue

1 file changed

+2
-2
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/multivalue/MvContainsTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,9 @@ private static String toSpaceSeparatedString(ArrayList<DataType> typesWithNull)
364364
return typesWithNull.stream().map(Objects::toString).collect(Collectors.joining(" "));
365365
}
366366

367-
// We always return a boolean.
367+
// When all arguments are null: the 2nd arg (subset) will be `null` and the 1st is invariant (null,null) => true.
368368
@Override
369369
protected Matcher<Object> allNullsMatcher() {
370-
return anyOf(equalTo(false), equalTo(true));
370+
return equalTo(true);
371371
}
372372
}

0 commit comments

Comments
 (0)