Skip to content

Commit 87ec7ab

Browse files
committed
Refactor MvContains null handling by reusing existing IsNullEvaluatorFactory and adding global constant boolean evaluators for improved reusability.
1 parent aee4e35 commit 87ec7ab

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
@@ -342,8 +342,8 @@ protected static List<TestCaseSupplier> anyNullIsNull(
342342
return new TestCaseSupplier.TestCase(
343343
typeDataWithNull,
344344
nullPosition == 0
345-
? "MvContainsNullSupersetEvaluator[subsetField=Attribute[channel=1]]"
346-
: "ConstantBooleanTrueEvaluator",
345+
? "IsNullEvaluator[field=Attribute[channel=1]]"
346+
: "ConstantTrue",
347347
expectedType.expectedType(nullPosition, DataType.BOOLEAN, originalTestCase),
348348
equalTo(nullPosition == 1)
349349
);

0 commit comments

Comments
 (0)