Skip to content

Commit dffe6a6

Browse files
committed
Updated MvMax and MvMin error tests
1 parent 12ccac0 commit dffe6a6

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,6 @@ protected Expression build(Source source, List<Expression> args) {
3232

3333
@Override
3434
protected Matcher<String> expectedTypeErrorMatcher(List<Set<DataType>> validPerPosition, List<DataType> signature) {
35-
return equalTo(
36-
typeErrorMessage(
37-
false,
38-
validPerPosition,
39-
signature,
40-
(v, p) -> "boolean, date, ip, string, version or numeric except counter types"
41-
)
42-
);
35+
return equalTo(typeErrorMessage(false, validPerPosition, signature, (v, p) -> "any type except counter and spatial types"));
4336
}
4437
}

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,6 @@ protected Expression build(Source source, List<Expression> args) {
3232

3333
@Override
3434
protected Matcher<String> expectedTypeErrorMatcher(List<Set<DataType>> validPerPosition, List<DataType> signature) {
35-
return equalTo(
36-
typeErrorMessage(
37-
false,
38-
validPerPosition,
39-
signature,
40-
(v, p) -> "boolean, date, ip, string, version or numeric except counter types"
41-
)
42-
);
35+
return equalTo(typeErrorMessage(false, validPerPosition, signature, (v, p) -> "any type except counter and spatial types"));
4336
}
4437
}

0 commit comments

Comments
 (0)