Skip to content

Commit aa942c9

Browse files
committed
attempt plugging in transport version
1 parent 988d892 commit aa942c9

File tree

1 file changed

+5
-5
lines changed
  • x-pack/plugin/esql-core/src/main/java/org/elasticsearch/xpack/esql/core/type

1 file changed

+5
-5
lines changed

x-pack/plugin/esql-core/src/main/java/org/elasticsearch/xpack/esql/core/type/DataType.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import java.util.function.Function;
3535

3636
import static java.util.stream.Collectors.toMap;
37-
import static org.elasticsearch.TransportVersions.INFERENCE_REQUEST_ADAPTIVE_RATE_LIMITING;
3837

3938
/**
4039
* This enum represents data types the ES|QL query processing layer is able to
@@ -312,10 +311,7 @@ public enum DataType implements Writeable {
312311
AGGREGATE_METRIC_DOUBLE(
313312
builder().esType("aggregate_metric_double")
314313
.estimatedSize(Double.BYTES * 3 + Integer.BYTES)
315-
.createdVersion(
316-
// Version created just *after* we committed support for aggregate_metric_double
317-
INFERENCE_REQUEST_ADAPTIVE_RATE_LIMITING
318-
)
314+
.createdVersion(DataTypesTransportVersions.ESQL_AGGREGATE_METRIC_DOUBLE_CREATED_VERSION)
319315
),
320316

321317
/**
@@ -951,5 +947,9 @@ private static class DataTypesTransportVersions {
951947
public static final TransportVersion ESQL_DENSE_VECTOR_CREATED_VERSION = TransportVersion.fromName(
952948
"esql_dense_vector_created_version"
953949
);
950+
951+
public static final TransportVersion ESQL_AGGREGATE_METRIC_DOUBLE_CREATED_VERSION = TransportVersion.fromName(
952+
"esql_aggregate_metric_double_created_version"
953+
);
954954
}
955955
}

0 commit comments

Comments
 (0)