Skip to content

Commit 820d890

Browse files
committed
Fix mistake in scaled_float value and test non-unity scaling factor
1 parent 9be9e9f commit 820d890

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/LookupJoinTypesIT.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ private static String sampleDataTextFor(DataType type) {
365365
return String.valueOf(value);
366366
}
367367

368-
private static final double SCALING_FACTOR = 1.0;
368+
private static final double SCALING_FACTOR = 10.0;
369369

370370
private static Object sampleDataFor(DataType type) {
371371
return switch (type) {
@@ -375,8 +375,7 @@ private static Object sampleDataFor(DataType type) {
375375
case KEYWORD, TEXT -> "key";
376376
case BYTE, SHORT, INTEGER -> 1;
377377
case LONG, UNSIGNED_LONG -> 1L;
378-
case HALF_FLOAT, FLOAT, DOUBLE -> 1.0;
379-
case SCALED_FLOAT -> SCALING_FACTOR;
378+
case HALF_FLOAT, FLOAT, DOUBLE, SCALED_FLOAT -> 1.0;
380379
case VERSION -> "1.2.19";
381380
case GEO_POINT, CARTESIAN_POINT -> "POINT (1.0 2.0)";
382381
case GEO_SHAPE, CARTESIAN_SHAPE -> "POLYGON ((0.0 0.0, 1.0 0.0, 1.0 1.0, 0.0 1.0, 0.0 0.0))";

0 commit comments

Comments
 (0)