Skip to content

Commit 0675a42

Browse files
committed
Fix tests
1 parent cd462b8 commit 0675a42

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

server/src/test/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2264,7 +2264,7 @@ protected Function<Object, Object> loadBlockExpected(BlockReaderSupport blockRea
22642264

22652265
@Override
22662266
protected Matcher<?> blockItemMatcher(Object expected) {
2267-
return closeTo((double) expected, 0.000001);
2267+
return equalTo(((Double) expected).floatValue());
22682268
}
22692269

22702270
private static class DenseVectorSyntheticSourceSupport implements SyntheticSourceSupport {

x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/esql/40_unsupported_types.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@ unsupported:
195195
- match: { values.0.2: null }
196196
- match: { values.0.3: "2015-01-01T12:10:30.123456789Z" }
197197
- match: { values.0.4: null }
198-
- match: { values.0.5: [0.5, 10.0, 6.0] }
198+
- match: { values.0.5.0: 0.5 }
199+
- match: { values.0.5.1: 10.0 }
200+
- match: { values.0.5.2: 6.0 }
199201
- match: { values.0.6: null }
200202
- match: { values.0.7: null }
201203
- match: { values.0.8: "POINT (10.0 12.0)" }

0 commit comments

Comments
 (0)