Skip to content

Commit 9ff5ed8

Browse files
committed
Fix casting
1 parent d84c8dd commit 9ff5ed8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/PositionToXContent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ protected XContentBuilder valueToXContent(XContentBuilder builder, ToXContent.Pa
187187
@Override
188188
protected XContentBuilder valueToXContent(XContentBuilder builder, ToXContent.Params params, int valueIndex)
189189
throws IOException {
190-
return builder.value(((FloatBlock) block).getFloat(valueIndex));
190+
return builder.value(((DoubleBlock) block).getDouble(valueIndex));
191191
}
192192
};
193193
case DATE_PERIOD, TIME_DURATION, DOC_DATA_TYPE, TSID_DATA_TYPE, SHORT, BYTE, OBJECT, FLOAT, HALF_FLOAT, SCALED_FLOAT,

0 commit comments

Comments
 (0)