Skip to content

Commit c49db14

Browse files
committed
Use a 9.3-exclusive version for exp. histogram
1 parent aaaf069 commit c49db14

File tree

1 file changed

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

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ public enum DataType implements Writeable {
370370
builder().esType("exponential_histogram")
371371
.estimatedSize(16 * 160)// guess 160 buckets (OTEL default for positive values only histograms) with 16 bytes per bucket
372372
.docValues()
373-
.underConstruction(DataTypesTransportVersions.RESOLVE_FIELDS_RESPONSE_USED_TV)
373+
.underConstruction(DataTypesTransportVersions.TEXT_SIMILARITY_RANK_DOC_EXPLAIN_CHUNKS_VERSION)
374374
),
375375

376376
/*
@@ -1043,10 +1043,11 @@ public static class DataTypesTransportVersions {
10431043
);
10441044

10451045
/**
1046-
* First transport version after the PR that introduced the exponential histogram data type.
1046+
* First transport version after the PR that introduced the exponential histogram data type which was NOT also backported to 9.2.
1047+
* (Exp. histogram was added as SNAPSHOT-only to 9.3.)
10471048
*/
1048-
public static final TransportVersion RESOLVE_FIELDS_RESPONSE_USED_TV = TransportVersion.fromName(
1049-
"esql_resolve_fields_response_used"
1049+
public static final TransportVersion TEXT_SIMILARITY_RANK_DOC_EXPLAIN_CHUNKS_VERSION = TransportVersion.fromName(
1050+
"text_similarity_rank_docs_explain_chunks"
10501051
);
10511052
}
10521053
}

0 commit comments

Comments
 (0)