Skip to content

Commit a6b0f6c

Browse files
committed
Fix class casting
1 parent 93d45fc commit a6b0f6c

File tree

1 file changed

+1
-1
lines changed
  • x-pack/plugin/esql/qa/testFixtures/src/main/java/org/elasticsearch/xpack/esql

1 file changed

+1
-1
lines changed

x-pack/plugin/esql/qa/testFixtures/src/main/java/org/elasticsearch/xpack/esql/EsqlTestUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ public static Literal randomLiteral(DataType type) {
829829
throw new UncheckedIOException(e);
830830
}
831831
}
832-
case DENSE_VECTOR -> Arrays.asList(randomArray(10, 10, i -> new Double[10], ESTestCase::randomFloat));
832+
case DENSE_VECTOR -> Arrays.asList(randomArray(10, 10, i -> new Double[10], () -> (double) randomFloat()));
833833
case UNSUPPORTED, OBJECT, DOC_DATA_TYPE, TSID_DATA_TYPE, PARTIAL_AGG -> throw new IllegalArgumentException(
834834
"can't make random values for [" + type.typeName() + "]"
835835
);

0 commit comments

Comments
 (0)