Skip to content

Commit 09b9ecb

Browse files
authored
Now, that the PR with aggName is backported, the version can be changed to 7.6 (#50436)
1 parent 7f81467 commit 09b9ecb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/dataframe/evaluation/classification/MulticlassConfusionMatrix.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public MulticlassConfusionMatrix(@Nullable Integer size, @Nullable String aggNam
9999

100100
public MulticlassConfusionMatrix(StreamInput in) throws IOException {
101101
this.size = in.readVInt();
102-
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
102+
if (in.getVersion().onOrAfter(Version.V_7_6_0)) {
103103
this.aggNamePrefix = in.readString();
104104
} else {
105105
this.aggNamePrefix = DEFAULT_AGG_NAME_PREFIX;
@@ -197,7 +197,7 @@ public Optional<Result> getResult() {
197197
@Override
198198
public void writeTo(StreamOutput out) throws IOException {
199199
out.writeVInt(size);
200-
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
200+
if (out.getVersion().onOrAfter(Version.V_7_6_0)) {
201201
out.writeString(aggNamePrefix);
202202
}
203203
}

0 commit comments

Comments
 (0)