Skip to content

Commit 968eafb

Browse files
authored
Update version to 2_19_1 for serialization of execution hint in CardinalityAggregationBuilder (#17492)
Signed-off-by: Craig Perkins <cwperx@amazon.com>
1 parent a961ec7 commit 968eafb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/opensearch/search/aggregations/metrics/CardinalityAggregationBuilder.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public CardinalityAggregationBuilder(StreamInput in) throws IOException {
116116
if (in.readBoolean()) {
117117
precisionThreshold = in.readLong();
118118
}
119-
if (in.getVersion().onOrAfter(Version.V_3_0_0)) {
119+
if (in.getVersion().onOrAfter(Version.V_2_19_1)) {
120120
executionHint = in.readOptionalString();
121121
}
122122
}
@@ -133,7 +133,7 @@ protected void innerWriteTo(StreamOutput out) throws IOException {
133133
if (hasPrecisionThreshold) {
134134
out.writeLong(precisionThreshold);
135135
}
136-
if (out.getVersion().onOrAfter(Version.V_3_0_0)) {
136+
if (out.getVersion().onOrAfter(Version.V_2_19_1)) {
137137
out.writeOptionalString(executionHint);
138138
}
139139
}

0 commit comments

Comments
 (0)