File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/data Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 7575 method : " testFetchAllEntities"
7676- class : " org.elasticsearch.xpack.ml.integration.AutodetectMemoryLimitIT"
7777 issue : " https://github.com/elastic/elasticsearch/issues/109904"
78- - class : " org.elasticsearch.compute.operator.topn.TopNOperatorTests"
79- issue : " https://github.com/elastic/elasticsearch/issues/109915"
80- method : " testRandomMultiValuesTopN"
8178
8279
8380# Examples:
Original file line number Diff line number Diff line change 1717import static org .elasticsearch .test .ESTestCase .between ;
1818import static org .elasticsearch .test .ESTestCase .randomBoolean ;
1919import static org .elasticsearch .test .ESTestCase .randomDouble ;
20+ import static org .elasticsearch .test .ESTestCase .randomFloat ;
2021import static org .elasticsearch .test .ESTestCase .randomInt ;
2122import static org .elasticsearch .test .ESTestCase .randomLong ;
2223import static org .elasticsearch .test .ESTestCase .randomRealisticUnicodeOfCodepointLengthBetween ;
@@ -31,7 +32,7 @@ public static Object randomValue(ElementType e) {
3132 return switch (e ) {
3233 case INT -> randomInt ();
3334 case LONG -> randomLong ();
34- case FLOAT -> Float . intBitsToFloat ( randomInt () );
35+ case FLOAT -> randomFloat ( );
3536 case DOUBLE -> randomDouble ();
3637 case BYTES_REF -> new BytesRef (randomRealisticUnicodeOfCodepointLengthBetween (0 , 5 )); // TODO: also test spatial WKB
3738 case BOOLEAN -> randomBoolean ();
You can’t perform that action at this time.
0 commit comments