Skip to content

Commit e3a2417

Browse files
committed
fix
1 parent a895875 commit e3a2417

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

modules/mapper-extras/src/test/java/org/elasticsearch/index/mapper/extras/ScaledFloatFieldMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ private double roundDocValues(double d) {
449449
}
450450

451451
long encoded = Math.round(d * scalingFactor);
452-
return encoded * (1 / scalingFactor);
452+
return encoded / scalingFactor;
453453
}
454454

455455
private void mapping(XContentBuilder b) throws IOException {

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,6 @@ tests:
386386
- class: org.elasticsearch.xpack.esql.qa.mixed.EsqlClientYamlIT
387387
method: test {p0=esql/40_tsdb/render aggregate_metric_double when missing min and max}
388388
issue: https://github.com/elastic/elasticsearch/issues/123124
389-
- class: org.elasticsearch.index.mapper.extras.ScaledFloatFieldMapperTests
390-
method: testBlockLoaderFromRowStrideReader
391-
issue: https://github.com/elastic/elasticsearch/issues/123126
392389
- class: org.elasticsearch.xpack.esql.qa.mixed.EsqlClientYamlIT
393390
method: test {p0=esql/40_tsdb/render aggregate_metric_double when missing value}
394391
issue: https://github.com/elastic/elasticsearch/issues/123130

0 commit comments

Comments
 (0)